diff options
author | Arno <am@disconnect.de> | 2013-07-27 08:53:21 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2013-07-27 08:53:21 +0200 |
commit | b8b0cdeebbc7e6c7df905291974ed9612125fe55 (patch) | |
tree | 238a199f666155d295c8d06a2a53f83bb36a348b /archivecontroller.cpp | |
parent | 1b1d3a18a8fffdd61f533fd4b0bde4f75d683212 (diff) | |
download | SheMov-b8b0cdeebbc7e6c7df905291974ed9612125fe55.tar.gz SheMov-b8b0cdeebbc7e6c7df905291974ed9612125fe55.tar.bz2 SheMov-b8b0cdeebbc7e6c7df905291974ed9612125fe55.zip |
Simplify icon management
Introduce SmGlobals::iconFor to retrieve the configured item.
Diffstat (limited to 'archivecontroller.cpp')
-rw-r--r-- | archivecontroller.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/archivecontroller.cpp b/archivecontroller.cpp index bda54c2..d75f52f 100644 --- a/archivecontroller.cpp +++ b/archivecontroller.cpp @@ -171,11 +171,8 @@ void ArchiveController::addActionForTree(QAction *a){ } void ArchiveController::readConfig(){ - QSettings s; - QString actorS = s.value("ui/actoricon", "Dildo").toString(); - mActorIcon = QIcon(SmGlobals::instance()->icons().value(actorS)); - QString genreS = s.value("ui/genreicon", "Dildo").toString(); - mGenreIcon = QIcon(SmGlobals::instance()->icons().value(genreS)); + mActorIcon = SmGlobals::instance()->iconFor("actor"); + mGenreIcon = SmGlobals::instance()->iconFor("genre"); } void ArchiveController::treeSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected){ |