aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel/src
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2012-12-15 10:20:43 -0300
committerRenato Araujo Oliveira Filho <renato.filho@canonical.com>2012-12-15 10:20:43 -0300
commitb601ff786a6c385f0a293e18d5947b4e79b46235 (patch)
treeb80a9d5616ea089765144929bf9abe038c634643 /libqmenumodel/src
parent96a4d9c492d85c5e221cdf9117ba4d378a8c0e0f (diff)
downloadqmenumodel-b601ff786a6c385f0a293e18d5947b4e79b46235.tar.gz
qmenumodel-b601ff786a6c385f0a293e18d5947b4e79b46235.tar.bz2
qmenumodel-b601ff786a6c385f0a293e18d5947b4e79b46235.zip
Removed keywords from VIRTUAL functions.
Diffstat (limited to 'libqmenumodel/src')
-rw-r--r--libqmenumodel/src/qmenumodel.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libqmenumodel/src/qmenumodel.cpp b/libqmenumodel/src/qmenumodel.cpp
index 3da71d7..787e7a3 100644
--- a/libqmenumodel/src/qmenumodel.cpp
+++ b/libqmenumodel/src/qmenumodel.cpp
@@ -295,7 +295,7 @@ void QMenuModel::onItemsChanged(GMenuModel *model,
int prevcount = g_menu_model_get_n_items(model) + removed - added;
if (removed > 0) {
- Q_EMIT self->beginRemoveRows(QModelIndex(), position, position + removed - 1);
+ self->beginRemoveRows(QModelIndex(), position, position + removed - 1);
self->m_rowCount -= removed;
// Remove invalidated menus from the cache
for (int i = position, iMax = position + removed; i < iMax; ++i) {
@@ -311,11 +311,11 @@ void QMenuModel::onItemsChanged(GMenuModel *model,
cache->insert(i - removed, cache->take(i));
}
}
- Q_EMIT self->endRemoveRows();
+ self->endRemoveRows();
}
if (added > 0) {
- Q_EMIT self->beginInsertRows(QModelIndex(), position, position + added - 1);
+ self->beginInsertRows(QModelIndex(), position, position + added - 1);
// Update the indexes of cached menus to account for the insertions
for (int i = prevcount - removed - 1; i >= position; --i) {
if (cache->contains(i)) {
@@ -323,7 +323,7 @@ void QMenuModel::onItemsChanged(GMenuModel *model,
}
}
self->m_rowCount += added;
- Q_EMIT self->endInsertRows();
+ self->endInsertRows();
}
}