File indexing completed on 2025-01-19 04:46:52
0001 /* 0002 SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QWidget> 0010 class QVBoxLayout; 0011 class QGroupBox; 0012 class FolderConfigureSettingsPageBase : public QWidget 0013 { 0014 Q_OBJECT 0015 public: 0016 explicit FolderConfigureSettingsPageBase(QWidget *parent = nullptr); 0017 ~FolderConfigureSettingsPageBase() override; 0018 [[nodiscard]] bool wasModified() const; 0019 0020 protected: 0021 void addMainWidget(QWidget *widget); 0022 0023 QVBoxLayout *const mMainLayout; 0024 0025 private: 0026 void slotModifyClicked(bool clicked); 0027 QWidget *mMainWidget = nullptr; 0028 QGroupBox *const mGroupBox; 0029 };