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

📄 digitalclock.h

📁 世界时间转换程序
💻 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 + -