-rw-r--r-- | kabc/addresseedialog.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/kabc/addresseedialog.cpp b/kabc/addresseedialog.cpp index 3e7b72c..9197850 100644 --- a/kabc/addresseedialog.cpp +++ b/kabc/addresseedialog.cpp @@ -77,3 +77,3 @@ AddresseeDialog::AddresseeDialog( QWidget *parent, bool multiple ) : - QBoxLayout *listLayout = new QVBoxLayout (listWidget) ; + QVBoxLayout *listLayout = new QVBoxLayout (listWidget) ; //topLayout->addLayout( listLayout ); @@ -90,4 +90,4 @@ AddresseeDialog::AddresseeDialog( QWidget *parent, bool multiple ) : - QHBox* searchBox = new QHBox ( listWidget ); - mAddresseeEdit = new QLineEdit( searchBox ); + //QHBox* searchBox = new QHBox ( listWidget ); + mAddresseeEdit = new QLineEdit( listWidget ); connect( mAddresseeEdit, SIGNAL( returnPressed() ), @@ -95,6 +95,9 @@ AddresseeDialog::AddresseeDialog( QWidget *parent, bool multiple ) : mAddresseeEdit->setFocus(); - QPushButton *searchButton = new QPushButton( i18n("Search!"), searchBox ); + QPushButton *searchButton = new QPushButton( i18n("Search!"), listWidget ); connect ( searchButton, SIGNAL( clicked() ), SLOT( loadAddressBook() ) ); - listLayout->addWidget( searchBox ); + QHBoxLayout *searchLayout = new QHBoxLayout (listLayout) ; + searchLayout->addWidget( mAddresseeEdit ); + searchLayout->addWidget( searchButton ); + //listLayout->addWidget( searchBox ); @@ -105,3 +108,3 @@ AddresseeDialog::AddresseeDialog( QWidget *parent, bool multiple ) : - QVBox *selectedGroup = new QVBox( mMiniSplitter ); + QVBox *selectedGroup = new QVBox( mMiniSplitter ); new QLabel ( i18n("Selected:"), selectedGroup ); |