aboutsummaryrefslogtreecommitdiff
path: root/libLumina
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-07-09 15:05:54 -0400
committerKen Moore <moorekou@gmail.com>2015-07-09 15:05:54 -0400
commit4bb827d6589e4bede3168aa835946a8fcba8b715 (patch)
tree91430f23a94f9db1286e36f2049f37c2c1b7c752 /libLumina
parentUpdate the pkg-plist to account for the new QtQuick sample plugin. (diff)
downloadlumina-4bb827d6589e4bede3168aa835946a8fcba8b715.tar.gz
lumina-4bb827d6589e4bede3168aa835946a8fcba8b715.tar.bz2
lumina-4bb827d6589e4bede3168aa835946a8fcba8b715.zip
Oops, forgot to make the new functions static
Diffstat (limited to 'libLumina')
-rw-r--r--libLumina/LuminaUtils.cpp2
-rw-r--r--libLumina/LuminaUtils.h5
2 files changed, 4 insertions, 3 deletions
diff --git a/libLumina/LuminaUtils.cpp b/libLumina/LuminaUtils.cpp
index cf7353dc..42f36962 100644
--- a/libLumina/LuminaUtils.cpp
+++ b/libLumina/LuminaUtils.cpp
@@ -189,7 +189,7 @@ bool LUtils::validQuickPlugin(QString ID){
}
QString LUtils::findQuickPluginFile(QString ID){
- if(ID.startsWith("quick-")){ ID = ID.section("-",1,50); }
+ if(ID.startsWith("quick-")){ ID = ID.section("-",1,50); } //just in case
//Give preference to any user-supplied plugins (overwrites for system plugins)
QString path = QDir::homePath()+"/.lumina/quickplugins/quick-"+ID+".qml";
if( QFile::exists(path) ){return path; }
diff --git a/libLumina/LuminaUtils.h b/libLumina/LuminaUtils.h
index ac0b93dc..188563dc 100644
--- a/libLumina/LuminaUtils.h
+++ b/libLumina/LuminaUtils.h
@@ -56,8 +56,9 @@ public:
//Various function for finding valid QtQuick plugins on the system
static bool validQuickPlugin(QString ID);
static QString findQuickPluginFile(QString ID);
- QStringList listQuickPlugins(); //List of valid ID's
- QStringList infoQuickPlugin(QString ID); //Returns: [Name, Description, Icon]
+ static QStringList listQuickPlugins(); //List of valid ID's
+ static QStringList infoQuickPlugin(QString ID); //Returns: [Name, Description, Icon]
+
//Various functions for the favorites sub-system
// Formatting Note: "<name>::::[dir/app/<mimetype>]::::<path>"
// the <name> field might not be used for "app" flagged entries
bgstack15