Merge pull request #1090 from laanwj/2012_04_wraptooltips

Allow Qt to wrap long tooltips (fixes #1063)
This commit is contained in:
Wladimir J. van der Laan
2012-05-10 23:54:53 -07:00
5 changed files with 57 additions and 3 deletions

View File

@@ -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);