From: Manuel Nickschas Date: Sat, 5 Apr 2008 21:32:10 +0000 (+0000) Subject: Added a useful popup to the topic bar. Should probably be beautified though... X-Git-Tag: 0.2.0-alpha5~14 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=2ef12747a748a78311ee51b4bf833e1664347d47;hp=6c06fdd7dbd8215c28b5c99dc7961fa8eabeebaf Added a useful popup to the topic bar. Should probably be beautified though... --- diff --git a/src/qtui/topicbutton.cpp b/src/qtui/topicbutton.cpp index fd1d86a7..4c26bfc3 100644 --- a/src/qtui/topicbutton.cpp +++ b/src/qtui/topicbutton.cpp @@ -36,7 +36,7 @@ TopicButton::TopicButton(QWidget *parent) : QAbstractButton(parent) { setFixedHeight(QFontMetrics(qApp->font()).height()); - setToolTip("Click to edit!"); + setToolTip(tr("Click to edit!")); } void TopicButton::paintEvent(QPaintEvent *event) { @@ -75,5 +75,8 @@ void TopicButton::setAndStyleText(const QString &text) { height = QFontMetrics(qApp->font()).height(); setFixedHeight(height); + + // show topic in tooltip + setToolTip(tr("%1\n\nClick to edit!").arg(QAbstractButton::text())); }