diff options
Diffstat (limited to 'examples/designer/worldtimeclockplugin/worldtimeclock.h')
-rw-r--r-- | examples/designer/worldtimeclockplugin/worldtimeclock.h | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/examples/designer/worldtimeclockplugin/worldtimeclock.h b/examples/designer/worldtimeclockplugin/worldtimeclock.h deleted file mode 100644 index 10682e8bf..000000000 --- a/examples/designer/worldtimeclockplugin/worldtimeclock.h +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (C) 2016 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause - -#ifndef WORLDTIMECLOCK_H -#define WORLDTIMECLOCK_H - -#include <QTime> -#include <QWidget> -#include <QtUiPlugin/QDesignerExportWidget> - -//! [0] //! [1] -class QDESIGNER_WIDGET_EXPORT WorldTimeClock : public QWidget -{ - Q_OBJECT -//! [0] - -public: - explicit WorldTimeClock(QWidget *parent = nullptr); - -public slots: - void setTimeZone(int hourOffset); - -signals: - void updated(QTime currentTime); - -protected: - void paintEvent(QPaintEvent *event) override; - -private: - int timeZoneOffset = 0; -//! [2] -}; -//! [1] //! [2] - -#endif |