From e6f83f7b5af1ed3467d12f551fb7401238b7855e Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 5 Jan 2018 16:41:31 +0100 Subject: Set parent on model --- framework/src/domain/folderlistmodel.cpp | 2 +- framework/src/domain/maillistmodel.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'framework') diff --git a/framework/src/domain/folderlistmodel.cpp b/framework/src/domain/folderlistmodel.cpp index 1065b4d4..f929b01e 100644 --- a/framework/src/domain/folderlistmodel.cpp +++ b/framework/src/domain/folderlistmodel.cpp @@ -26,7 +26,7 @@ using namespace Sink; using namespace Sink::ApplicationDomain; -FolderListModel::FolderListModel(QObject *parent) : KRecursiveFilterProxyModel() +FolderListModel::FolderListModel(QObject *parent) : KRecursiveFilterProxyModel(parent) { setDynamicSortFilter(true); sort(0, Qt::AscendingOrder); diff --git a/framework/src/domain/maillistmodel.cpp b/framework/src/domain/maillistmodel.cpp index fa0dda04..83fd37ff 100644 --- a/framework/src/domain/maillistmodel.cpp +++ b/framework/src/domain/maillistmodel.cpp @@ -23,7 +23,7 @@ #include MailListModel::MailListModel(QObject *parent) - : QSortFilterProxyModel() + : QSortFilterProxyModel(parent) { setDynamicSortFilter(true); sort(0, Qt::DescendingOrder); -- cgit v1.2.3