]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinviewcontainer.h
Reverted an incorrect change
[dolphin.git] / src / dolphinviewcontainer.h
index 60c9b90d161848eeffd3d5810ca8fe815cc515d2..90df69c8e8b27d40b17e1dcd10f3132ffc342ada 100644 (file)
 #include <QPushButton>
 #include <QWidget>
 
+namespace Admin
+{
+class Bar;
+}
 class FilterBar;
 class KMessageWidget;
 class QAction;
@@ -331,6 +335,11 @@ private Q_SLOTS:
      */
     void showItemInfo(const KFileItem &item);
 
+    /**
+     * Sets the Admin::Bar visible or invisible based on whether \a url is an admin url.
+     */
+    void updateAdminBarVisibility(const QUrl &url);
+
     void closeFilterBar();
 
     /**
@@ -447,6 +456,9 @@ private:
     DolphinSearchBox *m_searchBox;
     bool m_searchModeEnabled;
 
+    /// A bar shown at the top of the view to signify that the view is currently viewed and acted on with elevated privileges.
+    Admin::Bar *m_adminBar;
+
     KMessageWidget *m_messageWidget;
 
     /// A bar shown at the top of the view to signify that selection mode is currently active.