diff options
author | Ken Moore <moorekou@gmail.com> | 2015-07-09 15:13:43 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-07-09 15:13:43 -0400 |
commit | fd7577239a4ddfab2aa995b7845151ccc3b24ef8 (patch) | |
tree | 9107d7d093fc1fadb87c2d50f225a61be29c4440 | |
parent | Oops, forgot to make the new functions static (diff) | |
download | lumina-fd7577239a4ddfab2aa995b7845151ccc3b24ef8.tar.gz lumina-fd7577239a4ddfab2aa995b7845151ccc3b24ef8.tar.bz2 lumina-fd7577239a4ddfab2aa995b7845151ccc3b24ef8.zip |
Add knownledge of QtQuick plugins to lumina-config
-rw-r--r-- | lumina-config/LPlugins.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lumina-config/LPlugins.cpp b/lumina-config/LPlugins.cpp index 31b189bb..16725259 100644 --- a/lumina-config/LPlugins.cpp +++ b/lumina-config/LPlugins.cpp @@ -6,6 +6,8 @@ //=========================================== #include "LPlugins.h" +#include <LuminaUtils.h> + LPlugins::LPlugins(){ LoadPanelPlugins(); LoadDesktopPlugins(); @@ -195,6 +197,18 @@ void LPlugins::LoadDesktopPlugins(){ info.ID = "systemmonitor"; info.icon = "cpu"; DESKTOP.insert(info.ID, info); + //Available QtQuick scripts + QStringList quickID = LUtils::listQuickPlugins(); + for(int i=0; i<quickID.length(); i++){ + QStringList quickinfo = LUtils::infoQuickPlugin(quickID[i]); //Returns: [name, description, icon] + if(quickinfo.length() < 3){ continue; } //invalid file (unreadable/other) + info = LPI(); + info.name = quickinfo[0]; + info.description = quickinfo[1]; + info.ID = "quick-"+quickID[i]; //the "quick-" prefix is required for the desktop plugin syntax + info.icon = quickinfo[2]; + DESKTOP.insert(info.ID, info); + } } void LPlugins::LoadMenuPlugins(){ |