-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdealView.h
More file actions
38 lines (33 loc) · 812 Bytes
/
dealView.h
File metadata and controls
38 lines (33 loc) · 812 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
#ifndef DEALVIEW_H
#define DEALVIEW_H
#include <QWidget>
#include <QPainter>
#include <QLineEdit>
#include <QTableWidget>
class TradeWidget;
class CThostFtdcTradeField;
class dealView : public QWidget
{
Q_OBJECT
public:
dealView(TradeWidget * tWidget, QWidget* parent = Q_NULLPTR, Qt::WindowFlags f = Qt::WindowFlags());
~dealView();
TradeWidget * tw;
// 当前订单
CThostFtdcTradeField * c_trader;
// 单击行数
int clickLine;
// 滚动行数
int wrows;
protected:
// 构建或repaint或update后触发
void paintEvent(QPaintEvent * event);
// 记录鼠标松开时的状态
void mouseReleaseEvent(QMouseEvent * event);
// 处理鼠标滚轮事件
void wheelEvent(QWheelEvent * event);
private:
// 绘制订单表格
void paintOrderTable(QPainter * p);
};
#endif // DEALVIEW_H