projects
/
dorian
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Show reading progress.
[dorian]
/
widgets
/
progress.h
1
#ifndef PROGRESS_H
2
#define PROGRESS_H
3
4
#include <QWidget>
5
#include <QLabel>
6
7
class Progress: public QLabel
8
{
9
Q_OBJECT
10
11
public:
12
explicit Progress(QWidget *parent = 0);
13
14
signals:
15
16
public slots:
17
void setProgress(qreal p);
18
void flash();
19
20
protected:
21
void paintEvent(QPaintEvent *e);
22
void timerEvent(QTimerEvent *e);
23
qreal progress;
24
int timer;
25
};
26
27
#endif // PROGRESS_H