| 
    QGIS API Documentation 3.99.0-Master (f78f5286a64)
    
   | 
 
A factory for editors for integer settings with a spin box. More...
#include <qgssettingseditorwidgetwrapperimpl.h>

Public Member Functions | |
| QgsSettingsIntegerSpinBoxWrapper (QObject *parent=nullptr) | |
| Constructor of the factory.   | |
| QgsSettingsIntegerSpinBoxWrapper (QWidget *editor, const QgsSettingsEntryBase *setting, const QStringList &dynamicKeyPartList=QStringList()) | |
| Constructor of the wrapper for a given setting and its widget editor.   | |
| QgsSettingsEditorWidgetWrapper * | createWrapper (QObject *parent=nullptr) const override | 
| Creates a new instance of the editor wrapper so it can be configured for a widget and a setting.   | |
| void | enableAutomaticUpdatePrivate () override | 
| Enables automatic update, which causes the setting to be updated immediately when the widget value is changed.   | |
| QString | id () const override | 
| This id of the type of settings it handles.   | |
| bool | setSettingFromWidget () const override | 
| Sets the setting value from the widget value The wrapper must be configured before calling this medthod.   | |
| bool | setWidgetValue (const int &value) const override | 
| Sets the widget value.   | |
| int | valueFromWidget () const override | 
| Returns the widget value.   | |
  Public Member Functions inherited from QgsSettingsEditorWidgetWrapperTemplate< QgsSettingsEntryInteger, QSpinBox, int > | |
| QgsSettingsEditorWidgetWrapperTemplate (QObject *parent=nullptr) | |
| Constructor.   | |
| QSpinBox * | editor () const | 
| Returns the editor.   | |
| const QgsSettingsEntryInteger * | setting () const | 
| Returns the setting.   | |
| virtual bool | setWidgetFromSetting () const override | 
| Sets the widget value from the setting value The wrapper must be configured before calling this medthod.   | |
| bool | setWidgetFromVariant (const QVariant &value) const override | 
| Sets the value of the widget The wrapper must be configured before calling this medthod.   | |
| QVariant | variantValueFromWidget () const override | 
| Returns the value from the widget as a variant The wrapper must be configured before calling this medthod.   | |
  Public Member Functions inherited from QgsSettingsEditorWidgetWrapper | |
| QgsSettingsEditorWidgetWrapper (QObject *parent=nullptr) | |
| Constructor.   | |
| virtual | ~QgsSettingsEditorWidgetWrapper ()=default | 
| void | configureAutomaticUpdate (QDialog *dialog=nullptr) | 
| Configure the settings update behavior when a widget value is changed.   | |
| bool | configureEditor (QWidget *editor, const QgsSettingsEntryBase *setting, const QStringList &dynamicKeyPartList=QStringList()) | 
| Configures the editor according the setting.   | |
| QWidget * | createEditor (const QgsSettingsEntryBase *setting, const QStringList &dynamicKeyPartList=QStringList(), QWidget *parent=nullptr) | 
| Creates the editor widget for the given setting.   | |
| QStringList | dynamicKeyPartList () const | 
| Returns the dynamic key parts.   | |
Additional Inherited Members | |
  Static Public Member Functions inherited from QgsSettingsEditorWidgetWrapper | |
| static QgsSettingsEditorWidgetWrapper * | fromWidget (const QWidget *widget) | 
| Creates a wrapper from the definition stored in a widget created by createEditor()   | |
  Protected Member Functions inherited from QgsSettingsEditorWidgetWrapperTemplate< QgsSettingsEntryInteger, QSpinBox, int > | |
| bool | configureEditorPrivate (QWidget *editor, const QgsSettingsEntryBase *setting) override | 
| Configures an existing editor widget.   | |
| virtual void | configureEditorPrivateImplementation () | 
| To be re-implemented to implemeent type specific configuration (e.g. opacity for colors)   | |
| virtual QWidget * | createEditorPrivate (QWidget *parent=nullptr) const override | 
| Creates the widgets.   | |
  Protected Attributes inherited from QgsSettingsEditorWidgetWrapperTemplate< QgsSettingsEntryInteger, QSpinBox, int > | |
| QSpinBox * | mEditor | 
| const QgsSettingsEntryInteger * | mSetting | 
  Protected Attributes inherited from QgsSettingsEditorWidgetWrapper | |
| QStringList | mDynamicKeyPartList | 
A factory for editors for integer settings with a spin box.
Definition at line 235 of file qgssettingseditorwidgetwrapperimpl.h.
      
  | 
  inline | 
Constructor of the factory.
Definition at line 240 of file qgssettingseditorwidgetwrapperimpl.h.
      
  | 
  inline | 
Constructor of the wrapper for a given setting and its widget editor.
Definition at line 244 of file qgssettingseditorwidgetwrapperimpl.h.
      
  | 
  inlineoverridevirtual | 
Creates a new instance of the editor wrapper so it can be configured for a widget and a setting.
Implements QgsSettingsEditorWidgetWrapperTemplate< QgsSettingsEntryInteger, QSpinBox, int >.
Definition at line 247 of file qgssettingseditorwidgetwrapperimpl.h.
      
  | 
  overridevirtual | 
Enables automatic update, which causes the setting to be updated immediately when the widget value is changed.
Implements QgsSettingsEditorWidgetWrapper.
Definition at line 233 of file qgssettingseditorwidgetwrapperimpl.cpp.
      
  | 
  overridevirtual | 
This id of the type of settings it handles.
Implements QgsSettingsEditorWidgetWrapperTemplate< QgsSettingsEntryInteger, QSpinBox, int >.
Definition at line 214 of file qgssettingseditorwidgetwrapperimpl.cpp.
      
  | 
  overridevirtual | 
Sets the setting value from the widget value The wrapper must be configured before calling this medthod.
Implements QgsSettingsEditorWidgetWrapperTemplate< QgsSettingsEntryInteger, QSpinBox, int >.
Definition at line 240 of file qgssettingseditorwidgetwrapperimpl.cpp.
      
  | 
  overridevirtual | 
Sets the widget value.
Implements QgsSettingsEditorWidgetWrapperTemplate< QgsSettingsEntryInteger, QSpinBox, int >.
Definition at line 219 of file qgssettingseditorwidgetwrapperimpl.cpp.
      
  | 
  overridevirtual | 
Returns the widget value.
Implements QgsSettingsEditorWidgetWrapperTemplate< QgsSettingsEntryInteger, QSpinBox, int >.
Definition at line 254 of file qgssettingseditorwidgetwrapperimpl.cpp.