[go: up one dir, main page]

Menu

[r303]: / mhistory.h  Maximize  Restore  History

Download this file

44 lines (31 with data), 675 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef MHISTORY_H
#define MHISTORY_H
#include <QWidget>
namespace Ui {
class MHistory;
}
class MHistory : public QWidget
{
Q_OBJECT
public:
explicit MHistory(QWidget *parent = 0);
~MHistory();
int currentIndex() const;
QString text(int) const;
void append(QString const &);
private slots:
void on_btFirst_clicked();
void on_btPrev_clicked();
void on_btNext_clicked();
void on_btLast_clicked();
void on_btRefresh_clicked();
private:
Ui::MHistory *ui;
QStringList history;
int ci;
void enableButtons();
signals:
void currentIndexChanged(int);
void buttonClicked(int);
};
#endif // MHISTORY_H