[svn] pinentry - r210 - in trunk: . qt4

svn author marcus cvs at cvs.gnupg.org
Mon Jul 13 16:43:48 CEST 2009


Author: marcus
Date: 2009-07-13 16:43:48 +0200 (Mon, 13 Jul 2009)
New Revision: 210

Modified:
   trunk/ChangeLog
   trunk/qt4/pinentrydialog.cpp
Log:
2009-07-10  Till Adam  <till at kdab.com>

	* qt4/pinentrydialog.cpp (PinEntryDialog): Redesign the dialog to
	be prettier.


Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2009-06-19 07:39:10 UTC (rev 209)
+++ trunk/ChangeLog	2009-07-13 14:43:48 UTC (rev 210)
@@ -1,3 +1,8 @@
+2009-07-10  Till Adam  <till at kdab.com>
+
+	* qt4/pinentrydialog.cpp (PinEntryDialog): Redesign the dialog to
+	be prettier.
+
 2009-06-19  Marcus Brinkmann  <marcus at g10code.de>
 
 	* configure.ac: Post-release changes.

Modified: trunk/qt4/pinentrydialog.cpp
===================================================================
--- trunk/qt4/pinentrydialog.cpp	2009-06-19 07:39:10 UTC (rev 209)
+++ trunk/qt4/pinentrydialog.cpp	2009-07-13 14:43:48 UTC (rev 210)
@@ -44,22 +44,22 @@
   QBoxLayout* top = new QVBoxLayout( this );
   top->setMargin( 6 );
   QBoxLayout* upperLayout = new QHBoxLayout();
-  top->addLayout( upperLayout );
+  top->addLayout( upperLayout, 1 );
 
   _icon = new QLabel( this );
   _icon->setPixmap( QMessageBox::standardIcon( QMessageBox::Information ) );
   upperLayout->addWidget( _icon );
 
   QBoxLayout* labelLayout = new QVBoxLayout();
-  upperLayout->addLayout( labelLayout );
+  upperLayout->addLayout( labelLayout, 5 );
 
   _error = new QLabel( this );
   _error->setWordWrap(true);
-  labelLayout->addWidget( _error );
+  labelLayout->addWidget( _error, 1 );
 
   _desc = new QLabel( this );
   _desc->setWordWrap(true);
-  labelLayout->addWidget( _desc );
+  labelLayout->addWidget( _desc, 5 );
 
   QGridLayout* grid = new QGridLayout;
   top->addLayout( grid );
@@ -107,6 +107,8 @@
 	   this, SLOT (reject ()));
 
   _edit->setFocus();
+  setMinimumWidth( 450 );
+  resize( minimumSizeHint() );
 }
 
 void PinEntryDialog::hideEvent( QHideEvent* ev )




More information about the Gnupg-commits mailing list