]> cloud.milkyroute.net Git - dolphin.git/commitdiff
don't make the struct ClosedTab accessible for other classes
authorPeter Penz <peter.penz19@gmail.com>
Sun, 1 Mar 2009 12:20:23 +0000 (12:20 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Sun, 1 Mar 2009 12:20:23 +0000 (12:20 +0000)
CCMAIL: predator106@gmail.com

svn path=/trunk/KDE/kdebase/apps/; revision=933589

src/dolphinmainwindow.cpp
src/dolphinmainwindow.h

index fc68191b1c42a187e08a6d8e06ea40902ecab67c..8a7cda1dd2a523947755546fd2f55ea1d0152c10 100644 (file)
 #include <QSplitter>
 #include <QDockWidget>
 
+/*
+ * Remembers the tab configuration if a tab has been closed.
+ * Each closed tab can be restored by the menu
+ * "Go -> Recently Closed Tabs".
+ */
+struct ClosedTab
+{
+    KUrl primaryUrl;
+    KUrl secondaryUrl;
+    bool isSplit;
+};
+Q_DECLARE_METATYPE(ClosedTab)
+
 DolphinMainWindow::DolphinMainWindow(int id) :
     KXmlGuiWindow(0),
     m_newMenu(0),
index 8fe9e350a2c55cf7b060e78e58e4b1fa0932a12e..dd9cc721dcb45f23460080162c8913237e9b714a 100644 (file)
@@ -63,14 +63,6 @@ class DolphinMainWindow: public KXmlGuiWindow
 
 public:
     virtual ~DolphinMainWindow();
-    //TODO: This struct should be private, but I couldn't figure out how to make it that way
-    //when using Q_DECLARE_METATYPE(), which is a needed macro.
-    struct ClosedTab
-    {
-        KUrl primaryUrl;
-        KUrl secondaryUrl;
-        bool isSplit;
-    };
 
     /**
      * Returns the currently active view.
@@ -468,7 +460,6 @@ private:
     QPointer<DolphinSettingsDialog> m_settingsDialog;
 };
 
-Q_DECLARE_METATYPE(DolphinMainWindow::ClosedTab)
 
 inline DolphinViewContainer* DolphinMainWindow::activeViewContainer() const
 {