From 7bfb48d6abb248d9739281ae46f8e9f52fcd16e3 Mon Sep 17 00:00:00 2001 From: Tannin Date: Sat, 20 Dec 2014 14:45:08 +0100 Subject: cleanup --- src/modlist.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/modlist.cpp') diff --git a/src/modlist.cpp b/src/modlist.cpp index d294bdd1..43862008 100644 --- a/src/modlist.cpp +++ b/src/modlist.cpp @@ -464,17 +464,7 @@ bool ModList::setData(const QModelIndex &index, const QVariant &value, int role) } -ModList::EColumn ModList::getEnabledColumn(int index) const -{ - for (int i = 0; i <= COL_LASTCOLUMN; ++i) { - if (index == 0) { - return static_cast(i); - } else { - --index; - } - } - return ModList::COL_NAME; -} + QVariant ModList::headerData(int section, Qt::Orientation orientation, -- cgit v1.3.1