blob: 860e042a3d0838c8aafdd89ab69e4b8e922f5ff6 (
plain)
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
|
#ifndef LINEEDIT_H
#define LINEEDIT_H
#include <QLineEdit>
class LineEditExtension : public QObject
{
Q_OBJECT
Q_PROPERTY(int leftMargin READ leftMargin WRITE setLeftMargin NOTIFY marginsChanged);
Q_PROPERTY(int rightMargin READ rightMargin WRITE setRightMargin NOTIFY marginsChanged);
Q_PROPERTY(int topMargin READ topMargin WRITE setTopMargin NOTIFY marginsChanged);
Q_PROPERTY(int bottomMargin READ bottomMargin WRITE setBottomMargin NOTIFY marginsChanged);
public:
LineEditExtension(QObject *);
int leftMargin() const;
int setLeftMargin(int);
int rightMargin() const;
int setRightMargin(int);
int topMargin() const;
int setTopMargin(int);
int bottomMargin() const;
int setBottomMargin(int);
signals:
void marginsChanged();
private:
QLineEdit *m_lineedit;
};
#endif // LINEEDIT_H
|