diff options
Diffstat (limited to 'src/templates/qquickbutton.cpp')
-rw-r--r-- | src/templates/qquickbutton.cpp | 41 |
1 files changed, 1 insertions, 40 deletions
diff --git a/src/templates/qquickbutton.cpp b/src/templates/qquickbutton.cpp index 4f5df5fa..b323cb0b 100644 --- a/src/templates/qquickbutton.cpp +++ b/src/templates/qquickbutton.cpp @@ -83,47 +83,8 @@ QT_BEGIN_NAMESPACE \sa {Customizing Button}, {Button Controls} */ -class QQuickButtonPrivate : public QQuickAbstractButtonPrivate +QQuickButton::QQuickButton(QQuickItem *parent) : QQuickAbstractButton(parent) { -public: - QQuickButtonPrivate(); - - bool highlighted; -}; - -QQuickButtonPrivate::QQuickButtonPrivate() : - highlighted(false) -{ -} - -QQuickButton::QQuickButton(QQuickItem *parent) : - QQuickAbstractButton(*(new QQuickButtonPrivate), parent) -{ -} - -/*! - \qmlproperty bool Qt.labs.controls::Button::highlighted - - This property holds whether the button is highlighted. - - A button can be highlighted in order to draw the user's attention towards - it. It has no effect on keyboard interaction. - - The default value is \c false. -*/ -bool QQuickButton::isHighlighted() const -{ - Q_D(const QQuickButton); - return d->highlighted; -} - -void QQuickButton::setHighlighted(bool highlighted) -{ - Q_D(QQuickButton); - if (highlighted != d->highlighted) { - d->highlighted = highlighted; - emit highlightedChanged(); - } } QFont QQuickButton::defaultFont() const |