aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-09-14 12:22:31 -0400
committerKen Moore <ken@ixsystems.com>2017-09-14 12:22:31 -0400
commit49d7b64794cb5c645f0093d18a207ea1c9fe2121 (patch)
treef38bec1e5f607d33277f1c240ae9a3916aac0a2b /src-qt5/core/lumina-desktop
parentCleanup the QSS page quite a bit so that items can now be sorted, ordered by ... (diff)
downloadlumina-49d7b64794cb5c645f0093d18a207ea1c9fe2121.tar.gz
lumina-49d7b64794cb5c645f0093d18a207ea1c9fe2121.tar.bz2
lumina-49d7b64794cb5c645f0093d18a207ea1c9fe2121.zip
Turn off the custom theme engine for the 1.x desktop itself, and use the lthemeengine styles for everything now.
Also commit a few simple fixes for the lthemeengine styles page and a couple other random tweaks.
Diffstat (limited to 'src-qt5/core/lumina-desktop')
-rw-r--r--src-qt5/core/lumina-desktop/LDesktop.cpp10
-rw-r--r--src-qt5/core/lumina-desktop/main.cpp8
2 files changed, 9 insertions, 9 deletions
diff --git a/src-qt5/core/lumina-desktop/LDesktop.cpp b/src-qt5/core/lumina-desktop/LDesktop.cpp
index 37bc7ffa..f9ea1534 100644
--- a/src-qt5/core/lumina-desktop/LDesktop.cpp
+++ b/src-qt5/core/lumina-desktop/LDesktop.cpp
@@ -88,7 +88,7 @@ QRect LDesktop::availableScreenGeom(){
return globalWorkRect; //saved from previous calculations
}else{
return LSession::handle()->screenGeom( Screen() );
- }
+ }
}
void LDesktop::UpdateGeometry(){
@@ -150,7 +150,7 @@ void LDesktop::checkResolution(){
}else if(scrn.width()==oldWidth && scrn.height()==oldHeight){
//nothing to do - same as before
}else{
- //Calculate the scale factor between the old/new sizes in each dimension
+ //Calculate the scale factor between the old/new sizes in each dimension
// and forward that on to all the interface elements
double xscale = scrn.width()/((double) oldWidth);
double yscale = scrn.height()/((double) oldHeight);
@@ -194,7 +194,7 @@ void LDesktop::checkResolution(){
}
}
DP->sync(); //make sure it gets saved to disk right away
-
+
}
issyncing = false;
}
@@ -238,7 +238,7 @@ void LDesktop::InitDesktop(){
bgWindow->setWindowOpacity(0.0);
connect(bgWindow, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(ShowMenu()) );*/
if(DEBUG){ qDebug() << "Create bgDesktop"; }
- bgDesktop = new LDesktopPluginSpace();
+ bgDesktop = new LDesktopPluginSpace();
int grid = settings->value(DPREFIX+"GridSize",-1).toInt();
if(grid<0 && LSession::desktop()->screenGeometry(Screen()).height() > 2000){ grid = 200; }
else if(grid<0){ grid = 100; }
@@ -266,7 +266,7 @@ void LDesktop::InitDesktop(){
}
void LDesktop::SettingsChanged(){
- if(issyncing){ return; } //don't refresh for internal modifications to the
+ if(issyncing){ return; } //don't refresh for internal modifications to the
issyncing = true;
qDebug() << "Found Settings Change:" << screenID;
settings->sync(); //make sure to sync with external settings changes
diff --git a/src-qt5/core/lumina-desktop/main.cpp b/src-qt5/core/lumina-desktop/main.cpp
index 6017cad7..b2bfa9be 100644
--- a/src-qt5/core/lumina-desktop/main.cpp
+++ b/src-qt5/core/lumina-desktop/main.cpp
@@ -93,14 +93,14 @@ int main(int argc, char ** argv)
if(DEBUG){ timer = new QTime(); timer->start(); }
//Setup Log File
//qInstallMessageHandler(MessageOutput);
- if(DEBUG){ qDebug() << "Theme Init:" << timer->elapsed(); }
- LuminaThemeEngine theme(&a);
- QObject::connect(&theme, SIGNAL(updateIcons()), &a, SLOT(reloadIconTheme()) );
+ //if(DEBUG){ qDebug() << "Theme Init:" << timer->elapsed(); }
+ //LuminaThemeEngine theme(&a);
+ //QObject::connect(&theme, SIGNAL(updateIcons()), &a, SLOT(reloadIconTheme()) );
//if(DEBUG){ qDebug() << "Load Locale:" << timer->elapsed(); }
//LUtils::LoadTranslation(&a, "lumina-desktop");
if(DEBUG){ qDebug() << "Session Setup:" << timer->elapsed(); }
a.setupSession();
- theme.refresh();
+ //theme.refresh();
if(DEBUG){ qDebug() << "Exec Time:" << timer->elapsed(); delete timer;}
int retCode = a.exec();
//qDebug() << "Stopping the window manager";
bgstack15