aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/desktop-plugins/LDPlugin.cpp
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-10-20 14:15:05 -0400
committerKen Moore <moorekou@gmail.com>2015-10-20 14:15:05 -0400
commit20aa87623b3795d8bc21174598da33ce637e993f (patch)
tree7923e74b6de7eb1ea9036ae4a657cc07048e4d02 /lumina-desktop/desktop-plugins/LDPlugin.cpp
parentOk, *Now* the desktop plugin resizing routine works properly. Also try to fix... (diff)
downloadlumina-20aa87623b3795d8bc21174598da33ce637e993f.tar.gz
lumina-20aa87623b3795d8bc21174598da33ce637e993f.tar.bz2
lumina-20aa87623b3795d8bc21174598da33ce637e993f.zip
Ok, Now the desktop plugin canvas has truly been converted to a grid-space coordinate system. Also setup the desktop plugins to assign a default size for themselves in grid-space rather than pixels (better accounts for screen scaling and such on high-resolution monitors).
Diffstat (limited to 'lumina-desktop/desktop-plugins/LDPlugin.cpp')
-rw-r--r--lumina-desktop/desktop-plugins/LDPlugin.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/lumina-desktop/desktop-plugins/LDPlugin.cpp b/lumina-desktop/desktop-plugins/LDPlugin.cpp
index 0fec17c6..b238a207 100644
--- a/lumina-desktop/desktop-plugins/LDPlugin.cpp
+++ b/lumina-desktop/desktop-plugins/LDPlugin.cpp
@@ -42,7 +42,7 @@ void LDPlugin::setupMenu(){
menu->addAction( LXDG::findIcon("edit-delete",""), tr("Remove Item"), this, SLOT(slotRemovePlugin()) );
}
-void LDPlugin::setInitialSize(int width, int height){
+/*void LDPlugin::setInitialSize(int width, int height){
//Note: Only run this in the plugin initization routine:
// if the plugin is completely new (first time used), it will be this size
if(settings->allKeys().filter(prefix+"location").isEmpty()){
@@ -54,12 +54,4 @@ void LDPlugin::setInitialSize(int width, int height){
}
//Now make sure the plugin is the saved size right away
this->resize( settings->value(prefix+"location/width").toInt(), settings->value(prefix+"location/height").toInt());
-}
-
-/*void LDPlugin::adjustSize(int width, int height){
- settings->setValue(prefix+"location/width",width);
- settings->setValue(prefix+"location/height",height);
- settings->sync();
- this->resize(width,height);
- emit PluginResized();
}*/ \ No newline at end of file
bgstack15