signals with parameters
This commit is contained in:
parent
bb3ffc454f
commit
0c3a8ebece
|
@ -138,7 +138,7 @@ void QskGraphicLabel::setGraphicRole( int role )
|
||||||
if ( role != oldRole )
|
if ( role != oldRole )
|
||||||
{
|
{
|
||||||
update();
|
update();
|
||||||
Q_EMIT graphicRoleChanged();
|
Q_EMIT graphicRoleChanged( role );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -213,7 +213,7 @@ void QskGraphicLabel::setFillMode( FillMode mode )
|
||||||
if ( !m_data->graphic.isEmpty() )
|
if ( !m_data->graphic.isEmpty() )
|
||||||
update();
|
update();
|
||||||
|
|
||||||
Q_EMIT fillModeChanged();
|
Q_EMIT fillModeChanged( mode );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -229,6 +229,7 @@ Qt::Alignment QskGraphicLabel::alignment() const
|
||||||
|
|
||||||
void QskGraphicLabel::setAlignment( Qt::Alignment alignment )
|
void QskGraphicLabel::setAlignment( Qt::Alignment alignment )
|
||||||
{
|
{
|
||||||
|
// using setAlignmentHint ...
|
||||||
if ( alignment != m_data->alignment )
|
if ( alignment != m_data->alignment )
|
||||||
{
|
{
|
||||||
m_data->alignment = alignment;
|
m_data->alignment = alignment;
|
||||||
|
@ -236,7 +237,7 @@ void QskGraphicLabel::setAlignment( Qt::Alignment alignment )
|
||||||
if ( !( m_data->sourceSize.isEmpty() || m_data->graphic.isEmpty() ) )
|
if ( !( m_data->sourceSize.isEmpty() || m_data->graphic.isEmpty() ) )
|
||||||
update();
|
update();
|
||||||
|
|
||||||
Q_EMIT alignmentChanged();
|
Q_EMIT alignmentChanged( alignment );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -86,9 +86,9 @@ class QSK_EXPORT QskGraphicLabel : public QskControl
|
||||||
void sourceChanged();
|
void sourceChanged();
|
||||||
void mirrorChanged();
|
void mirrorChanged();
|
||||||
void sourceSizeChanged();
|
void sourceSizeChanged();
|
||||||
void graphicRoleChanged();
|
void graphicRoleChanged( int );
|
||||||
void alignmentChanged();
|
void alignmentChanged( Qt::Alignment );
|
||||||
void fillModeChanged();
|
void fillModeChanged( FillMode );
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
void setGraphic( const QskGraphic& );
|
void setGraphic( const QskGraphic& );
|
||||||
|
|
Loading…
Reference in New Issue