From 10485e15e4de3e1a6c30733ad2d4850591d31509 Mon Sep 17 00:00:00 2001 From: Tannin Date: Wed, 27 Mar 2013 12:32:23 +0100 Subject: - some cleanup to hookdll - exchanged grouping proxies with existing solution from the kde project --- src/modlistsortproxy.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/modlistsortproxy.cpp') diff --git a/src/modlistsortproxy.cpp b/src/modlistsortproxy.cpp index a5f2ee82..1b96af3e 100644 --- a/src/modlistsortproxy.cpp +++ b/src/modlistsortproxy.cpp @@ -103,6 +103,7 @@ void ModListSortProxy::enableAllVisible() int modID = mapToSource(index(i, 0)).row(); m_Profile->setModEnabled(modID, true); } + invalidate(); } @@ -199,14 +200,6 @@ bool ModListSortProxy::filterMatches(ModInfo::Ptr info, bool enabled) const ((m_CategoryFilter == CategoryFactory::CATEGORY_SPECIAL_CONFLICT) && (hasConflictFlag(info->getFlags())))); } -/*QModelIndex ModListSortProxy::mapToSource(const QModelIndex &proxyIndex) const -{ -if (proxyIndex.model() && (proxyIndex.model() != this)) { - qDebug("%p - %p - %p - %d - %d - %d", proxyIndex.model(), this, this->sourceModel(), proxyIndex.row(), proxyIndex.column(), proxyIndex.parent().isValid()); -} - return QSortFilterProxyModel::mapToSource(proxyIndex); -}*/ - bool ModListSortProxy::filterAcceptsRow(int row, const QModelIndex&) const { -- cgit v1.3.1