From b8b0cdeebbc7e6c7df905291974ed9612125fe55 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 27 Jul 2013 08:53:21 +0200 Subject: Simplify icon management Introduce SmGlobals::iconFor to retrieve the configured item. --- smtreemodel.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'smtreemodel.cpp') diff --git a/smtreemodel.cpp b/smtreemodel.cpp index 6abc999..d797f36 100644 --- a/smtreemodel.cpp +++ b/smtreemodel.cpp @@ -19,10 +19,7 @@ SmTreeModel::SmTreeModel(const QStringList &headers, QObject *parent) : QAbstrac mHeaderData.insert(mHeaders.at(i), i); } mRootItem = new SmTreeItem(headers.count()); - QSettings s; - QString iconName = s.value("ui/foldericon", "Dildo").toString(); - const QHash icons = SmGlobals::instance()->icons(); - mDecorationIcon = QIcon(icons.value(iconName)); + mDecorationIcon = SmGlobals::instance()->iconFor("folder"); } SmTreeModel::~SmTreeModel(){ -- cgit v1.2.3-70-g09d2