feat(SearchWidget): new isExpanded method true when widget is showing the find line

This commit is contained in:
sithlord48 2026-04-01 20:19:05 -04:00 committed by Nick Bolton
parent b1a71be6b3
commit 4f377d97ff
2 changed files with 6 additions and 0 deletions

View file

@ -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);

View file

@ -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);