📄 aclock.h
字号:
/****************************************************************************
** $Id: qt/aclock.h 3.3.1 edited Dec 10 16:29 $
**
** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
**
** This file is part of an example program for Qt. This example
** program may be used, distributed and modified without limitation.
**
*****************************************************************************/
#ifndef ACLOCK_H
#define ACLOCK_H
#include <qwidget.h>
#include <qdatetime.h>
class QTimer;
class AnalogClock : public QWidget // analog clock widget
{
Q_OBJECT
public:
AnalogClock( QWidget *parent=0, const char *name=0 );
void setAutoMask(bool b);
protected:
void updateMask();
void paintEvent( QPaintEvent *);
void mousePressEvent( QMouseEvent *);
void mouseMoveEvent( QMouseEvent *);
void drawClock( QPainter* );
private slots:
void timeout();
public slots:
void setTime( const QTime & t );
private:
QPoint clickPos;
QTime time;
QTimer *internalTimer;
};
#endif // ACLOCK_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -