From b398bfcc6207c9f3bad412121a8ab5a8c1ea6734 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Tue, 6 Nov 2018 18:47:30 +0100 Subject: [PATCH] signals improved --- src/controls/QskTextLabel.cpp | 4 ++-- src/controls/QskTextLabel.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/controls/QskTextLabel.cpp b/src/controls/QskTextLabel.cpp index 5c46388b..e44389c9 100644 --- a/src/controls/QskTextLabel.cpp +++ b/src/controls/QskTextLabel.cpp @@ -97,7 +97,7 @@ void QskTextLabel::setTextOptions( const QskTextOptions& options ) resetImplicitSize(); update(); - Q_EMIT textOptionsChanged(); + Q_EMIT textOptionsChanged( options ); } QskTextOptions QskTextLabel::textOptions() const @@ -174,7 +174,7 @@ void QskTextLabel::setTextColor( const QColor& color ) if ( oldColor != color ) { update(); - Q_EMIT textColorChanged(); + Q_EMIT textColorChanged( color ); } } diff --git a/src/controls/QskTextLabel.h b/src/controls/QskTextLabel.h index 9901d701..fc939db6 100644 --- a/src/controls/QskTextLabel.h +++ b/src/controls/QskTextLabel.h @@ -69,8 +69,8 @@ class QSK_EXPORT QskTextLabel : public QskControl Q_SIGNALS: void textChanged( const QString& ); - void textColorChanged(); - void textOptionsChanged(); + void textColorChanged( const QColor& ); + void textOptionsChanged( const QskTextOptions& ); void fontRoleChanged(); void alignmentChanged();