Skip to content
Permalink
Browse files

Fix clazy missing/invalid emit warnings

  • Loading branch information
nyalldawson committed Feb 2, 2018
1 parent f0b14c5 commit 6e7a995d3557589d43e5efaa2e49f4c98d41eae1
@@ -727,7 +727,7 @@ bool QgsMergedBookmarksTableModel::projectAvailable() const

void QgsMergedBookmarksTableModel::moveBookmark( QAbstractTableModel &modelFrom, QAbstractTableModel &modelTo, int row )
{
emit beginResetModel();
beginResetModel();
QSqlTableModel *qgisModel = dynamic_cast<QSqlTableModel *>( &modelTo );
if ( !qgisModel )
{
@@ -765,7 +765,7 @@ void QgsMergedBookmarksTableModel::moveBookmark( QAbstractTableModel &modelFrom,
qgisModel->select();
modelFrom.removeRows( row, 1 );
}
emit endResetModel();
endResetModel();
emit layoutChanged();
}

@@ -207,7 +207,7 @@ void QgsExternalResourceWidgetWrapper::setValue( const QVariant &value )
if ( mLabel )
{
mLabel->setText( value.toString() );
valueChanged( value.toString() ); // emit signal that value has changed, do not do it for other widgets
emit valueChanged( value.toString() ); // emit signal that value has changed, do not do it for other widgets
}

if ( mQgsWidget )
@@ -169,9 +169,9 @@ bool QgsRangeWidgetWrapper::valid() const
void QgsRangeWidgetWrapper::valueChangedVariant( const QVariant &v )
{
if ( v.type() == QVariant::Int )
valueChanged( v.toInt() );
emit valueChanged( v.toInt() );
if ( v.type() == QVariant::Double )
valueChanged( v.toDouble() );
emit valueChanged( v.toDouble() );
}

QVariant QgsRangeWidgetWrapper::value() const

0 comments on commit 6e7a995

Please sign in to comment.
You can’t perform that action at this time.