1
#ifndef ZEALSEARCHEDIT_H
2
#define ZEALSEARCHEDIT_H
10
class ZealSearchEdit : public QLineEdit
14
explicit ZealSearchEdit(QWidget *parent = 0);
15
void setTreeView(QTreeView *view);
18
void setCompletions(const QStringList &completions);
21
bool eventFilter(QObject *obj, QEvent *ev);
22
void focusInEvent(QFocusEvent *);
23
void keyPressEvent(QKeyEvent *keyEvent);
24
void mousePressEvent(QMouseEvent *ev);
25
void resizeEvent(QResizeEvent *ev);
31
QString currentCompletion(const QString &text);
32
void showCompletions(const QString &text);
37
QCompleter *prefixCompleter;
39
QLabel *completionLabel;
43
#endif // ZEALSEARCHEDIT_H