[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepimlibs/kabc
From: Bastian Holst <bastianholst () gmx ! de>
Date: 2009-01-10 10:36:24
Message-ID: 1231583784.645005.2925.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 908723 by bholst:
The dialog to select one of multiple email-addresses
of one user to send mail (EmailSelector, EmailSelectDialog)
used to display all addresses above each other.
This is fixed now.
M +5 -0 distributionlistdialog.cpp
M +4 -0 emailselectdialog.cpp
--- trunk/KDE/kdepimlibs/kabc/distributionlistdialog.cpp #908722:908723
@@ -81,15 +81,20 @@
d->mButtonGroup = new QButtonGroup( box );
topLayout->addWidget( box );
+ QVBoxLayout *layout = new QVBoxLayout;
+
QStringList::ConstIterator it;
for ( it = emails.begin(); it != emails.end(); ++it ) {
QRadioButton *button = new QRadioButton( *it, box );
d->mButtonGroup->addButton( button );
d->mEmailMap.insert( button, *it );
+ layout->addWidget( button );
if ( (*it) == current ) {
button->setChecked( true );
}
}
+ layout->addStretch( 1 );
+ box->setLayout( layout );
}
EmailSelector::~EmailSelector()
--- trunk/KDE/kdepimlibs/kabc/emailselectdialog.cpp #908722:908723
@@ -55,15 +55,19 @@
d->mButtonGroup = new QButtonGroup( box );
d->mButtonGroup->setExclusive( true );
topLayout->addWidget( box );
+ QVBoxLayout *layout = new QVBoxLayout;
QStringList::ConstIterator it;
for ( it = emails.begin(); it != emails.end(); ++it ) {
QRadioButton *button = new QRadioButton( *it, box );
d->mButtonGroup->addButton( button );
+ layout->addWidget( button );
if ( (*it) == current ) {
button->setChecked( true );
}
}
+ layout->addStretch( 1 );
+ box->setLayout( layout );
}
EmailSelectDialog::~EmailSelectDialog()
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic