[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [frameworks-frameworkintegration] [Bug 344469] Icon themes from inside Qt5 application resources are
From:       Christoph Feck <cfeck () kde ! org>
Date:       2015-02-28 21:46:56
Message-ID: bug-344469-17878-RFiVxiBbxr () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=344469

Christoph Feck <cfeck@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cfeck@kde.org

--- Comment #4 from Christoph Feck <cfeck@kde.org> ---
Petr, could you test this patch for "kiconthemes" framework? If it works, I
will discuss with frameworks developers if it can be integrated.

diff --git a/src/kiconloader.cpp b/src/kiconloader.cpp
index c47eecb..6015fc1 100644
--- a/src/kiconloader.cpp
+++ b/src/kiconloader.cpp
@@ -556,6 +556,8 @@ bool KIconLoaderPrivate::initIconThemes()
     searchPaths.append("icons"); // was xdgdata-icon in KStandardDirs
     // These are not in the icon spec, but e.g. GNOME puts some icons there
anyway.
     searchPaths.append("pixmaps"); // was xdgdata-pixmaps in KStandardDirs
+    // Fallback to Qt resources
+    searchPaths.append(":/icons");

 #ifndef NDEBUG
     QString dbgString = "Theme tree: ";

-- 
You are receiving this mail because:
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic