[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdeutils/kdepasswd/userinfo
From:       Nadeem Hasan <nhasan () nadmm ! com>
Date:       2003-09-03 17:32:16
[Download RAW message or body]

CVS commit by nhasan: 

Fix margins and get rid of layout warning.


  M +5 -5      userinfo_chface.cpp   1.6


--- kdeutils/kdepasswd/userinfo/userinfo_chface.cpp  #1.5:1.6
@@ -38,11 +38,10 @@
 
 KUserInfoChFaceDlg::KUserInfoChFaceDlg(const QString& picsdir, QWidget *parent, \
                const char *name, bool modal)
-  : KDialogBase( parent, name, modal, i18n("Change your Face"), Ok|Cancel, Ok )
+  : KDialogBase( parent, name, modal, i18n("Change your Face"), Ok|Cancel, Ok, true \
)  {
   QWidget *page = new QWidget(this);
   setMainWidget( page );
 
-  QVBoxLayout *top = new QVBoxLayout(page, 10);
-  top->setAlignment( Qt::AlignTop );
+  QVBoxLayout *top = new QVBoxLayout(page, 0, spacingHint());
 
   QLabel *header = new QLabel( i18n("Select a new face:"), page );
@@ -59,5 +58,5 @@ KUserInfoChFaceDlg::KUserInfoChFaceDlg(c
 
   // Buttons to get more pics
-  QHBoxLayout * morePics = new QHBoxLayout( page, 0, 20 );
+  QHBoxLayout * morePics = new QHBoxLayout( 0, 0, spacingHint() );
   QPushButton *browseBtn = new QPushButton( i18n("Custom &Image..."), page );
   connect( browseBtn, SIGNAL( clicked() ), SLOT( slotGetCustomImage() ) );
@@ -70,4 +69,5 @@ KUserInfoChFaceDlg::KUserInfoChFaceDlg(c
   morePics->addStretch();
   top->addLayout( morePics );
+  top->addStretch();
 
   // Filling the icon view
@@ -95,5 +95,5 @@ KUserInfoChFaceDlg::KUserInfoChFaceDlg(c
   connect( this, SIGNAL( okClicked() ), SLOT( slotSaveCustomImage() ) );
 
-  resize( 540, 430 ); // This is our default size.
+  resize( 420, 400 );
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic