diff options
| author | Wladimir J. van der Laan <[email protected]> | 2012-05-10 23:54:53 -0700 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2012-05-10 23:54:53 -0700 |
| commit | b8a5e30d9136673163555615e17098c07b4c821f (patch) | |
| tree | ffcb6685a887564859e1deae822af46f6b30c5d2 /src/qt/bitcoin.cpp | |
| parent | Merge pull request #1206 from Diapolo/passphrasedialog (diff) | |
| parent | Allow Qt to wrap long tooltips (fixes #1063) (diff) | |
| download | discoin-b8a5e30d9136673163555615e17098c07b4c821f.tar.xz discoin-b8a5e30d9136673163555615e17098c07b4c821f.zip | |
Merge pull request #1090 from laanwj/2012_04_wraptooltips
Allow Qt to wrap long tooltips (fixes #1063)
Diffstat (limited to 'src/qt/bitcoin.cpp')
| -rw-r--r-- | src/qt/bitcoin.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index 4a77bf9b7..91f6a56c8 100644 --- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -6,6 +6,7 @@ #include "walletmodel.h" #include "optionsmodel.h" #include "guiutil.h" +#include "guiconstants.h" #include "init.h" #include "ui_interface.h" @@ -164,6 +165,9 @@ int main(int argc, char *argv[]) Q_INIT_RESOURCE(bitcoin); QApplication app(argc, argv); + // Install global event filter that makes sure that long tooltips can be word-wrapped + app.installEventFilter(new GUIUtil::ToolTipToRichTextFilter(TOOLTIP_WRAP_THRESHOLD, &app)); + // Command-line options take precedence: ParseParameters(argc, argv); |