┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-03-01 12:20:23 +0000
committerPeter Penz <[email protected]>2009-03-01 12:20:23 +0000
commit3b98165a3f028987356200c4ecfad49be95c7585 (patch)
treefa501dc2c29614b57d901700933e13152e10a520
parentdd89f93181f136c485b42de240feccd5b24e9579 (diff)
don't make the struct ClosedTab accessible for other classes
CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=933589
-rw-r--r--src/dolphinmainwindow.cpp13
-rw-r--r--src/dolphinmainwindow.h9
2 files changed, 13 insertions, 9 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index fc68191b1..8a7cda1dd 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -86,6 +86,19 @@
#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),
diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h
index 8fe9e350a..dd9cc721d 100644
--- a/src/dolphinmainwindow.h
+++ b/src/dolphinmainwindow.h
@@ -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
{