[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeutils/kdepasswd/userinfo
From: Stephan Binner <binner () kde ! org>
Date: 2003-09-03 15:26:40
[Download RAW message or body]
CVS commit by binner:
Layout fixes. Who taught people to use setFixedSize/Width/Height!?
M +6 -7 userinfo.cpp 1.11
M +2 -1 userinfo_chfn.cpp 1.3
--- kdeutils/kdepasswd/userinfo/userinfo.cpp #1.10:1.11
@@ -55,9 +55,9 @@ KUserInfoConfig::KUserInfoConfig(QWidget
: KCModule(UserInfoFactory::instance(), parent, name)
{
- QVBoxLayout *pTop = new QVBoxLayout(this, 10);
+ QVBoxLayout *pTop = new QVBoxLayout(this, KDialog::spacingHint());
pTop->setAlignment( Qt::AlignTop );
// The header (face and name)
- QHBoxLayout *pHeaderLayout = new QHBoxLayout(this, 5, 10);
+ QHBoxLayout *pHeaderLayout = new QHBoxLayout(this, KDialog::marginHint(), \
KDialog::spacingHint()); pHeaderLayout->setAlignment( Qt::AlignLeft );
@@ -83,10 +83,10 @@ KUserInfoConfig::KUserInfoConfig(QWidget
pTop->addLayout( pHeaderLayout );
- QHBoxLayout *pMainArea = new QHBoxLayout( this, 5, 10 );
+ QHBoxLayout *pMainArea = new QHBoxLayout( this, KDialog::marginHint(), \
KDialog::spacingHint() );
// The left-hand side information
- QGroupBox *pInfoGroup = new QGroupBox( i18n("Information"), this );
+ QGroupBox *pInfoGroup = new QGroupBox( 0, Qt::Vertical, i18n("Information"), this \
);
- QHBoxLayout *pInfoLayout = new QHBoxLayout( pInfoGroup, 20, 10 );
+ QHBoxLayout *pInfoLayout = new QHBoxLayout( pInfoGroup->layout(), \
KDialog::spacingHint() );
QLabel *pInfoLeft = new QLabel( i18n("Real name:\nUser name:\nUser ID:\nHome \
directory:\nShell:"), pInfoGroup ); @@ -99,7 +99,6 @@ \
KUserInfoConfig::KUserInfoConfig(QWidget // The Right-hand settings buttons
QGroupBox *pSettingsGroup = new QGroupBox( i18n("Settings"), this );
- pSettingsGroup->setFixedWidth( 200 );
- QVBoxLayout *pSettingsLayout = new QVBoxLayout( pSettingsGroup, 20, 10 );
+ QVBoxLayout *pSettingsLayout = new QVBoxLayout( pSettingsGroup, \
KDialog::marginHint(), KDialog::spacingHint() );
QPushButton *pChangeNameBtn = new QPushButton( i18n("Change Real &Name..."), \
pSettingsGroup );
--- kdeutils/kdepasswd/userinfo/userinfo_chfn.cpp #1.2:1.3
@@ -31,5 +31,6 @@ KUserInfoChFnDlg::KUserInfoChFnDlg(QStri
top->setAlignment( Qt::AlignTop );
- QLabel *header = new QLabel( i18n("Changing real name for user %1:\n").arg( \
*userName ), page ); + QLabel *header = new QLabel( i18n("Changing Real Name for \
User '%1'").arg( *userName ), page ); +
top->addWidget( header );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic