⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clock.h

📁 程序代码使用说明: (1)所有源代码目录下都提供了Makefile(非Qt)
💻 H
字号:
#ifndef CLOCK_H#define CLOCK_H//#include <qdatetime.h>#include <QWidget>class QTimer;class ClockFace;class QTimeEdit;class QComboBox;class Clock : public QWidget{    Q_OBJECTpublic:    Clock( QWidget *parent=0, Qt::WFlags fl=0 );    ~Clock();private slots:    void updateClock();    void changeClock(const QTime& time);    void saveSettings();    void updateFormat(int index);private:    void readSettings();    void setComboIndex();    void setEditorFormat();        enum TimeFormat {CLOCK_12_HOUR, CLOCK_24_HOUR} timeFormat;    QTimer *t;    QTimeEdit *timeEditor;    QComboBox *formatCombo;    ClockFace *clockFace;     };#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -