summaryrefslogtreecommitdiffstats
path: root/examples/designer/worldtimeclockplugin/worldtimeclock.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/designer/worldtimeclockplugin/worldtimeclock.h')
-rw-r--r--examples/designer/worldtimeclockplugin/worldtimeclock.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/designer/worldtimeclockplugin/worldtimeclock.h b/examples/designer/worldtimeclockplugin/worldtimeclock.h
index faf057b09..e2d54a7e4 100644
--- a/examples/designer/worldtimeclockplugin/worldtimeclock.h
+++ b/examples/designer/worldtimeclockplugin/worldtimeclock.h
@@ -62,7 +62,7 @@ class QDESIGNER_WIDGET_EXPORT WorldTimeClock : public QWidget
//! [0]
public:
- explicit WorldTimeClock(QWidget *parent = 0);
+ explicit WorldTimeClock(QWidget *parent = nullptr);
public slots:
void setTimeZone(int hourOffset);
@@ -74,7 +74,7 @@ protected:
void paintEvent(QPaintEvent *event) override;
private:
- int timeZoneOffset;
+ int timeZoneOffset = 0;
//! [2]
};
//! [1] //! [2]