mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-05 13:37:43 +03:00
Use line edit widget for search edit.
This commit is contained in:
parent
e5e7e5e406
commit
9faf550fa1
4 changed files with 10 additions and 17 deletions
|
@ -122,7 +122,6 @@ DatabaseWidget::DatabaseWidget(Database* db, QWidget* parent)
|
|||
connect(m_searchUi->searchEdit, SIGNAL(textChanged(QString)), this, SLOT(startSearchTimer()));
|
||||
connect(m_searchTimer, SIGNAL(timeout()), this, SLOT(search()));
|
||||
connect(closeAction, SIGNAL(triggered()), this, SLOT(closeSearch()));
|
||||
connect(m_searchUi->clearSearchButton, SIGNAL(clicked()), this, SLOT(clearSearchEdit()));
|
||||
|
||||
setCurrentIndex(0);
|
||||
}
|
||||
|
@ -384,12 +383,6 @@ void DatabaseWidget::showSearch()
|
|||
m_searchUi->searchEdit->setFocus();
|
||||
}
|
||||
|
||||
void DatabaseWidget::clearSearchEdit()
|
||||
{
|
||||
m_searchUi->searchEdit->clear();
|
||||
m_searchUi->searchEdit->setFocus();
|
||||
}
|
||||
|
||||
void DatabaseWidget::search()
|
||||
{
|
||||
Group* searchGroup = m_db->rootGroup();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue