File indexing completed on 2024-05-12 09:55:20
0001 /* This file is part of the KDE project 0002 SPDX-FileCopyrightText: 2014 Martin Sandsmark <martin.sandsmark@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 #pragma once 0007 0008 #include <QTabWidget> 0009 #include <QVariant> 0010 0011 class Ui_tabWidget; 0012 class ReplicodeSettings; 0013 0014 class ReplicodeConfig : public QTabWidget 0015 { 0016 Q_OBJECT 0017 public: 0018 explicit ReplicodeConfig(QWidget *parent = nullptr); 0019 ~ReplicodeConfig() override; 0020 0021 public Q_SLOTS: 0022 void reset(); 0023 void save(); 0024 void load(); 0025 0026 ReplicodeSettings *settingsObject() 0027 { 0028 save(); 0029 return m_settings; 0030 } 0031 0032 private: 0033 Ui_tabWidget *m_ui; 0034 ReplicodeSettings *m_settings; 0035 };