diff options
author | Ken Moore <moorekou@gmail.com> | 2015-10-21 08:57:14 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-10-21 08:57:14 -0400 |
commit | 2fe38ac9de3491382d10cac6a863c7497faeb97a (patch) | |
tree | 4ae243f2293c5b6e5a3c8c23803fbb7bb2145073 /lumina-config | |
parent | Fix up the reverse location lookup procedures for desktop plugins - now when ... (diff) | |
download | lumina-2fe38ac9de3491382d10cac6a863c7497faeb97a.tar.gz lumina-2fe38ac9de3491382d10cac6a863c7497faeb97a.tar.bz2 lumina-2fe38ac9de3491382d10cac6a863c7497faeb97a.zip |
When loading a wallpaper file - allow any of the currently-supported image formats that are recognized by Qt.
Diffstat (limited to 'lumina-config')
-rw-r--r-- | lumina-config/mainUI.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lumina-config/mainUI.cpp b/lumina-config/mainUI.cpp index d7858200..87a0447c 100644 --- a/lumina-config/mainUI.cpp +++ b/lumina-config/mainUI.cpp @@ -700,7 +700,9 @@ void MainUI::deskbgadded(){ QString dir = LOS::LuminaShare().section("/Lumina-DE",0,0)+"/wallpapers/Lumina-DE"; qDebug() << "Looking for wallpaper dir:" << dir; if( !QFile::exists(dir) ){ dir = QDir::homePath(); } - QStringList bgs = QFileDialog::getOpenFileNames(this, tr("Find Background Image(s)"), dir, "Images (*.png *.xpm *.jpg)"); + QStringList imgs = LUtils::imageExtensions(); + for(int i=0; i<imgs.length(); i++){ imgs[i].prepend("*."); } + QStringList bgs = QFileDialog::getOpenFileNames(this, tr("Find Background Image(s)"), dir, "Images ("+imgs.join(" ")+")"); if(bgs.isEmpty()){ return; } for(int i=0; i<bgs.length(); i++){ ui->combo_desk_bg->addItem( QIcon(bgs[i]), bgs[i].section("/",-1), bgs[i]); |