forked from sqlitebrowser/sqlitebrowser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsqltextedit.h
More file actions
41 lines (30 loc) · 805 Bytes
/
sqltextedit.h
File metadata and controls
41 lines (30 loc) · 805 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
#ifndef SQLTEXTEDIT_H
#define SQLTEXTEDIT_H
#include "Qsci/qsciscintilla.h"
class SqlUiLexer;
/**
* @brief The SqlTextEdit class
* This class is based on the QScintilla widget
*/
class SqlTextEdit : public QsciScintilla
{
Q_OBJECT
public:
explicit SqlTextEdit(QWidget *parent = 0);
virtual ~SqlTextEdit();
static SqlUiLexer* sqlLexer;
public slots:
void reloadKeywords();
void reloadSettings();
void clearErrorIndicators();
void setErrorIndicator(int fromRow, int fromIndex, int toRow, int toIndex);
protected:
void dropEvent(QDropEvent* e);
private:
void setupSyntaxHighlightingFormat(const QString& settings_name, int style);
int errorIndicatorNumber;
bool showErrorIndicators;
private slots:
void updateLineNumberAreaWidth();
};
#endif