From: Peter Penz Date: Sun, 1 Mar 2009 12:20:23 +0000 (+0000) Subject: don't make the struct ClosedTab accessible for other classes X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/3b98165a3f028987356200c4ecfad49be95c7585?ds=inline don't make the struct ClosedTab accessible for other classes CCMAIL: predator106@gmail.com svn path=/trunk/KDE/kdebase/apps/; revision=933589 --- 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 #include +/* + * 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 m_settingsDialog; }; -Q_DECLARE_METATYPE(DolphinMainWindow::ClosedTab) inline DolphinViewContainer* DolphinMainWindow::activeViewContainer() const {