From c7511227aa60d92ecc44d5fd41d2874f508910bb Mon Sep 17 00:00:00 2001 From: ZackaryWelch Date: Tue, 1 Aug 2017 11:39:41 -0400 Subject: Fixed language attribute in Australian XML files --- src-qt5/core-utils/lumina-config/i18n/lumina-config_en_AU.ts | 2 +- src-qt5/core-utils/lumina-search/i18n/lumina-search_en_AU.ts | 2 +- src-qt5/core/lumina-desktop/i18n/lumina-desktop_en_AU.ts | 2 +- src-qt5/core/lumina-info/i18n/lumina-info_en_AU.ts | 2 +- src-qt5/core/lumina-open/i18n/lumina-open_en_AU.ts | 2 +- src-qt5/desktop-utils/lumina-archiver/i18n/l-archiver_en_AU.ts | 2 +- src-qt5/desktop-utils/lumina-calculator/i18n/l-calc_en_AU.ts | 2 +- src-qt5/desktop-utils/lumina-fileinfo/i18n/l-fileinfo_en_AU.ts | 2 +- src-qt5/desktop-utils/lumina-fm/i18n/lumina-fm_en_AU.ts | 2 +- src-qt5/desktop-utils/lumina-mediaplayer/i18n/l-mediap_en_AU.ts | 2 +- src-qt5/desktop-utils/lumina-screenshot/i18n/l-screenshot_en_AU.ts | 2 +- src-qt5/desktop-utils/lumina-textedit/i18n/l-te_en_AU.ts | 2 +- src-qt5/experimental/lumina-terminal/i18n/l-terminal_en_AU.ts | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src-qt5/core-utils/lumina-config/i18n/lumina-config_en_AU.ts b/src-qt5/core-utils/lumina-config/i18n/lumina-config_en_AU.ts index 9ed0806b..93f33884 100644 --- a/src-qt5/core-utils/lumina-config/i18n/lumina-config_en_AU.ts +++ b/src-qt5/core-utils/lumina-config/i18n/lumina-config_en_AU.ts @@ -1,6 +1,6 @@ - + AppDialog diff --git a/src-qt5/core-utils/lumina-search/i18n/lumina-search_en_AU.ts b/src-qt5/core-utils/lumina-search/i18n/lumina-search_en_AU.ts index cbca2d56..7a365bae 100644 --- a/src-qt5/core-utils/lumina-search/i18n/lumina-search_en_AU.ts +++ b/src-qt5/core-utils/lumina-search/i18n/lumina-search_en_AU.ts @@ -1,6 +1,6 @@ - + ConfigUI diff --git a/src-qt5/core/lumina-desktop/i18n/lumina-desktop_en_AU.ts b/src-qt5/core/lumina-desktop/i18n/lumina-desktop_en_AU.ts index b89fb14b..2b611add 100644 --- a/src-qt5/core/lumina-desktop/i18n/lumina-desktop_en_AU.ts +++ b/src-qt5/core/lumina-desktop/i18n/lumina-desktop_en_AU.ts @@ -1,6 +1,6 @@ - + AppLaunchButtonPlugin diff --git a/src-qt5/core/lumina-info/i18n/lumina-info_en_AU.ts b/src-qt5/core/lumina-info/i18n/lumina-info_en_AU.ts index d747c640..4f3f0706 100644 --- a/src-qt5/core/lumina-info/i18n/lumina-info_en_AU.ts +++ b/src-qt5/core/lumina-info/i18n/lumina-info_en_AU.ts @@ -1,6 +1,6 @@ - + MainUI diff --git a/src-qt5/core/lumina-open/i18n/lumina-open_en_AU.ts b/src-qt5/core/lumina-open/i18n/lumina-open_en_AU.ts index 91d418fa..535b6209 100644 --- a/src-qt5/core/lumina-open/i18n/lumina-open_en_AU.ts +++ b/src-qt5/core/lumina-open/i18n/lumina-open_en_AU.ts @@ -1,6 +1,6 @@ - + LFileDialog diff --git a/src-qt5/desktop-utils/lumina-archiver/i18n/l-archiver_en_AU.ts b/src-qt5/desktop-utils/lumina-archiver/i18n/l-archiver_en_AU.ts index a07004ad..ab6a1f45 100644 --- a/src-qt5/desktop-utils/lumina-archiver/i18n/l-archiver_en_AU.ts +++ b/src-qt5/desktop-utils/lumina-archiver/i18n/l-archiver_en_AU.ts @@ -1,6 +1,6 @@ - + Backend diff --git a/src-qt5/desktop-utils/lumina-calculator/i18n/l-calc_en_AU.ts b/src-qt5/desktop-utils/lumina-calculator/i18n/l-calc_en_AU.ts index 350c57e7..6a64c72a 100644 --- a/src-qt5/desktop-utils/lumina-calculator/i18n/l-calc_en_AU.ts +++ b/src-qt5/desktop-utils/lumina-calculator/i18n/l-calc_en_AU.ts @@ -1,6 +1,6 @@ - + mainUI diff --git a/src-qt5/desktop-utils/lumina-fileinfo/i18n/l-fileinfo_en_AU.ts b/src-qt5/desktop-utils/lumina-fileinfo/i18n/l-fileinfo_en_AU.ts index ed802fce..7c7aea5f 100644 --- a/src-qt5/desktop-utils/lumina-fileinfo/i18n/l-fileinfo_en_AU.ts +++ b/src-qt5/desktop-utils/lumina-fileinfo/i18n/l-fileinfo_en_AU.ts @@ -1,6 +1,6 @@ - + MainUI diff --git a/src-qt5/desktop-utils/lumina-fm/i18n/lumina-fm_en_AU.ts b/src-qt5/desktop-utils/lumina-fm/i18n/lumina-fm_en_AU.ts index 843b88a7..8d8066be 100644 --- a/src-qt5/desktop-utils/lumina-fm/i18n/lumina-fm_en_AU.ts +++ b/src-qt5/desktop-utils/lumina-fm/i18n/lumina-fm_en_AU.ts @@ -1,6 +1,6 @@ - + BMMDialog diff --git a/src-qt5/desktop-utils/lumina-mediaplayer/i18n/l-mediap_en_AU.ts b/src-qt5/desktop-utils/lumina-mediaplayer/i18n/l-mediap_en_AU.ts index 785e0df2..ced32956 100644 --- a/src-qt5/desktop-utils/lumina-mediaplayer/i18n/l-mediap_en_AU.ts +++ b/src-qt5/desktop-utils/lumina-mediaplayer/i18n/l-mediap_en_AU.ts @@ -1,6 +1,6 @@ - + MainUI diff --git a/src-qt5/desktop-utils/lumina-screenshot/i18n/l-screenshot_en_AU.ts b/src-qt5/desktop-utils/lumina-screenshot/i18n/l-screenshot_en_AU.ts index 2db1b1eb..786cd451 100644 --- a/src-qt5/desktop-utils/lumina-screenshot/i18n/l-screenshot_en_AU.ts +++ b/src-qt5/desktop-utils/lumina-screenshot/i18n/l-screenshot_en_AU.ts @@ -1,6 +1,6 @@ - + ImageEditor diff --git a/src-qt5/desktop-utils/lumina-textedit/i18n/l-te_en_AU.ts b/src-qt5/desktop-utils/lumina-textedit/i18n/l-te_en_AU.ts index 9fd60155..2a5f1298 100644 --- a/src-qt5/desktop-utils/lumina-textedit/i18n/l-te_en_AU.ts +++ b/src-qt5/desktop-utils/lumina-textedit/i18n/l-te_en_AU.ts @@ -1,6 +1,6 @@ - + ColorDialog diff --git a/src-qt5/experimental/lumina-terminal/i18n/l-terminal_en_AU.ts b/src-qt5/experimental/lumina-terminal/i18n/l-terminal_en_AU.ts index 99b84253..e4c5bcc4 100644 --- a/src-qt5/experimental/lumina-terminal/i18n/l-terminal_en_AU.ts +++ b/src-qt5/experimental/lumina-terminal/i18n/l-terminal_en_AU.ts @@ -1,6 +1,6 @@ - + TerminalWidget -- cgit From 6205f2aea8c5a7e881193e2e5b38377f9de9a35d Mon Sep 17 00:00:00 2001 From: q5sys Date: Tue, 1 Aug 2017 14:11:47 -0400 Subject: fix default prefix path --- src-qt5/core/lumina-theme-engine/lthemeengine.pro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-qt5/core/lumina-theme-engine/lthemeengine.pro b/src-qt5/core/lumina-theme-engine/lthemeengine.pro index d8ba709e..805bab7b 100644 --- a/src-qt5/core/lumina-theme-engine/lthemeengine.pro +++ b/src-qt5/core/lumina-theme-engine/lthemeengine.pro @@ -11,7 +11,7 @@ desktop.path=$${L_SHAREDIR}/applications/ #Install paths unix { isEmpty(PREFIX) { - PREFIX = /usr + PREFIX = /usr/local } isEmpty(PLUGINDIR) { PLUGINDIR = $$[QT_INSTALL_PLUGINS] -- cgit From b5705ea266fb63c94d01360b7e2b00ec46f9c3d7 Mon Sep 17 00:00:00 2001 From: q5sys Date: Tue, 1 Aug 2017 14:34:41 -0400 Subject: minor housekeeping to pro files --- src-qt5/core/lumina-theme-engine/lthemeengine.pri | 10 +--------- src-qt5/core/lumina-theme-engine/lthemeengine.pro | 6 ++++-- .../src/lthemeengine-qtplugin/lthemeengine-qtplugin.pro | 4 ---- 3 files changed, 5 insertions(+), 15 deletions(-) diff --git a/src-qt5/core/lumina-theme-engine/lthemeengine.pri b/src-qt5/core/lumina-theme-engine/lthemeengine.pri index be67734b..aa8a58bb 100644 --- a/src-qt5/core/lumina-theme-engine/lthemeengine.pri +++ b/src-qt5/core/lumina-theme-engine/lthemeengine.pri @@ -8,18 +8,10 @@ QMAKE_DISTCLEAN += -r .build CONFIG += c++11 -!isEqual (QT_MAJOR_VERSION, 5) { - error("Use Qt 5.4.0 or higher.") -} - -!greaterThan(QT_MINOR_VERSION, 3) { - error("Use Qt 5.4.0 or higher.") -} - #Install paths unix { isEmpty(PREFIX) { - PREFIX = /usr + PREFIX = /usr/local/ } isEmpty(PLUGINDIR) { PLUGINDIR = $$[QT_INSTALL_PLUGINS] diff --git a/src-qt5/core/lumina-theme-engine/lthemeengine.pro b/src-qt5/core/lumina-theme-engine/lthemeengine.pro index 805bab7b..e3cb47b1 100644 --- a/src-qt5/core/lumina-theme-engine/lthemeengine.pro +++ b/src-qt5/core/lumina-theme-engine/lthemeengine.pro @@ -1,5 +1,7 @@ -QT += core gui -greaterThan(QT_MAJOR_VERSION, 4): QT += widgets x11extras network +QT += core gui widgets x11extras network +!isEqual (QT_MAJOR_VERSION, 5) { + error("Use Qt 5.4.0 or higher.") +} QMAKE_DISTCLEAN += -r .build diff --git a/src-qt5/core/lumina-theme-engine/src/lthemeengine-qtplugin/lthemeengine-qtplugin.pro b/src-qt5/core/lumina-theme-engine/src/lthemeengine-qtplugin/lthemeengine-qtplugin.pro index 064c7642..a186cd49 100644 --- a/src-qt5/core/lumina-theme-engine/src/lthemeengine-qtplugin/lthemeengine-qtplugin.pro +++ b/src-qt5/core/lumina-theme-engine/src/lthemeengine-qtplugin/lthemeengine-qtplugin.pro @@ -19,10 +19,6 @@ SOURCES += \ lthemeengineplatformtheme.cpp \ ../lthemeengine/lthemeengine.cpp -!equals (DISABLE_WIDGETS,1) { - QT += widgets -} - OTHER_FILES += lthemeengine.json INCLUDEPATH += ../ -- cgit From 2458ca5221c850389f2def844061a529042fe794 Mon Sep 17 00:00:00 2001 From: ZackaryWelch Date: Tue, 1 Aug 2017 15:00:12 -0400 Subject: Fixed Grav loop and disabled screensaver brightness --- .../src-screensaver/LScreenSaver.cpp | 6 +++--- .../src-screensaver/animations/BaseAnimGroup.cpp | 2 +- .../src-screensaver/animations/Grav.h | 18 ++++++++++++------ 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/src-qt5/core/lumina-desktop-unified/src-screensaver/LScreenSaver.cpp b/src-qt5/core/lumina-desktop-unified/src-screensaver/LScreenSaver.cpp index bfcfa54d..f9682c79 100644 --- a/src-qt5/core/lumina-desktop-unified/src-screensaver/LScreenSaver.cpp +++ b/src-qt5/core/lumina-desktop-unified/src-screensaver/LScreenSaver.cpp @@ -102,8 +102,8 @@ void LScreenSaver::ShowScreenSaver(){ //Now go through and create/show all the various widgets QList SCREENS = QApplication::screens(); QRect bounds; - cBright = LOS::ScreenBrightness(); - if(cBright>0){ LOS::setScreenBrightness(cBright/2); } //cut to half while the screensaver is active + //cBright = LOS::ScreenBrightness(); + //if(cBright>0){ LOS::setScreenBrightness(cBright/2); } //cut to half while the screensaver is active for(int i=0; igeometry()); if(DEBUG){ qDebug() << " - New SS Base:" << i; } @@ -144,7 +144,7 @@ void LScreenSaver::HideScreenSaver(){ //QApplication::restoreOverrideCursor(); if(DEBUG){ qDebug() << "Hiding Screen Saver:" << QDateTime::currentDateTime().toString(); } SSRunning = false; - if(cBright>0){ LOS::setScreenBrightness(cBright); } //return to current brightness + //if(cBright>0){ LOS::setScreenBrightness(cBright); } //return to current brightness if(!SSLocked){ this->hide(); emit ClosingScreenSaver(); diff --git a/src-qt5/core/lumina-desktop-unified/src-screensaver/animations/BaseAnimGroup.cpp b/src-qt5/core/lumina-desktop-unified/src-screensaver/animations/BaseAnimGroup.cpp index 017eaf9f..aaae8b41 100644 --- a/src-qt5/core/lumina-desktop-unified/src-screensaver/animations/BaseAnimGroup.cpp +++ b/src-qt5/core/lumina-desktop-unified/src-screensaver/animations/BaseAnimGroup.cpp @@ -31,5 +31,5 @@ BaseAnimGroup* BaseAnimGroup::NewAnimation(QString type, QWidget *parent, QSetti } QStringList BaseAnimGroup::KnownAnimations(){ - return (QStringList() << "fireflies" << "grav" << "text"); + return (QStringList() << "grav"); } diff --git a/src-qt5/core/lumina-desktop-unified/src-screensaver/animations/Grav.h b/src-qt5/core/lumina-desktop-unified/src-screensaver/animations/Grav.h index d62fe980..a4ea5ed8 100644 --- a/src-qt5/core/lumina-desktop-unified/src-screensaver/animations/Grav.h +++ b/src-qt5/core/lumina-desktop-unified/src-screensaver/animations/Grav.h @@ -14,6 +14,7 @@ #include "BaseAnimGroup.h" #include #include +#include class Grav: public QParallelAnimationGroup{ Q_OBJECT @@ -56,7 +57,7 @@ private: QPoint newLoc = QPoint(newX, newY); //orbit->setKeyValueAt(i/step, newLoc); path.push_back(newLoc); - } + } //Sets the time for a full orbit. Increasing makes the orbit slower. path.push_back(lastP); @@ -94,13 +95,17 @@ public: //Creates the random position of the planet, making sure it isn't too close to the sun QRect invalid = QRect(center+QPoint(-50,-50), center+QPoint(50,50)); - QPoint tmp = center; - while(invalid.contains(center)){ - int randwidth = qrand()%(range.width() - 2*planet_radius) + planet_radius; - int randheight= qrand()%(range.height()- 2*planet_radius) + planet_radius; + QPoint tmp = center; + while(invalid.contains(tmp)){ + int randwidth = qrand()%(int)(range.width() - 2*planet_radius) + planet_radius; + int randheight= qrand()%(int)(range.height()- 2*planet_radius) + planet_radius; tmp = QPoint(randwidth, randheight); } + /*double tmpDistance = qSqrt((qPow((tmp.x()-center.x()), 2) + qPow((tmp.y()-center.y()), 2))); + double theta = qAsin(qAbs(tmp.y()-center.y())/tmpDistance); + QMatrix rotation = QMatrix(qCos(theta), qSin(theta), -qSin(theta), qCos(theta), -center.x(), -center.y());*/ + //Creates all frames for the animation setupLoop(tmp, ¢er); this->addAnimation(orbit); @@ -174,10 +179,11 @@ public: int number = settings->value("planets/number",10).toInt(); //Loops through all planets and sets up the animations, then adds them to the base group and vector, which + qDebug() << "Starting planets"; for(int i=0; iaddAnimation(tmp); - connect(tmp, SIGNAL(finished()), this, SLOT(checkFinished())); + connect(tmp, SIGNAL(finished()), this, SLOT(checkFinished())); planets << tmp; } } -- cgit From dfbc5f67f3069fb7d64b49f9b860f62835abb66a Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Tue, 1 Aug 2017 15:35:40 -0400 Subject: Fix up the screensaver animation crashes *again*. --- .../src-screensaver/LScreenSaver.cpp | 5 +-- .../src-screensaver/SSBaseWidget.cpp | 3 +- .../src-screensaver/animations/Grav.h | 38 +++++++++++----------- 3 files changed, 24 insertions(+), 22 deletions(-) diff --git a/src-qt5/core/lumina-desktop-unified/src-screensaver/LScreenSaver.cpp b/src-qt5/core/lumina-desktop-unified/src-screensaver/LScreenSaver.cpp index f9682c79..0ac8aaeb 100644 --- a/src-qt5/core/lumina-desktop-unified/src-screensaver/LScreenSaver.cpp +++ b/src-qt5/core/lumina-desktop-unified/src-screensaver/LScreenSaver.cpp @@ -8,7 +8,7 @@ #include #include -#define DEBUG 0 +#define DEBUG 1 LScreenSaver::LScreenSaver() : QWidget(0,Qt::BypassWindowManagerHint | Qt::WindowStaysOnTopHint){ starttimer = new QTimer(this); @@ -151,8 +151,9 @@ void LScreenSaver::HideScreenSaver(){ emit LockStatusChanged(false); } for(int i=0; ihide(); + qDebug() << "Stop ScreenSaver:" << i; BASES[i]->stopPainting(); + BASES[i]->hide(); } UpdateTimers(); } diff --git a/src-qt5/core/lumina-desktop-unified/src-screensaver/SSBaseWidget.cpp b/src-qt5/core/lumina-desktop-unified/src-screensaver/SSBaseWidget.cpp index ed224695..9ef0c491 100644 --- a/src-qt5/core/lumina-desktop-unified/src-screensaver/SSBaseWidget.cpp +++ b/src-qt5/core/lumina-desktop-unified/src-screensaver/SSBaseWidget.cpp @@ -76,8 +76,9 @@ void SSBaseWidget::startPainting(){ void SSBaseWidget::stopPainting(){ if(ANIM!=0){ + qDebug() << "Stopping Animation!!"; ANIM->stop(); - ANIM->clear(); + //ANIM->clear(); ANIM->deleteLater(); ANIM = 0; } diff --git a/src-qt5/core/lumina-desktop-unified/src-screensaver/animations/Grav.h b/src-qt5/core/lumina-desktop-unified/src-screensaver/animations/Grav.h index a4ea5ed8..ec1de914 100644 --- a/src-qt5/core/lumina-desktop-unified/src-screensaver/animations/Grav.h +++ b/src-qt5/core/lumina-desktop-unified/src-screensaver/animations/Grav.h @@ -22,11 +22,11 @@ private: QWidget *planet; QPropertyAnimation *orbit; QSize range; - QList path; + //QList path; double radius; void setupLoop(QPoint start, QPoint *ref){ - orbit->setStartValue(start); + //orbit->setStartValue(start); //Used to find overall speed. Distance from the planet to the sun radius = qSqrt( (qPow(start.x()-ref->x(),2) + qPow(start.y()-ref->y(),2) )); @@ -40,9 +40,9 @@ private: QPoint firstP = QPoint(ref->x() + xrand*start.x()*(qCos(0/step) -qSin(0/step)), ref->y() + yrand*start.y()*(qCos(0/step) -qSin(0/step))); QPoint lastP = QPoint(ref->x() + xrand*start.x()*(qCos(PI/step) -qSin(PI/step)), ref->y() + yrand*start.y()*(qCos(PI/step) -qSin(PI/step))); - //orbit->setKeyValueAt(0, firstP); - //orbit->setKeyValueAt(1, lastP); - path.push_back(firstP); + orbit->setKeyValueAt(0, firstP); + orbit->setKeyValueAt(1, lastP); + //path.push_back(firstP); //Loops through all steps and creates all the points of the orbit for(int i=1; isetKeyValueAt(i/step, newLoc); - path.push_back(newLoc); + orbit->setKeyValueAt(i/step, newLoc); + //path.push_back(newLoc); } - //Sets the time for a full orbit. Increasing makes the orbit slower. - path.push_back(lastP); + //path.push_back(lastP); } private slots: void LoopChanged(int loop){ //Adjust the orbit animation a bit - if(loop >= 0) { + /*if(loop >= 0) { orbit->setStartValue(orbit->endValue()); //start at the previous end point orbit->setEndValue(path.at(loop%1000)); orbit->setDuration(10); - } + }*/ } void stopped(){ qDebug() << "Planet stopped"; planet->hide();} @@ -80,7 +79,7 @@ public: QPoint center = parent->geometry().center(); //Creates a random planet size. Between 12 and 45 pixels - double planet_radius = 1.75* ((qrand()%20)+7); + int planet_radius = qRound(1.75* ((qrand()%20)+7) ); //Creates a random color in RGB, then creates a circular gradient QString color = "rgba(" + QString::number(qrand() % 256) + ", " + QString::number(qrand() % 256) + ", " + QString::number(qrand() % 256); @@ -97,28 +96,29 @@ public: QRect invalid = QRect(center+QPoint(-50,-50), center+QPoint(50,50)); QPoint tmp = center; while(invalid.contains(tmp)){ - int randwidth = qrand()%(int)(range.width() - 2*planet_radius) + planet_radius; - int randheight= qrand()%(int)(range.height()- 2*planet_radius) + planet_radius; + int randwidth = qrand()%(range.width() - 2*planet_radius) + planet_radius; + int randheight= qrand()%(range.height()- 2*planet_radius) + planet_radius; tmp = QPoint(randwidth, randheight); } /*double tmpDistance = qSqrt((qPow((tmp.x()-center.x()), 2) + qPow((tmp.y()-center.y()), 2))); double theta = qAsin(qAbs(tmp.y()-center.y())/tmpDistance); QMatrix rotation = QMatrix(qCos(theta), qSin(theta), -qSin(theta), qCos(theta), -center.x(), -center.y());*/ - + //Creates all frames for the animation setupLoop(tmp, ¢er); this->addAnimation(orbit); planet->show(); //Ensures the screensaver will not stop until the user wishes to login or it times out - this->setLoopCount(2000); //number of orbits - orbit->setEndValue(path.at(0)); - LoopChanged(0); //load initial values + this->setLoopCount(5); //number of orbits + orbit->setDuration( qrand() %1000 + 19000); //20 second orbits + //orbit->setEndValue(path.at(0)); + //LoopChanged(0); //load initial values //Sets the initial size and location of the planet planet->setGeometry(QRect(orbit->startValue().toPoint(), QSize(planet_radius, planet_radius))); - connect(this, SIGNAL(currentLoopChanged(int)), this, SLOT(LoopChanged(int)) ); + //connect(this, SIGNAL(currentLoopChanged(int)), this, SLOT(LoopChanged(int)) ); connect(this, SIGNAL(finished()), this, SLOT(stopped()) ); } ~Grav(){} -- cgit From 30171e9d5281c83c2fb84cc8acb0dfef38262e8d Mon Sep 17 00:00:00 2001 From: q5sys Date: Tue, 1 Aug 2017 16:39:37 -0400 Subject: fix pointer --- src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp b/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp index 06f16ad1..d5f219bb 100644 --- a/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp +++ b/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp @@ -275,7 +275,7 @@ void BrowserWidget::itemDataAvailable(QIcon ico, LFileInfo *info){ int num = 0; if(listWidget!=0){ //LIST WIDGET - name and icon only - if(info->isDesktopFile() && info.XDG()->isValid()){ + if(info->isDesktopFile() && info->XDG()->isValid()){ QList items = listWidget->findItems(info->XDG()->name, Qt::MatchExactly); //Could be multiple items with the same text in this case - check paths as well bool found = false; -- cgit From f03f72324ff70af5285c50632df4148a6881fa46 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Wed, 2 Aug 2017 11:30:36 -0400 Subject: Adjust the screensaver restart routine a bit. --- src-qt5/core/lumina-desktop-unified/src-screensaver/LScreenSaver.cpp | 1 + src-qt5/core/lumina-desktop-unified/src-screensaver/SSBaseWidget.cpp | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src-qt5/core/lumina-desktop-unified/src-screensaver/LScreenSaver.cpp b/src-qt5/core/lumina-desktop-unified/src-screensaver/LScreenSaver.cpp index 0ac8aaeb..2c36af80 100644 --- a/src-qt5/core/lumina-desktop-unified/src-screensaver/LScreenSaver.cpp +++ b/src-qt5/core/lumina-desktop-unified/src-screensaver/LScreenSaver.cpp @@ -109,6 +109,7 @@ void LScreenSaver::ShowScreenSaver(){ if(DEBUG){ qDebug() << " - New SS Base:" << i; } BASES << new SSBaseWidget(this, settings); connect(BASES[i], SIGNAL(InputDetected()), this, SLOT(newInputEvent()) ); + //Setup the geometry of the base to match the screen BASES[i]->setGeometry(SCREENS[i]->geometry()); //match this screen geometry BASES[i]->setPlugin(settings->value("screenplugin"+QString::number(i+1), settings->value("defaultscreenplugin","random").toString() ).toString() ); diff --git a/src-qt5/core/lumina-desktop-unified/src-screensaver/SSBaseWidget.cpp b/src-qt5/core/lumina-desktop-unified/src-screensaver/SSBaseWidget.cpp index 9ef0c491..7854b597 100644 --- a/src-qt5/core/lumina-desktop-unified/src-screensaver/SSBaseWidget.cpp +++ b/src-qt5/core/lumina-desktop-unified/src-screensaver/SSBaseWidget.cpp @@ -39,8 +39,7 @@ void SSBaseWidget::startPainting(){ cplug = plugType; //free up any old animation instance if(ANIM!=0){ - ANIM->stop(); ANIM->clear(); - delete ANIM; ANIM = 0; + stopPainting(); } //If a random plugin - grab one of the known plugins if(cplug=="random"){ -- cgit