aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/desktop-plugins/applauncher
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2014-11-03 11:41:29 -0500
committerKen Moore <ken@pcbsd.org>2014-11-03 11:41:29 -0500
commit53ce9ffd7903e59a6a215e50c39d8da194c0d42e (patch)
tree9ebaa097c957e9297f8026f6673af7df0e5fdce7 /lumina-desktop/desktop-plugins/applauncher
parentLarge quality of life update to Lumina: (diff)
downloadlumina-53ce9ffd7903e59a6a215e50c39d8da194c0d42e.tar.gz
lumina-53ce9ffd7903e59a6a215e50c39d8da194c0d42e.tar.bz2
lumina-53ce9ffd7903e59a6a215e50c39d8da194c0d42e.zip
Add a new desktop plugin: desktopview
This plugin provides an area of the screen for automatically displaying icons for anything in the ~/Desktop folder. An icon can be opened/run via a double-click of the mouse.
Diffstat (limited to 'lumina-desktop/desktop-plugins/applauncher')
-rw-r--r--lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp b/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp
index 9ed9e735..dc0c7596 100644
--- a/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp
+++ b/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp
@@ -12,12 +12,13 @@ AppLauncherPlugin::AppLauncherPlugin(QWidget* parent, QString ID) : LDPlugin(par
button->setText("..."); //Need to set something here so that initial sizing works properly
lay->addWidget(button, 0, Qt::AlignCenter);
connect(button, SIGNAL(clicked()), this, SLOT(buttonClicked()) );
- if(this->settings->allKeys().isEmpty()){
+ this->setInitialSize(64,66+this->fontMetrics().height());
+ /*if(this->settings->allKeys().isEmpty()){
//Brand new plugin: set initial size
this->settings->setValue("location/width",64);
this->settings->setValue("location/height",66+this->fontMetrics().height());
this->settings->sync();
- }
+ }*/
watcher = new QFileSystemWatcher(this);
connect(watcher, SIGNAL(fileChanged(QString)), this, SLOT( loadButton()) );
QTimer::singleShot(1,this, SLOT(loadButton()) );
bgstack15