X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/6072005ddce81b456fdcf2e77d5156a1d86f3686..9d08bb5b97b02843e778d84bfc1ff793cded03bf:/src/settings/servicemodel.cpp diff --git a/src/settings/servicemodel.cpp b/src/settings/servicemodel.cpp index 81810b0a0..9bfe1dad3 100644 --- a/src/settings/servicemodel.cpp +++ b/src/settings/servicemodel.cpp @@ -65,7 +65,7 @@ bool ServiceModel::setData(const QModelIndex& index, const QVariant& value, int return false; } - emit dataChanged(index, index); + Q_EMIT dataChanged(index, index); return true; } @@ -92,3 +92,10 @@ int ServiceModel::rowCount(const QModelIndex& parent) const return m_items.count(); } +void ServiceModel::clear() +{ + beginRemoveRows(QModelIndex(), 0, m_items.count()); + m_items.clear(); + endRemoveRows(); +} +