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.h | |
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.h')
-rw-r--r-- | lumina-desktop/LDesktopPluginSpace.h | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/lumina-desktop/LDesktopPluginSpace.h b/lumina-desktop/LDesktopPluginSpace.h index 6328b4de..b3c87ce4 100644 --- a/lumina-desktop/LDesktopPluginSpace.h +++ b/lumina-desktop/LDesktopPluginSpace.h @@ -141,6 +141,12 @@ private: return 0; } + void MovePlugin(LDPlugin* plug, QRect geom){ + plug->setGeometry( geom ); + plug->setFixedSize(geom.size()); //needed for some plugins + plug->savePluginGeometry(geom); + } + private slots: void reloadPlugins(bool ForceIconUpdate = false); @@ -196,10 +202,11 @@ protected: valid = ValidGeometry(act.section("::::",1,50), geom); } if(valid){ - item->setGeometry(geom); - item->setFixedSize(geom.size()); //needed due to resizing limitations and such for some plugins + MovePlugin(item, geom); + //item->setGeometry(geom); + //item->setFixedSize(geom.size()); //needed due to resizing limitations and such for some plugins ev->acceptProposedAction(); - item->savePluginGeometry(geom); //save in pixel coords + //item->savePluginGeometry(geom); //save in pixel coords }else{ ev->ignore(); } //invalid location }else{ @@ -221,10 +228,11 @@ protected: valid = ValidGeometry(act.section("::::",1,50), geom); } if(valid){ - item->setGeometry(geom); - item->setFixedSize(geom.size()); //needed due to resizing limitations and such for some plugins + MovePlugin(item, geom); + //item->setGeometry(geom); + //item->setFixedSize(geom.size()); //needed due to resizing limitations and such for some plugins ev->acceptProposedAction(); - item->savePluginGeometry(geom); //save in pixel coords + //item->savePluginGeometry(geom); //save in pixel coords }else{ ev->ignore(); } //invalid location } } |