diff options
author | Christopher Roy Bratusek <nano@jpberlin.de> | 2014-11-03 21:14:37 +0100 |
---|---|---|
committer | Christopher Roy Bratusek <nano@jpberlin.de> | 2014-11-03 21:14:37 +0100 |
commit | 0d1cd6623f7804828d4b2dbb568449a49f728cc2 (patch) | |
tree | dd85de54d59ffe29d0f62942c0c9e3cf3d4a9616 /lumina-desktop/desktop-plugins/LDPlugin.h | |
parent | debian/changelog (diff) | |
parent | Add a new desktop plugin: desktopview (diff) | |
download | lumina-0d1cd6623f7804828d4b2dbb568449a49f728cc2.tar.gz lumina-0d1cd6623f7804828d4b2dbb568449a49f728cc2.tar.bz2 lumina-0d1cd6623f7804828d4b2dbb568449a49f728cc2.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'lumina-desktop/desktop-plugins/LDPlugin.h')
-rw-r--r-- | lumina-desktop/desktop-plugins/LDPlugin.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lumina-desktop/desktop-plugins/LDPlugin.h b/lumina-desktop/desktop-plugins/LDPlugin.h index e8a1f5f3..d71bde0a 100644 --- a/lumina-desktop/desktop-plugins/LDPlugin.h +++ b/lumina-desktop/desktop-plugins/LDPlugin.h @@ -45,6 +45,17 @@ public: return PLUGID; } + void 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().isEmpty()){ + //Brand new plugin: set initial size + settings->setValue("location/width",width); + settings->setValue("location/height",height); + settings->sync(); + } + } + public slots: virtual void LocaleChange(){ //This needs to be re-implemented in the subclassed plugin |