QSettingsDialog  1.0.0
A Qt library to easily create a settings dialog for user configurable settings
qsettingsgroupwidgetfactory.h
1 #ifndef QSETTINGSGROUPWIDGETFACTORY_H
2 #define QSETTINGSGROUPWIDGETFACTORY_H
3 
4 #include "qsettingsdialog_global.h"
5 #include "qsettingsgroupwidget.h"
6 
8 class QSETTINGSDIALOGSHARED_EXPORT QSettingsGroupWidgetFactory
9 {
10 public:
12  inline virtual ~QSettingsGroupWidgetFactory() {}
13 
15  virtual QSettingsGroupWidgetBase *createGroupWidget(QWidget *parent) = 0;
16 };
17 
19 template <class TSettingsGroupWidget>
21 {
22 public:
24  return new TSettingsGroupWidget(parent);
25  }
26 };
27 
28 #endif // QSETTINGSGROUPWIDGETFACTORY_H
QSettingsGroupWidgetBase * createGroupWidget(QWidget *parent) final
Creates a new instance of the group widget.
Definition: qsettingsgroupwidgetfactory.h:23
virtual ~QSettingsGroupWidgetFactory()
Virtual destructor.
Definition: qsettingsgroupwidgetfactory.h:12
[INTERNAL USE] Generic base class for a factory to create QSettingsWidgets
Definition: qsettingsgroupwidgetfactory.h:20
The base class for a factory to create QSettingsGroupWidgets.
Definition: qsettingsgroupwidgetfactory.h:8
The base class for group widgets in the settings dialog.
Definition: qsettingsgroupwidget.h:11