]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphintabwidget.h
Merge branch 'Applications/18.04'
[dolphin.git] / src / dolphintabwidget.h
index ba2fd4867ab109dad2db80a300abb9f4d5be97c9..b4493f7ed82e00e1a82270b0cf9d3e48fe8eaf1c 100644 (file)
@@ -39,6 +39,18 @@ public:
      */
     DolphinTabPage* currentTabPage() const;
 
+    /**
+     * @return the next tab page. If the current active tab is the last tab,
+     * it returns the first tab. If there is only one tab, returns nullptr
+     */
+    DolphinTabPage* nextTabPage() const;
+
+    /**
+     * @return the previous tab page. If the current active tab is the first tab,
+     * it returns the last tab. If there is only one tab, returns nullptr
+     */
+    DolphinTabPage* prevTabPage() const;
+
     /**
      * @return Tab page at the given \a index (can be 0 if the index is out-of-range)
      */
@@ -187,7 +199,7 @@ private:
     /** Caches the (negated) places panel visibility */
     bool m_placesSelectorVisible;
 
-    int m_previousTab;
+    int m_lastViewedTab;
 };
 
 #endif