Diffstat (limited to 'kaddressbook/addresseeeditorwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kaddressbook/addresseeeditorwidget.cpp | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/kaddressbook/addresseeeditorwidget.cpp b/kaddressbook/addresseeeditorwidget.cpp index 966efa5..c4083a9 100644 --- a/kaddressbook/addresseeeditorwidget.cpp +++ b/kaddressbook/addresseeeditorwidget.cpp @@ -161,5 +161,5 @@ void AddresseeEditorWidget::setupTab1() maxCol = 3; } - QGridLayout *layout = new QGridLayout( tab1, 8-maxCol, maxCol ); + QGridLayout *layout = new QGridLayout( tab1, 7-maxCol, maxCol ); layout->setMargin( KDialogBase::marginHintSmall() ); @@ -203,7 +203,12 @@ void AddresseeEditorWidget::setupTab1() SLOT( textChanged( const QString& ) ) ); //label->setBuddy( mRoleEdit ); - layout->addWidget( button, 1, 0 ); - layout->addWidget( mRoleEdit, 1, 1 ); - + if ( horLayout ) { + layout->addWidget( button, 0, 2 ); + layout->addWidget( mRoleEdit, 0, 3 ); + + } else { + layout->addWidget( button, 1, 0 ); + layout->addWidget( mRoleEdit, 1, 1 ); + } // Organization button = new QPushButton( i18n( "Organization:" ), tab1 ); @@ -227,6 +232,6 @@ void AddresseeEditorWidget::setupTab1() mFormattedNameLabel = new KSqueezedTextLabel( tab1 ); if ( horLayout ) { - layout->addWidget( label, 0,2 ); - layout->addWidget( mFormattedNameLabel, 0, 3 ); + layout->addWidget( label, 1,0 ); + layout->addWidget( mFormattedNameLabel, 1, 1 ); } else { layout->addWidget( label, 3, 0 ); @@ -259,6 +264,6 @@ void AddresseeEditorWidget::setupTab1() iii = 8; #endif - layout->addMultiCellWidget( mPhoneEditWidget, 4, iii, 0, maxCol ); - ++iii; + layout->addMultiCellWidget( mPhoneEditWidget, 5-maxCol, 5-maxCol+4, 0, maxCol ); + iii = 6-maxCol+4; /* LR bar = new KSeparator( KSeparator::HLine, tab1 ); |