-
Notifications
You must be signed in to change notification settings - Fork 1
/
queryinfo.h
46 lines (40 loc) · 1.29 KB
/
queryinfo.h
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
#ifndef QUERYINFO_H
#define QUERYINFO_H
#include <QAbstractItemView>
#include <QItemSelectionModel>
#include <QRegion>
#include <QMouseEvent>
#include <QtSql>
#include "QTableView"
#include "QPainter"
class QueryInfo:public QAbstractItemView
{
Q_OBJECT
public:
bool ok;
QPointF line1[6],line2[6];
int len1,len2;
QTableView *qc;
QueryInfo(QWidget *parent=0);
~QueryInfo(){}
int Pointof(QPointF *line,int n);
QSqlQueryModel DataModel3;
bool selected(QSqlDatabase db,int index,QTableView *tv);
int getXfromMap(int data);
int getYfromMap(int data);
int mapper[4][5];
QModelIndex indexAt(const QPoint &point) const{}
void scrollTo(const QModelIndex &index,ScrollHint hint=EnsureVisible){}
QRect visualRect(const QModelIndex &index)const{}
void selector();
protected:
void paintEvent(QPaintEvent *e);
int horizontalOffset() const{}
bool isIndexHidden(const QModelIndex &index)const{}
QModelIndex moveCursor(CursorAction cursorAction,Qt::KeyboardModifiers modifiers){}
void setSelection(const QRect &rect,QItemSelectionModel::SelectionFlags flags){
}
int verticalOffset() const{}
QRegion visualRegionForSelection(const QItemSelection &selection) const{}
};
#endif // QUERYINFO_H