X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/eb68fae15cdbf15e894d1a9d555c88d306261cc2..9cd042a86c:/src/dolphinviewcontainer.h diff --git a/src/dolphinviewcontainer.h b/src/dolphinviewcontainer.h index b5bcc78ad..2c4c7a7e1 100644 --- a/src/dolphinviewcontainer.h +++ b/src/dolphinviewcontainer.h @@ -20,7 +20,7 @@ #ifndef DOLPHINVIEWCONTAINER_H #define DOLPHINVIEWCONTAINER_H -#include "config-dolphin.h" +#include "config-kactivities.h" #include "views/dolphinview.h" #include @@ -32,7 +32,7 @@ #include #include -#ifdef KF5Activities_FOUND +#ifdef HAVE_KACTIVITIES namespace KActivities { class ResourceInstance; } @@ -136,6 +136,13 @@ public: */ void reload(); + /** + * @return Returns a Caption suitable for display to the user. It is + * calculated depending on settings, if a search is active and other + * factors. + */ + QString caption() const; + public slots: /** * Sets the current active URL, where all actions are applied. The @@ -324,6 +331,7 @@ private: KUrlNavigator* m_urlNavigator; QPushButton* m_emptyTrashButton; DolphinSearchBox* m_searchBox; + bool m_searchModeEnabled; KMessageWidget* m_messageWidget; DolphinView* m_view; @@ -335,7 +343,7 @@ private: QElapsedTimer m_statusBarTimestamp; // Time in ms since last update bool m_autoGrabFocus; -#ifdef KF5Activities_FOUND +#ifdef HAVE_KACTIVITIES private: KActivities::ResourceInstance * m_activityResourceInstance; #endif