mirror of
https://github.com/redis/RedisDesktopManager.git
synced 2026-10-29 03:27:04 +08:00
use the "enter" key to do the search
Just connect the "returnPress" SIGNAL of the search QLineEdit to the "clicked" SIGNAL of the find Button. Make the search action more smoothly. :)
This commit is contained in:
@@ -89,6 +89,8 @@ void MainWin::initFilter()
|
||||
{
|
||||
connect(ui.pbFindFilter, SIGNAL(clicked()), SLOT(OnSetFilter()));
|
||||
connect(ui.pbClearFilter, SIGNAL(clicked()), SLOT(OnClearFilter()));
|
||||
connect(ui.leKeySearchPattern, SIGNAL(returnPressed()), ui.pbFindFilter,
|
||||
SIGNAL(clicked()), Qt::UniqueConnection);
|
||||
}
|
||||
|
||||
void MainWin::initSystemConsole()
|
||||
@@ -438,4 +440,4 @@ void MainWin::OnUIUnlock()
|
||||
void MainWin::OnStatusMessage(QString message)
|
||||
{
|
||||
statusBar()->showMessage(message);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user