aboutsummaryrefslogtreecommitdiff
path: root/src/qt/guiconstants.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2012-04-13 17:10:50 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2012-05-05 10:20:52 +0200
commit3793fa09ff920fc720dfad3738f105d2c9563662 (patch)
tree87e3a01f4fb1dea5c692d87fad087774fa2fbad7 /src/qt/guiconstants.h
parent4c9183e8bb6dc3faf80e301cf07c2d4d3abff405 (diff)
downloadbitcoin-3793fa09ff920fc720dfad3738f105d2c9563662.tar.xz
Allow Qt to wrap long tooltips (fixes #1063)
Implemented without having to touch any translation: by listening for QEvent::ToolTipChange events, then rewriting the tooltips to prefix `<qt/>` if it is not yet rich text.
Diffstat (limited to 'src/qt/guiconstants.h')
-rw-r--r--src/qt/guiconstants.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qt/guiconstants.h b/src/qt/guiconstants.h
index 0cb507501a..54e9d644fe 100644
--- a/src/qt/guiconstants.h
+++ b/src/qt/guiconstants.h
@@ -20,4 +20,9 @@ static const int STATUSBAR_ICONSIZE = 16;
/* Transaction list -- bare address (without label) */
#define COLOR_BAREADDRESS QColor(140, 140, 140)
+/* Tooltips longer than this (in characters) are converted into rich text,
+ so that they can be word-wrapped.
+ */
+static const int TOOLTIP_WRAP_THRESHOLD = 80;
+
#endif // GUICONSTANTS_H