aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-10-19 16:56:18 -0400
committerKen Moore <moorekou@gmail.com>2015-10-19 16:56:18 -0400
commitd298de370edfdabc6916f4b1a46e4fc2df3ba1bf (patch)
tree9004962b11dfcb689fb0ae33e15952b055187c32 /lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp
parentConvert the desktop-plugin "applauncher" (desktop icons) to use a double-clic... (diff)
downloadlumina-d298de370edfdabc6916f4b1a46e4fc2df3ba1bf.tar.gz
lumina-d298de370edfdabc6916f4b1a46e4fc2df3ba1bf.tar.bz2
lumina-d298de370edfdabc6916f4b1a46e4fc2df3ba1bf.zip
Adjust the text adjustment routine for the applauncher a tiny bit as well so the second line does not appear slightly squished.
Diffstat (limited to 'lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp')
-rw-r--r--lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp b/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp
index 5f429c5f..c0f868e2 100644
--- a/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp
+++ b/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp
@@ -117,7 +117,7 @@ void AppLauncherPlugin::loadButton(){
}else{
txt = this->fontMetrics().elidedText(txt,Qt::ElideRight, 2*(button->width()-OUTMARGIN));
//Now split the line in half for the two lines
- txt.insert( ((txt.count()-2)/2), "\n");
+ txt.insert( ((txt.count())/2), "\n");
}
}
if(!txt.contains("\n")){ txt.append("\n "); } //always use two lines
bgstack15