Commit fb22c23d authored by Eike Hein's avatar Eike Hein

Some clazy level 0+1 fixes.

parent 694d83d0
......@@ -57,6 +57,8 @@ class FilteredPlacesModel : public QSortFilterProxyModel
class RunCommandModel : public AbstractModel
{
Q_OBJECT
public:
RunCommandModel(QObject *parent = 0);
~RunCommandModel();
......
......@@ -39,7 +39,7 @@ class ContainmentInterface : public QObject
TaskManager
};
Q_ENUMS(Target)
Q_ENUM(Target)
ContainmentInterface(QObject *parent = 0);
~ContainmentInterface();
......
......@@ -199,8 +199,9 @@ int ForwardingModel::separatorCount() const
void ForwardingModel::reset()
{
emit beginResetModel();
emit endResetModel();
beginResetModel();
endResetModel();
emit countChanged();
emit separatorCountChanged();
}
......
......@@ -42,13 +42,13 @@ void FunnelModel::setSourceModel(QAbstractItemModel *model)
connect(model, SIGNAL(destroyed(QObject*)), this, SLOT(reset()));
if (!m_sourceModel) {
emit beginResetModel();
beginResetModel();
m_sourceModel = model;
connectSignals();
emit endResetModel();
endResetModel();
emit countChanged();
......
......@@ -207,7 +207,7 @@ void RecentContactsModel::refresh()
void RecentContactsModel::buildCache()
{
qDeleteAll(m_idToData.values());
qDeleteAll(m_idToData);
m_idToData.clear();
m_dataToRow.clear();
......
......@@ -27,6 +27,8 @@
class GroupSortProxy : public QSortFilterProxyModel
{
Q_OBJECT
public:
explicit GroupSortProxy(QAbstractItemModel *sourceModel);
~GroupSortProxy();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment