diff options
author | am <am@f440f766-f032-0410-8965-dc7d17de2ca0> | 2009-07-16 19:34:57 +0000 |
---|---|---|
committer | am <am@f440f766-f032-0410-8965-dc7d17de2ca0> | 2009-07-16 19:34:57 +0000 |
commit | 1b1e48aa11c4518e100004dac594540e6024fa68 (patch) | |
tree | 0a44ad1d42f463960a045c9207d0fb2188309e57 /shemoviconprovider.cpp | |
parent | 95bd97d4f5dc4d0ee91cfeeff89b88ff3d8f26df (diff) | |
download | SheMov-1b1e48aa11c4518e100004dac594540e6024fa68.tar.gz SheMov-1b1e48aa11c4518e100004dac594540e6024fa68.tar.bz2 SheMov-1b1e48aa11c4518e100004dac594540e6024fa68.zip |
-Fixed extractor... Just look at the examples for QProcess :)
-Beautified extractor output for unrar
-Added User interface configuration options
-So, there are Usability fixes
git-svn-id: file:///var/svn/repos2/shemov/trunk@388 f440f766-f032-0410-8965-dc7d17de2ca0
Diffstat (limited to 'shemoviconprovider.cpp')
-rw-r--r-- | shemoviconprovider.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/shemoviconprovider.cpp b/shemoviconprovider.cpp index ed3febb..daea4c0 100644 --- a/shemoviconprovider.cpp +++ b/shemoviconprovider.cpp @@ -7,6 +7,7 @@ #include <QIcon> #include <QFileInfo> +#include <QSettings> #include "shemoviconprovider.h" #include "helper.h" @@ -14,9 +15,13 @@ SheMovIconProvider::SheMovIconProvider() {}; QIcon SheMovIconProvider::icon(const QFileInfo &info) const { - /*if(info.isDir()){ - return QIcon(":/dildo.png"); - }*/ + if(info.isDir()){ + QSettings s; + QString fi(s.value("ui/foldericon").toString()); + if(fi == "Dildo"){ + return QIcon(":/dildo.png"); + } + } QString type = Helper::mimeType(info.absoluteFilePath()); if(type.toLower().startsWith("video")){ return QIcon(":/movie.svg"); |