?? digitalclock.h
字號:
/****************************************************************************
** File: 'digitalclock.h'
**
** Created: Sat Dec 2 15:58:32 2006
** by: Wya ($Id: edited Sat Dec 2 15:58:32 2006 $)
**
** WARNING! All changes made by wya
**
****************************************************************************/
#include <QtGui>
#ifndef DIGITALCLOCK_H
#define DIGITALCLOCK_H
#include <QLCDNumber>
class DigitalClock : public QLCDNumber
{
Q_OBJECT
public:
DigitalClock(QWidget *parent = 0);
void setForamtWithSecond();
void setForamtWithMircoSecond();
virtual QString getTimeString(int hh,int mm,int ss,int zz);
#ifdef LOG_STOPWATCH
QString getDisplayTime(){return m_time;}
#endif
public slots:
void setDisplayTime(const QString & text);
protected:
void mouseDoubleClickEvent ( QMouseEvent * event ) ;
private slots:
void showTime();
void slotDisplayStopWatchTimer();
private:
int m_hours;
int m_minutes;
int m_seconds;
int m_microSeconds;
bool m_formatMicroSecond;
#ifdef LOG_STOPWATCH
QString m_time;
#endif
};
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -