clock.h

来自「程序代码使用说明: (1)所有源代码目录下都提供了Makefile(非Qt)」· C头文件 代码 · 共 42 行

H
42
字号
#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 + =
减小字号Ctrl + -
显示快捷键?