projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c06fdd
)
Added a useful popup to the topic bar. Should probably be beautified though...
author
Manuel Nickschas
<sputnick@quassel-irc.org>
Sat, 5 Apr 2008 21:32:10 +0000
(21:32 +0000)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Sat, 5 Apr 2008 21:32:10 +0000
(21:32 +0000)
src/qtui/topicbutton.cpp
patch
|
blob
|
history
diff --git
a/src/qtui/topicbutton.cpp
b/src/qtui/topicbutton.cpp
index
fd1d86a
..
4c26bfc
100644
(file)
--- 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()));
}