]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/settings/kcm/kcmdolphinviewmodes.h
Port to Qt6
[dolphin.git] / src / settings / kcm / kcmdolphinviewmodes.h
index d3554c39c3d32918efc9237f5c6a50aa89c72b35..59cbca31414129ed3c06f3888cceb4aee1a7d9e3 100644 (file)
@@ -1,28 +1,15 @@
-/***************************************************************************
- *   Copyright (C) 2008 by Peter Penz <peter.penz19@gmail.com>             *
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- *   This program is distributed in the hope that it will be useful,       *
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
- *   GNU General Public License for more details.                          *
- *                                                                         *
- *   You should have received a copy of the GNU General Public License     *
- *   along with this program; if not, write to the                         *
- *   Free Software Foundation, Inc.,                                       *
- *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA            *
- ***************************************************************************/
+/*
+ * SPDX-FileCopyrightText: 2008 Peter Penz <peter.penz19@gmail.com>
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
 
 #ifndef KCMDOLPHINVIEWMODES_H
 #define KCMDOLPHINVIEWMODES_H
 
-#include <kcmodule.h>
+#include <KCModule>
 
-class ViewSettingsPageBase;
+class ViewSettingsTab;
 
 /**
  * @brief Allow to configure the Dolphin views.
@@ -32,17 +19,20 @@ class DolphinViewModesConfigModule : public KCModule
     Q_OBJECT
 
 public:
-    DolphinViewModesConfigModule(QWidget* parent, const QVariantList& args);
-    virtual ~DolphinViewModesConfigModule();
+    DolphinViewModesConfigModule(QObject *parent, const KPluginMetaData &data);
+    ~DolphinViewModesConfigModule() override;
 
-    virtual void save();
-    virtual void defaults();
+    void save() override;
+    void defaults() override;
 
 private:
     void reparseConfiguration();
 
+private Q_SLOTS:
+    void viewModeChanged();
+
 private:
-    QList<ViewSettingsPageBase*> m_pages;
+    QList<ViewSettingsTab *> m_tabs;
 };
 
 #endif