Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
WidgetPropertyPage.h
Go to the documentation of this file.
1#pragma once
2
4#include <QWidget>
5
6namespace sf
7{
8namespace Ui {class WidgetPropertyPage;}
9
11{
12 Q_OBJECT
13
14 public:
15 explicit WidgetPropertyPage(QWidget* target, QWidget* parent = nullptr);
16
18
19 [[nodiscard]] bool isPageModified() const override;
20
21 [[nodiscard]] QString getPageName() const override;
22
23 QIcon getPageIcon() const override;
24
25 void applyPage() override;
26
27 void updatePage() override;
28
29 void stateSaveRestore(QSettings& settings, bool save) override;
30
31 private:
32 Ui::WidgetPropertyPage* ui;
33 QWidget* _target;
34};
35
36}
37
Widget to create a page in a PropertySheet dialog.
Definition PropertyPage.h:16
Definition WidgetPropertyPage.h:11
QString getPageName() const override
Gets the name of the page for displaying in the list view. When reimplemented the QObject's name is r...
bool isPageModified() const override
Gets the modified/changed status of the page.
QIcon getPageIcon() const override
Gets the name of the page for displaying in the list view. When not reimplemented this method returns...
void applyPage() override
Applies the changes made in this page.
void stateSaveRestore(QSettings &settings, bool save) override
Called by sheet to save the state of the page. A call to QSettings::beginGroup() is not needed since ...
WidgetPropertyPage(QWidget *target, QWidget *parent=nullptr)
~WidgetPropertyPage() override
void updatePage() override
Updates the control widgets of the page.
Definition ApplicationPropertyPage.h:8
Definition Application.h:10