┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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
{