Skip to content

Commit 82bedba

Browse files
committedJul 2, 2018
do not use emit keyword for functions
1 parent 4ca91b2 commit 82bedba

File tree

5 files changed

+218
-330
lines changed

5 files changed

+218
-330
lines changed
 

‎src/quickgui/attributes/qgsquicksubmodel.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,28 +124,28 @@ void QgsQuickSubModel::setModel( QAbstractItemModel *model )
124124

125125
void QgsQuickSubModel::onRowsAboutToBeInserted( const QModelIndex &parent, int first, int last )
126126
{
127-
emit beginInsertRows( mapFromSource( parent ), first, last );
127+
beginInsertRows( mapFromSource( parent ), first, last );
128128
}
129129

130130
void QgsQuickSubModel::onRowsInserted( const QModelIndex &parent, int first, int last )
131131
{
132132
Q_UNUSED( parent )
133133
Q_UNUSED( first )
134134
Q_UNUSED( last )
135-
emit endInsertRows();
135+
endInsertRows();
136136
}
137137

138138
void QgsQuickSubModel::onRowsAboutToBeRemoved( const QModelIndex &parent, int first, int last )
139139
{
140-
emit beginRemoveRows( mapFromSource( parent ), first, last );
140+
beginRemoveRows( mapFromSource( parent ), first, last );
141141
}
142142

143143
void QgsQuickSubModel::onRowsRemoved( const QModelIndex &parent, int first, int last )
144144
{
145145
Q_UNUSED( parent )
146146
Q_UNUSED( first )
147147
Q_UNUSED( last )
148-
emit endRemoveRows();
148+
endRemoveRows();
149149
}
150150

151151
void QgsQuickSubModel::onModelAboutToBeReset()

‎tests/testdata/lines.dbf

0 Bytes
Binary file not shown.

‎tests/testdata/points.dbf

-4.41 KB
Binary file not shown.

‎tests/testdata/polys.dbf

0 Bytes
Binary file not shown.

‎tests/testdata/quickapp_project.qgs

Lines changed: 214 additions & 326 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.