forked from SmartisanTech/Wrench
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfilteringedit.h
More file actions
35 lines (31 loc) · 785 Bytes
/
filteringedit.h
File metadata and controls
35 lines (31 loc) · 785 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
#ifndef FILTERINGEDIT_H
#define FILTERINGEDIT_H
#include <QPlainTextEdit>
class FilteringEdit : public QTextEdit
{
Q_OBJECT
public:
explicit FilteringEdit(QWidget *parent = 0);
void setAllowSelectAll(bool allow) {
m_allowSelectAll = allow;
}
private:
bool m_allowSelectAll;
signals:
void nextEntry();
void prevEntry();
void nextPageOfEntries();
void prevPageOfEntries();
void firstEntry();
void lastEntry();
void selectedCurrentEntryWithText(QString);
void getCurrentEntryForEdit();
void selectedCurrentText(QString);
void selectAllEntries();
void shiftSelectCurrentEntry();
public slots:
void changeCurrentText(const QString&);
private:
void keyPressEvent(QKeyEvent *);
};
#endif // FILTERINGEDIT_H