-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomboboxlineedit.h
More file actions
46 lines (34 loc) · 915 Bytes
/
comboboxlineedit.h
File metadata and controls
46 lines (34 loc) · 915 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
42
43
44
45
46
#ifndef COMBOBOXLINEEDIT_H
#define COMBOBOXLINEEDIT_H
#include <QWidget>
#include <QResizeEvent>
#include <QModelIndex>
#include "globalconfig.h"
namespace Ui {
class ComboboxLineedit;
}
class ComboboxLineedit : public QWidget
{
Q_OBJECT
public:
explicit ComboboxLineedit(QModelIndex index, QString sValue, QWidget *parent = nullptr);
~ComboboxLineedit();
void setText(QString str);
QString text();
void addCombox(QString str);
QModelIndex getModelIndex()
{
return m_index;
}
void OnRequestLinkFieldInfo();
private slots:
void OnChangeCurrentText(const QString &str);
void OnJumpButtonClicked();
protected:
void resizeEvent(QResizeEvent *event);
bool eventFilter(QObject *watched, QEvent *event);
private:
Ui::ComboboxLineedit *ui;
QModelIndex m_index;
};
#endif // COMBOBOXLINEEDIT_H