ControlLayout: Allow removing search bar's focus

This commit is contained in:
Johannes Lorenz
2020-05-17 09:17:37 +02:00
parent 1e8fcbdf2d
commit b818234c15
4 changed files with 18 additions and 0 deletions

View File

@@ -110,6 +110,9 @@ public:
void setGeometry(const QRect &rect) override;
QSize sizeHint() const override;
QLayoutItem *takeAt(int index) override;
//! remove focus from QLineEdit search bar
//! this may be useful if the mouse is outside the layout
void removeFocusFromSearchBar();
private slots:
void onTextChanged(const QString&);

View File

@@ -71,6 +71,8 @@ protected:
void removeControl(const QString &key);
void removeFocusFromSearchBar();
private:
class LinkedModelGroup* m_model;