From 2ef12747a748a78311ee51b4bf833e1664347d47 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Sat, 5 Apr 2008 21:32:10 +0000 Subject: [PATCH] Added a useful popup to the topic bar. Should probably be beautified though... --- src/qtui/topicbutton.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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())); } -- 2.20.1