-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 @@ -75,7 +75,7 @@ AddresseeDialog::AddresseeDialog( QWidget *parent, bool multiple ) : QWidget *listWidget = new QWidget( mMiniSplitter ); - QBoxLayout *listLayout = new QVBoxLayout (listWidget) ; + QVBoxLayout *listLayout = new QVBoxLayout (listWidget) ; //topLayout->addLayout( listLayout ); mAddresseeList = new KListView( listWidget ); @@ -88,22 +88,25 @@ AddresseeDialog::AddresseeDialog( QWidget *parent, bool multiple ) : connect( mAddresseeList, SIGNAL( doubleClicked( QListViewItem * ) ), SLOT( slotOk() ) ); - QHBox* searchBox = new QHBox ( listWidget ); - mAddresseeEdit = new QLineEdit( searchBox ); + //QHBox* searchBox = new QHBox ( listWidget ); + mAddresseeEdit = new QLineEdit( listWidget ); connect( mAddresseeEdit, SIGNAL( returnPressed() ), SLOT( loadAddressBook() ) ); 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 ); if ( mMultiple ) { //QBoxLayout *selectedLayout = new QVBoxLayout; //topLayout->addLayout( selectedLayout ); //topLayout->setSpacing( spacingHint() ); - QVBox *selectedGroup = new QVBox( mMiniSplitter ); + QVBox *selectedGroup = new QVBox( mMiniSplitter ); new QLabel ( i18n("Selected:"), selectedGroup ); //selectedLayout->addWidget( selectedGroup ); |