diff options
author | Ken Moore <moorekou@gmail.com> | 2015-07-08 02:37:09 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-07-08 02:37:09 -0400 |
commit | 7e2c562e45e52fc151be9af1bebc3ad1b03b995c (patch) | |
tree | d24c2ea7660124b01a3f45704002b9d7f80cee50 /lumina-desktop/desktop-plugins/applauncher | |
parent | Fix the initial brightness detection for FreeBSD on new users/systems. (diff) | |
download | lumina-7e2c562e45e52fc151be9af1bebc3ad1b03b995c.tar.gz lumina-7e2c562e45e52fc151be9af1bebc3ad1b03b995c.tar.bz2 lumina-7e2c562e45e52fc151be9af1bebc3ad1b03b995c.zip |
Update how the desktop icons (applaunchers or desktopview) are created/arranged initially. Now the desktopview should be oriented the proper way, and the applauncher icons should be the proper size (although they are still not being placed in non-overlapping locations yet).
Diffstat (limited to 'lumina-desktop/desktop-plugins/applauncher')
-rw-r--r-- | lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp b/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp index 447f959b..7d6c3d62 100644 --- a/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp +++ b/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp @@ -24,7 +24,7 @@ AppLauncherPlugin::AppLauncherPlugin(QWidget* parent, QString ID) : LDPlugin(par watcher = new QFileSystemWatcher(this); connect(watcher, SIGNAL(fileChanged(QString)), this, SLOT( loadButton()) ); //Calculate the initial size of the button - this->setInitialSize(icosize+8, icosize+8+qRound(2.2*button->fontMetrics().height())); + this->setInitialSize((1.2*icosize)+8, icosize+8+qRound(2.3*button->fontMetrics().height())); QTimer::singleShot(1,this, SLOT(loadButton()) ); } @@ -102,7 +102,6 @@ void AppLauncherPlugin::loadButton(){ } button->setFixedSize(icosize+4, icosize+8+qRound(2.1*button->fontMetrics().height()) ); //make sure to adjust the button on first show. - //this->setInitialSize(button->width()+4, button->height()+4); QTimer::singleShot(100, this, SLOT(update()) ); //Make sure to re-draw the image in a moment } |