diff options
Diffstat (limited to 'src/controls/qquicktextfield_p.h')
-rw-r--r-- | src/controls/qquicktextfield_p.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/controls/qquicktextfield_p.h b/src/controls/qquicktextfield_p.h index a3b0fa8d..6f22cdd5 100644 --- a/src/controls/qquicktextfield_p.h +++ b/src/controls/qquicktextfield_p.h @@ -60,6 +60,7 @@ class QQuickMouseEvent; class Q_QUICKCONTROLS_EXPORT QQuickTextField : public QQuickTextInput { Q_OBJECT + Q_PROPERTY(QFont font READ font WRITE setFont NOTIFY fontChanged) // override Q_PROPERTY(QQuickItem *background READ background WRITE setBackground NOTIFY backgroundChanged FINAL) Q_PROPERTY(QQuickText *placeholder READ placeholder WRITE setPlaceholder NOTIFY placeholderChanged FINAL) @@ -67,6 +68,9 @@ public: explicit QQuickTextField(QQuickItem *parent = Q_NULLPTR); ~QQuickTextField(); + QFont font() const; + void setFont(const QFont &font); + QQuickItem *background() const; void setBackground(QQuickItem *background); @@ -74,6 +78,7 @@ public: void setPlaceholder(QQuickText *placeholder); Q_SIGNALS: + void fontChanged(); void backgroundChanged(); void placeholderChanged(); void pressAndHold(QQuickMouseEvent *mouse); |