feat(SearchWidget): new isExpanded method true when widget is showing the find line
This commit is contained in:
parent
b1a71be6b3
commit
4f377d97ff
2 changed files with 6 additions and 0 deletions
|
|
@ -60,6 +60,11 @@ SearchWidget::SearchWidget(QWidget *parent)
|
|||
adjustSize();
|
||||
}
|
||||
|
||||
bool SearchWidget::isExpanded() const
|
||||
{
|
||||
return m_searchLine->isVisible();
|
||||
}
|
||||
|
||||
void SearchWidget::changeEvent(QEvent *e)
|
||||
{
|
||||
QWidget::changeEvent(e);
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ class SearchWidget : public QWidget
|
|||
Q_OBJECT
|
||||
public:
|
||||
explicit SearchWidget(QWidget *parent = nullptr);
|
||||
bool isExpanded() const;
|
||||
|
||||
Q_SIGNALS:
|
||||
void findNext(const QString &text);
|
||||
|
|
|
|||
Loading…
Reference in a new issue