#include <QUrl>
#include <QList>
-#include <QWeakPointer>
+#include <QPointer>
typedef KIO::FileUndoManager::CommandType CommandType;
class DolphinViewActionHandler;
-class DolphinApplication;
class DolphinSettingsDialog;
class DolphinViewContainer;
class DolphinRemoteEncoding;
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.kde.dolphin.MainWindow")
Q_PROPERTY(int id READ getId SCRIPTABLE true)
- friend class DolphinApplication;
public:
DolphinMainWindow();
/** Stores all settings and quits Dolphin. */
void quit();
+ /**
+ * Opens a new tab showing the URL \a url and activates the tab.
+ */
+ void openNewActivatedTab(const QUrl& url);
+
signals:
/**
* Is sent if the selection of the currently active view has
*/
void openNewTab(const QUrl& url);
- /**
- * Opens a new tab showing the URL \a url and activates the tab.
- */
- void openNewActivatedTab(const QUrl& url);
-
/**
* Opens the selected folder in a new tab.
*/
DolphinViewActionHandler* m_actionHandler;
DolphinRemoteEncoding* m_remoteEncoding;
- QWeakPointer<DolphinSettingsDialog> m_settingsDialog;
+ QPointer<DolphinSettingsDialog> m_settingsDialog;
// Members for the toolbar menu that is shown when the menubar is hidden:
QToolButton* m_controlButton;