diff options
author | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-04-10 11:42:18 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-04-10 10:34:06 +0000 |
commit | 6d0c86d65b6fa0f37ba696de28fea4e977d0a282 (patch) | |
tree | 10a0c5eb676c27143db4b1ce36ad012d375534b2 /examples/designer/customwidgetplugin/customwidgetplugin.h | |
parent | 1b04bf6d36af200dff0d7afff7080afab278034a (diff) |
Qt Designer Examples: Fix code around constructors.
Make constructors explicit, use constructor initialization for member
variables, remove unused variables.
Change-Id: I84273400d66ef061376bd0ec4948ab1a0fd45f30
Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
Diffstat (limited to 'examples/designer/customwidgetplugin/customwidgetplugin.h')
-rw-r--r-- | examples/designer/customwidgetplugin/customwidgetplugin.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/designer/customwidgetplugin/customwidgetplugin.h b/examples/designer/customwidgetplugin/customwidgetplugin.h index d1a09ed7d..a5037477d 100644 --- a/examples/designer/customwidgetplugin/customwidgetplugin.h +++ b/examples/designer/customwidgetplugin/customwidgetplugin.h @@ -50,7 +50,7 @@ class AnalogClockPlugin : public QObject, public QDesignerCustomWidgetInterface Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface" FILE "analogclock.json") Q_INTERFACES(QDesignerCustomWidgetInterface) public: - AnalogClockPlugin(QObject *parent = 0); + explicit AnalogClockPlugin(QObject *parent = 0); bool isContainer() const Q_DECL_OVERRIDE; bool isInitialized() const Q_DECL_OVERRIDE; |