1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 18:19:55 +00:00

make return key press in search input trigger a new search

This commit is contained in:
Marc Zinnschlag 2015-03-28 13:05:18 +01:00
parent 8e9365741f
commit 13a4fb3fdc
2 changed files with 6 additions and 3 deletions

View file

@ -75,6 +75,8 @@ CSVTools::SearchBox::SearchBox (QWidget *parent)
connect (&mSearch, SIGNAL (clicked (bool)), this, SLOT (startSearch (bool)));
connect (&mText, SIGNAL (returnPressed()), this, SLOT (startSearch()));
modeSelected (0);
updateSearchButton();
@ -141,5 +143,6 @@ void CSVTools::SearchBox::textChanged (const QString& text)
void CSVTools::SearchBox::startSearch (bool checked)
{
emit startSearch (getSearch());
if (mSearch.isEnabled())
emit startSearch (getSearch());
}

View file

@ -46,7 +46,7 @@ namespace CSVTools
void textChanged (const QString& text);
void startSearch (bool checked);
void startSearch (bool checked = true);
signals: