32 Q_PROPERTY(
bool filled READ isFilled WRITE setFilled NOTIFY filledChanged FINAL)
49 bool isFilled()
const;
50 void setFilled(
bool filled);
52 int largestHeight()
const;
54 bool controlHasActiveFocus()
const;
55 void setControlHasActiveFocus(
bool controlHasActiveFocus);
57 bool controlHasText()
const;
58 void setControlHasText(
bool controlHasText);
60 qreal controlImplicitBackgroundHeight()
const;
61 void setControlImplicitBackgroundHeight(qreal controlImplicitBackgroundHeight);
63 qreal controlHeight()
const;
64 void setControlHeight(qreal controlHeight);
66 qreal verticalPadding()
const;
67 void setVerticalPadding(qreal verticalPadding);
69 void setLeftPadding(
int leftPadding);
70 void setFloatingLeftPadding(
int floatingLeftPadding);
73 void largestHeightChanged();
74 void controlHasActiveFocusChanged();
75 void controlHasTextChanged();
76 void controlImplicitBackgroundHeightChanged();
77 void verticalPaddingChanged();
83 bool shouldFloat()
const;
84 bool shouldAnimate()
const;
88 qreal normalTargetY()
const;
89 qreal floatingTargetY()
const;
90 qreal normalTargetX()
const;
91 qreal floatingTargetX()
const;
93 void controlActiveFocusChanged();
95 void updateFocusAnimation(
bool createIfNeeded =
false);
97 void componentComplete() override;
99 bool m_filled =
false;
100 bool m_controlHasActiveFocus =
false;
101 bool m_controlHasText =
false;
102 int m_largestHeight = 0;
103 qreal m_verticalPadding = 0;
104 qreal m_controlImplicitBackgroundHeight = 0;
105 qreal m_controlHeight = 0;
106 int m_leftPadding = 0;
107 int m_floatingLeftPadding = 0;
108 QPointer<QParallelAnimationGroup> m_focusAnimation;
static QT_BEGIN_NAMESPACE const qreal floatingScale
Q_GLOBAL_STATIC(QEasingCurve, animationEasingCurve, QEasingCurve::OutSine)
qreal controlTopInset(QQuickItem *textControl)