aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar un1versal2016-02-26 17:05:27 +0000
committerGravatar un1versal2016-02-27 10:22:22 +0000
commit4125af54aced143ee2aac54726e701c0722f2dbf (patch)
tree4172281ea2aa2c6894709a21c6b84e7b0f68441c
parentMake one of messages slightly more understandable, what it even means. (diff)
downloadKVIrc-4125af54aced143ee2aac54726e701c0722f2dbf.tar.gz
KVIrc-4125af54aced143ee2aac54726e701c0722f2dbf.tar.bz2
KVIrc-4125af54aced143ee2aac54726e701c0722f2dbf.zip
KviStatusBar: fix tooltip content wrapping
-rw-r--r--src/kvirc/ui/KviStatusBar.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/kvirc/ui/KviStatusBar.cpp b/src/kvirc/ui/KviStatusBar.cpp
index 682b1b75a..12408d516 100644
--- a/src/kvirc/ui/KviStatusBar.cpp
+++ b/src/kvirc/ui/KviStatusBar.cpp
@@ -313,7 +313,7 @@ void KviStatusBar::tipRequest(QHelpEvent * e)
QString szTip;
if(pApplet)
{
- szTip = "<table width=\"110%\"><tr><td bgcolor=\"#303030\" align=\"center\"><font color=\"#ffffff\"><b>" + pApplet->descriptor()->visibleName() + "</b></font></td></tr>";
+ szTip = "<table width=\"115%\"><tr><td bgcolor=\"#303030\" align=\"center\"><font color=\"#ffffff\"><b>" + pApplet->descriptor()->visibleName() + "</b></font></td></tr>";
QString szTipx = pApplet->tipText(pApplet->mapFromGlobal(mapToGlobal(e->pos())));
if(!szTipx.isEmpty())
@@ -324,20 +324,23 @@ void KviStatusBar::tipRequest(QHelpEvent * e)
}
szTip += "<tr><td><font color=\"#636363\" size=\"-1\">";
- szTip += __tr2qs("<b>Shift+Drag</b> or <b>Ctrl+Drag</b> to move the applet around<br><b>Right-click</b> to see the other options");
+ szTip += __tr2qs("<b>Shift+Drag</b> or <b>Ctrl+Drag</b> to move the applet around");
+ szTip += "<br>";
+ szTip += __tr2qs("<b>Right-click</b> to see the other options");
szTip += "</font></td></tr></table>";
} else {
- szTip = "<p>";
+ szTip = "<table width=\"115%\"><tr><td>";
KviIrcContext * c = m_pFrame->activeContext();
if(c && (c->state() == KviIrcContext::Connected))
{
szTip += __tr2qs("<b>Double-click</b> to get network information");
- szTip += "</p><p>";
+ szTip += "</td></tr><p></p>";
}
+ szTip += "<tr><td>";
szTip += __tr2qs("<b>Right-click</b> to add / remove applets");
- szTip += "</p>";
+ szTip += "</td></tr></table>";
}
QToolTip::showText(e->globalPos(),szTip);
}