aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/qquickbutton_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates/qquickbutton_p.h')
-rw-r--r--src/templates/qquickbutton_p.h17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/templates/qquickbutton_p.h b/src/templates/qquickbutton_p.h
index 5b9c7df5..83d22fb8 100644
--- a/src/templates/qquickbutton_p.h
+++ b/src/templates/qquickbutton_p.h
@@ -52,32 +52,19 @@
QT_BEGIN_NAMESPACE
-class QQuickButtonPrivate;
-
class Q_LABSTEMPLATES_EXPORT QQuickButton : public QQuickAbstractButton
{
Q_OBJECT
- Q_PROPERTY(bool highlighted READ isHighlighted WRITE setHighlighted NOTIFY highlightedChanged FINAL)
public:
explicit QQuickButton(QQuickItem *parent = Q_NULLPTR);
- bool isHighlighted() const;
- void setHighlighted(bool highlighted);
-
-Q_SIGNALS:
- void highlightedChanged();
-
protected:
QFont defaultFont() const Q_DECL_OVERRIDE;
-
-private:
- Q_DISABLE_COPY(QQuickButton)
- Q_DECLARE_PRIVATE(QQuickButton)
};
-Q_DECLARE_TYPEINFO(QQuickButton, Q_COMPLEX_TYPE);
-
QT_END_NAMESPACE
+QML_DECLARE_TYPE(QQuickButton)
+
#endif // QQUICKBUTTON_P_H