From 12cd9a16b16f1c36292918f2e3b4fbb42add5642 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Tue, 21 Nov 2017 18:10:10 +0100 Subject: [PATCH] setText/setGraphic/setGraphicSource need to be slots --- src/controls/QskPushButton.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/controls/QskPushButton.h b/src/controls/QskPushButton.h index 582ab20b..dc9ced5e 100644 --- a/src/controls/QskPushButton.h +++ b/src/controls/QskPushButton.h @@ -43,18 +43,13 @@ public: void setCorner( const QskCorner& ); QskCorner corner() const; - void setText( const QString& text ); QString text() const; void setTextOptions( const QskTextOptions& ); QskTextOptions textOptions() const; - void setGraphicSource( const QUrl& url ); QUrl graphicSource() const; - - void setGraphic( const QskGraphic& ); QskGraphic graphic() const; - bool hasGraphic() const; void setFlat( bool ); @@ -65,6 +60,11 @@ public: virtual QSizeF contentsSizeHint() const override; virtual QRectF layoutRect() const override; +public Q_SLOTS: + void setText( const QString& text ); + void setGraphicSource( const QUrl& url ); + void setGraphic( const QskGraphic& ); + Q_SIGNALS: void cornerChanged(); void borderWidthChanged();