aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/LUtils.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2018-03-07 15:10:49 -0500
committerKen Moore <ken@ixsystems.com>2018-03-07 15:10:49 -0500
commit78fa2f5368ce789f8f1fe63d3de5f43bbb4a9308 (patch)
tree7e93b470d3a489b7e22abd994c07cb7e8cdf4c18 /src-qt5/core/libLumina/LUtils.cpp
parentFix a missing library dependency for libXCursor (diff)
downloadlumina-78fa2f5368ce789f8f1fe63d3de5f43bbb4a9308.tar.gz
lumina-78fa2f5368ce789f8f1fe63d3de5f43bbb4a9308.tar.bz2
lumina-78fa2f5368ce789f8f1fe63d3de5f43bbb4a9308.zip
Split the Lumina 2 backend:
Based on a qmake flag, have it use QtWidgets or QML for the front-end renderer. This will allow us to import/use all the Lumina 1.x interface elements (in Widget form) for now, but switch over to QML interface later without losing all the improvements to the underling events/communication systems.
Diffstat (limited to 'src-qt5/core/libLumina/LUtils.cpp')
-rw-r--r--src-qt5/core/libLumina/LUtils.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src-qt5/core/libLumina/LUtils.cpp b/src-qt5/core/libLumina/LUtils.cpp
index 3d3c878a..6ca8b679 100644
--- a/src-qt5/core/libLumina/LUtils.cpp
+++ b/src-qt5/core/libLumina/LUtils.cpp
@@ -273,13 +273,15 @@ QStringList LUtils::videoExtensions() {
QStringList LUtils::imageExtensions(bool wildcards){
//Note that all the image extensions are lowercase!!
static QStringList imgExtensions;
+ static QStringList imgExtensionsWC;
if(imgExtensions.isEmpty()){
QList<QByteArray> fmt = QImageReader::supportedImageFormats();
for(int i=0; i<fmt.length(); i++){
- if(wildcards){ imgExtensions << "*."+QString::fromLocal8Bit(fmt[i]); }
- else{ imgExtensions << QString::fromLocal8Bit(fmt[i]); }
+ imgExtensionsWC << "*."+QString::fromLocal8Bit(fmt[i]);
+ imgExtensions << QString::fromLocal8Bit(fmt[i]);
}
}
+ if(wildcards){ return imgExtensionsWC; }
return imgExtensions;
}
bgstack15