diff --git a/src/effects/overview/overvieweffect.cpp b/src/effects/overview/overvieweffect.cpp index 2f8e28f8ad..85f216f7d1 100644 --- a/src/effects/overview/overvieweffect.cpp +++ b/src/effects/overview/overvieweffect.cpp @@ -236,6 +236,7 @@ void OverviewEffect::activate() setPartialActivationFactor(0.0); // This one should be the last. + m_searchText = QString(); setRunning(true); } @@ -251,6 +252,7 @@ void OverviewEffect::partialActivate(qreal factor) setGestureInProgress(true); // This one should be the last. + m_searchText = QString(); setRunning(true); } diff --git a/src/effects/overview/overvieweffect.h b/src/effects/overview/overvieweffect.h index a9bd0351b4..88158f42c5 100644 --- a/src/effects/overview/overvieweffect.h +++ b/src/effects/overview/overvieweffect.h @@ -21,6 +21,7 @@ class OverviewEffect : public QuickSceneEffect Q_PROPERTY(qreal partialActivationFactor READ partialActivationFactor NOTIFY partialActivationFactorChanged) // More efficient from a property binding pov rather than binding to partialActivationFactor !== 0 Q_PROPERTY(bool gestureInProgress READ gestureInProgress NOTIFY gestureInProgressChanged) + Q_PROPERTY(QString searchText MEMBER m_searchText NOTIFY searchTextChanged) public: enum class Status { @@ -61,6 +62,7 @@ Q_SIGNALS: void partialActivationFactorChanged(); void gestureInProgressChanged(); void ignoreMinimizedChanged(); + void searchTextChanged(); public Q_SLOTS: void activate(); @@ -84,9 +86,10 @@ private: QList m_toggleShortcut; QList m_borderActivate; QList m_touchBorderActivate; + QString m_searchText; + Status m_status = Status::Inactive; qreal m_partialActivationFactor = 0; bool m_blurBackground = false; - Status m_status = Status::Inactive; int m_animationDuration = 400; int m_layout = 1; bool m_gestureInProgress = false; diff --git a/src/effects/windowview/windowvieweffect.cpp b/src/effects/windowview/windowvieweffect.cpp index 4b6cb229e7..5527ea78b3 100644 --- a/src/effects/windowview/windowvieweffect.cpp +++ b/src/effects/windowview/windowvieweffect.cpp @@ -335,7 +335,7 @@ void WindowViewEffect::activate(const QStringList &windowIds) } if (!internalIds.isEmpty()) { m_windowIds = internalIds; - m_searchText = ""; + m_searchText = QString(); setRunning(true); } } @@ -353,7 +353,7 @@ void WindowViewEffect::activate() setPartialActivationFactor(0); // This one should be the last. - m_searchText = ""; + m_searchText = QString(); setRunning(true); } @@ -369,7 +369,7 @@ void WindowViewEffect::partialActivate(qreal factor) setGestureInProgress(true); // This one should be the last. - m_searchText = ""; + m_searchText = QString(); setRunning(true); }