diff options
author | Ken Moore <moorekou@gmail.com> | 2015-10-22 10:32:59 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-10-22 10:32:59 -0400 |
commit | fcf66df0e54609831b6a3b75264feafbe6414753 (patch) | |
tree | f25db01eb14154d0d1ce26fb3b9bc9975c1663d9 /lumina-desktop/LDesktopPluginSpace.cpp | |
parent | Add some large-scale images of the wispy in the various colors. Thanks to Jen... (diff) | |
download | lumina-fcf66df0e54609831b6a3b75264feafbe6414753.tar.gz lumina-fcf66df0e54609831b6a3b75264feafbe6414753.tar.bz2 lumina-fcf66df0e54609831b6a3b75264feafbe6414753.zip |
Ensure that a plugins location is always saved into the backend - prevents sometimes a plugin moving around the next time you log in.
Diffstat (limited to 'lumina-desktop/LDesktopPluginSpace.cpp')
-rw-r--r-- | lumina-desktop/LDesktopPluginSpace.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lumina-desktop/LDesktopPluginSpace.cpp b/lumina-desktop/LDesktopPluginSpace.cpp index cb0cc75f..28ff94a6 100644 --- a/lumina-desktop/LDesktopPluginSpace.cpp +++ b/lumina-desktop/LDesktopPluginSpace.cpp @@ -83,9 +83,10 @@ void LDesktopPluginSpace::UpdateGeom(int oldgrid){ }else{ //NOTE: We are not doing the ValidGeometry() checks because we are only resizing existing plugin with pre-set & valid grid positions grid = gridToGeom(grid); //convert to pixels before saving/sizing - ITEMS[i]->setGeometry( grid ); + MovePlugin(ITEMS[i], grid); + /*ITEMS[i]->setGeometry( grid ); ITEMS[i]->setFixedSize(grid.size()); - ITEMS[i]->savePluginGeometry(grid); + ITEMS[i]->savePluginGeometry(grid);*/ } } //if(reload){ QTimer::singleShot(0,this, SLOT(reloadPlugins())); } @@ -121,7 +122,8 @@ void LDesktopPluginSpace::addDesktopPlugin(QString plugID){ }else{ if(DEBUG){ qDebug() << " - New Plugin Geometry (grid):" << geom; } //Now place the item in the proper spot/size - plug->setGeometry( gridToGeom(geom) ); + MovePlugin(plug, gridToGeom(geom)); + //plug->setGeometry( gridToGeom(geom) ); plug->show(); if(DEBUG){ qDebug() << " - New Plugin Geometry (px):" << plug->geometry(); } ITEMS << plug; |