]>
cloud.milkyroute.net Git - dolphin.git/blob - src/settings/dolphinsettingsdialog.h
2 * SPDX-FileCopyrightText: 2006 Peter Penz <peter.penz@gmx.at>
4 * SPDX-License-Identifier: GPL-2.0-or-later
7 #ifndef DOLPHINSETTINGSDIALOG_H
8 #define DOLPHINSETTINGSDIALOG_H
10 #include <KPageDialog>
11 #include <KActionCollection>
14 class SettingsPageBase
;
17 * @brief Settings dialog for Dolphin.
19 * Contains the pages for Startup, View Modes, Navigation, Services, General, and Trash.
21 class DolphinSettingsDialog
: public KPageDialog
26 explicit DolphinSettingsDialog(const QUrl
& url
, QWidget
* parent
= nullptr, KActionCollection
* actions
= {});
27 ~DolphinSettingsDialog() override
;
30 void settingsChanged();
33 /** Enables the Apply button. */
36 void restoreDefaults();
39 void closeEvent(QCloseEvent
* event
) override
;
42 static SettingsPageBase
*createTrashSettingsPage(QWidget
*parent
);
44 QList
<SettingsPageBase
*> m_pages
;
45 bool m_unsavedChanges
;