Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
do not use emit keyword for functions
  • Loading branch information
PeterPetrik committed Jul 2, 2018
1 parent 4ca91b2 commit 82bedba
Show file tree
Hide file tree
Showing 5 changed files with 218 additions and 330 deletions.
8 changes: 4 additions & 4 deletions src/quickgui/attributes/qgsquicksubmodel.cpp
Expand Up @@ -124,28 +124,28 @@ void QgsQuickSubModel::setModel( QAbstractItemModel *model )

void QgsQuickSubModel::onRowsAboutToBeInserted( const QModelIndex &parent, int first, int last )
{
emit beginInsertRows( mapFromSource( parent ), first, last );
beginInsertRows( mapFromSource( parent ), first, last );
}

void QgsQuickSubModel::onRowsInserted( const QModelIndex &parent, int first, int last )
{
Q_UNUSED( parent )
Q_UNUSED( first )
Q_UNUSED( last )
emit endInsertRows();
endInsertRows();
}

void QgsQuickSubModel::onRowsAboutToBeRemoved( const QModelIndex &parent, int first, int last )
{
emit beginRemoveRows( mapFromSource( parent ), first, last );
beginRemoveRows( mapFromSource( parent ), first, last );
}

void QgsQuickSubModel::onRowsRemoved( const QModelIndex &parent, int first, int last )
{
Q_UNUSED( parent )
Q_UNUSED( first )
Q_UNUSED( last )
emit endRemoveRows();
endRemoveRows();
}

void QgsQuickSubModel::onModelAboutToBeReset()
Expand Down
Binary file modified tests/testdata/lines.dbf
Binary file not shown.
Binary file modified tests/testdata/points.dbf
Binary file not shown.
Binary file modified tests/testdata/polys.dbf
Binary file not shown.

0 comments on commit 82bedba

Please sign in to comment.