QSettingsDialog  1.0.0
A Qt library to easily create a settings dialog for user configurable settings
qsettingswidgetfactoryregistry.h
1 #ifndef QSETTINGSWIDGETFACTORYREGISTRY_H
2 #define QSETTINGSWIDGETFACTORYREGISTRY_H
3 
4 #include "qsettingsdialog_global.h"
5 #include "qsettingswidgetfactory.h"
6 #include <QSharedPointer>
7 
9 class QSETTINGSDIALOGSHARED_EXPORT QSettingsWidgetFactoryRegistry
10 {
11 public:
13  inline virtual ~QSettingsWidgetFactoryRegistry() {}
14 
16  virtual inline int priority() const {
17  return 0;
18  }
20  virtual QSharedPointer<QSettingsWidgetFactory> tryResolve(int displayId) = 0;
21 };
22 
23 #endif // QSETTINGSWIDGETFACTORYREGISTRY_H
virtual int priority() const
The prioritoy of this registry.
Definition: qsettingswidgetfactoryregistry.h:16
A registry to load widget factories based on an id.
Definition: qsettingswidgetfactoryregistry.h:9
virtual ~QSettingsWidgetFactoryRegistry()
Virtual Destructor.
Definition: qsettingswidgetfactoryregistry.h:13