[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 16:55:07
[Download RAW message or body]
CVS commit by nhasan:
Fix margins and get rid of layout warnings.
M +10 -9 userinfo.cpp 1.12
--- kdeutils/kdepasswd/userinfo/userinfo.cpp #1.11:1.12
@@ -55,10 +55,8 @@ KUserInfoConfig::KUserInfoConfig(QWidget
: KCModule(UserInfoFactory::instance(), parent, name)
{
- QVBoxLayout *pTop = new QVBoxLayout(this, KDialog::spacingHint());
- pTop->setAlignment( Qt::AlignTop );
+ QVBoxLayout *pTop = new QVBoxLayout(this, 0, KDialog::spacingHint());
// The header (face and name)
- QHBoxLayout *pHeaderLayout = new QHBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
- pHeaderLayout->setAlignment( Qt::AlignLeft );
+ QHBoxLayout *pHeaderLayout = new QHBoxLayout(0, 0, KDialog::spacingHint());
m_pFaceButton = new QPushButton( this );
@@ -67,7 +65,9 @@ KUserInfoConfig::KUserInfoConfig(QWidget
QToolTip::add( m_pFaceButton, i18n("Click or drop an image here") );
- QWhatsThis::add( m_pFaceButton, i18n("Here you can see the image that represents you in KDM."
+ QWhatsThis::add( m_pFaceButton,
+ i18n("Here you can see the image that represents you in KDM."
" Click on the image button to select from a list"
- " of images or drag and drop your own image on to the button (e.g. from Konqueror).") );
+ " of images or drag and drop your own image on to the"
+ " button (e.g. from Konqueror).") );
connect( m_pFaceButton, SIGNAL(clicked()), SLOT(slotFaceButtonClicked()) );
@@ -83,5 +83,5 @@ KUserInfoConfig::KUserInfoConfig(QWidget
pTop->addLayout( pHeaderLayout );
- QHBoxLayout *pMainArea = new QHBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
+ QHBoxLayout *pMainArea = new QHBoxLayout( 0, 0, KDialog::spacingHint() );
// The left-hand side information
@@ -114,6 +114,7 @@ KUserInfoConfig::KUserInfoConfig(QWidget
pTop->addLayout( pMainArea );
+ pTop->addStretch();
- setButtons( Ok + Help );
+ setButtons( Ok|Help );
load();// Load our settings
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic