X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Ftopicbutton.cpp;fp=src%2Fqtui%2Ftopicbutton.cpp;h=4c26bfc3372d075dd7bb312b9a44752530801156;hp=fd1d86a77c476acff342da227481a472e76f88c1;hb=2ef12747a748a78311ee51b4bf833e1664347d47;hpb=6c06fdd7dbd8215c28b5c99dc7961fa8eabeebaf 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())); }