-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.h
More file actions
48 lines (40 loc) · 1010 Bytes
/
setup.h
File metadata and controls
48 lines (40 loc) · 1010 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
44
45
46
47
48
#ifndef SETUP_H
#define SETUP_H
#include <QObject>
#include <QLabel>
#include <QPushButton>
#include <QLineEdit>
#include <QComboBox>
class Setup : public QObject
{
Q_OBJECT
public:
explicit Setup(QWidget *tab, QObject *parent = nullptr);
void updateUI();
private:
void initUI();
void showColor(bool bSend);
signals:
public slots:
void onSendClr();
void onRecvClr();
public:
QColor m_qclrSend;
QColor m_qclrRecv;
QString m_fontSize;
int m_iHistory;
QComboBox *m_pcbxTextCode = nullptr;
int m_iRecvDelay;
int m_iFileDelay;
protected:
QWidget *m_pTab = nullptr;
QLabel *m_plabSend = nullptr;
QLabel *m_plabRecv = nullptr;
QPushButton *m_pbtnSendClr = nullptr;
QPushButton *m_pbtnRecvClr = nullptr;
QLineEdit *m_pedtSize = nullptr;
QLineEdit *m_pedtHistory = nullptr;
QLineEdit *m_pedtRecvDelay = nullptr;
QLineEdit *m_pedtFileDelay = nullptr;
};
#endif // SETUP_H