diff options
author | Ken Moore <ken@pcbsd.org> | 2015-05-28 09:56:15 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2015-05-28 09:56:15 -0400 |
commit | d0fb463abb9e79606c9eb75b3a94331127cd5060 (patch) | |
tree | 2ffe3c0cb2e6dee36e56fef82bf49eb5e17d5b47 /lumina-desktop/panel-plugins/desktopbar/LDeskBar.cpp | |
parent | Fix up the display of directories in the user button plugin. (diff) | |
download | lumina-d0fb463abb9e79606c9eb75b3a94331127cd5060.tar.gz lumina-d0fb463abb9e79606c9eb75b3a94331127cd5060.tar.bz2 lumina-d0fb463abb9e79606c9eb75b3a94331127cd5060.zip |
Add a new LUtils::imageExtensions() function, and setup the lumina-desktop plugins to all use that for checking whether a thumbnail can be shown. Also add thumbnail support into the user button for favorite files.
Diffstat (limited to 'lumina-desktop/panel-plugins/desktopbar/LDeskBar.cpp')
-rw-r--r-- | lumina-desktop/panel-plugins/desktopbar/LDeskBar.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lumina-desktop/panel-plugins/desktopbar/LDeskBar.cpp b/lumina-desktop/panel-plugins/desktopbar/LDeskBar.cpp index d29d4354..163f7c0a 100644 --- a/lumina-desktop/panel-plugins/desktopbar/LDeskBar.cpp +++ b/lumina-desktop/panel-plugins/desktopbar/LDeskBar.cpp @@ -191,7 +191,11 @@ void LDeskBarPlugin::desktopChanged(){ videoM->addAction( newAction(path, name, LXDG::findMimeIcon(type)) ); }else if(type.startsWith("image/")){ //Add it to pictureM - pictureM->addAction( newAction(path, name, LXDG::findMimeIcon(type)) ); + if(LUtils::imageExtensions().contains(path.section("/",-1).section(".",-1).toLower()) ){ + pictureM->addAction( newAction(path, name, QIcon(path)) ); + }else{ + pictureM->addAction( newAction(path, name, LXDG::findMimeIcon(type)) ); + } }else if(type.startsWith("text/")){ //Add it to docM docM->addAction( newAction(path, name, LXDG::findMimeIcon(type)) ); |