signals improved

This commit is contained in:
Uwe Rathmann 2018-11-06 18:47:30 +01:00
parent 539efdff68
commit b398bfcc62
2 changed files with 4 additions and 4 deletions

View File

@ -97,7 +97,7 @@ void QskTextLabel::setTextOptions( const QskTextOptions& options )
resetImplicitSize(); resetImplicitSize();
update(); update();
Q_EMIT textOptionsChanged(); Q_EMIT textOptionsChanged( options );
} }
QskTextOptions QskTextLabel::textOptions() const QskTextOptions QskTextLabel::textOptions() const
@ -174,7 +174,7 @@ void QskTextLabel::setTextColor( const QColor& color )
if ( oldColor != color ) if ( oldColor != color )
{ {
update(); update();
Q_EMIT textColorChanged(); Q_EMIT textColorChanged( color );
} }
} }

View File

@ -69,8 +69,8 @@ class QSK_EXPORT QskTextLabel : public QskControl
Q_SIGNALS: Q_SIGNALS:
void textChanged( const QString& ); void textChanged( const QString& );
void textColorChanged(); void textColorChanged( const QColor& );
void textOptionsChanged(); void textOptionsChanged( const QskTextOptions& );
void fontRoleChanged(); void fontRoleChanged();
void alignmentChanged(); void alignmentChanged();