* make pressing return in dirBox do startSearch() too (same as with nameBox and containingText)

* proper redirect the tabwidget's startSearch with the dialogs startSearch. This fixes the before unused connect(nameBox,SIGNAL(activated(int)) which got removed and makes using user3 not needed any longer cause we are handling returnPressed() direct now (same like it was done at containingText).


svn path=/trunk/KDE/kdebase/apps/; revision=1196288
This commit is contained in:
Sebastian Sauer 2010-11-12 22:55:58 +00:00
parent 42d534c535
commit e194f67ae1
2 changed files with 8 additions and 3 deletions

View file

@ -79,8 +79,10 @@ KfindDlg::KfindDlg(const KUrl & url, QWidget *parent)
vBox->addWidget(win, 1);
vBox->addWidget(mStatusBar, 0);
connect(this, SIGNAL(user3Clicked()),
this, SLOT(startSearch()));
connect(tabWidget, SIGNAL(startSearch()),
this, SLOT(startSearch()));
//connect(this, SIGNAL(user3Clicked()),
// this, SLOT(startSearch()));
connect(this, SIGNAL(user2Clicked()),
this, SLOT(stopSearch()));
connect(this, SIGNAL(user1Clicked()),

View file

@ -166,9 +166,12 @@ KfindTabWidget::KfindTabWidget(QWidget *parent)
connect( browseB, SIGNAL(clicked()),
this, SLOT(getDirectory()) );
connect( nameBox, SIGNAL(activated(int)),
connect( nameBox, SIGNAL(returnPressed()),
this, SIGNAL(startSearch()));
connect( dirBox, SIGNAL(returnPressed()),
this, SIGNAL(startSearch()));
// ************ Page Two
pages[1] = new QWidget;