Skip to content

Commit

Permalink
qt: Wrap tooltips in the intro window
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Jul 2, 2020
1 parent d6fe5b2 commit c32b53f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/qt/bitcoin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,9 @@ int GuiMain(int argc, char* argv[])
return EXIT_SUCCESS;
}

// Install global event filter that makes sure that long tooltips can be word-wrapped
app.installEventFilter(new GUIUtil::ToolTipToRichTextFilter(TOOLTIP_WRAP_THRESHOLD, &app));

/// 5. Now that settings and translations are available, ask user for data directory
// User language is set up: pick a data directory
bool did_show_intro = false;
Expand Down Expand Up @@ -554,8 +557,6 @@ int GuiMain(int argc, char* argv[])
#endif // ENABLE_WALLET

/// 9. Main GUI initialization
// Install global event filter that makes sure that long tooltips can be word-wrapped
app.installEventFilter(new GUIUtil::ToolTipToRichTextFilter(TOOLTIP_WRAP_THRESHOLD, &app));
#if defined(Q_OS_WIN)
// Install global event filter for processing Windows session related Windows messages (WM_QUERYENDSESSION and WM_ENDSESSION)
qApp->installNativeEventFilter(new WinShutdownMonitor());
Expand Down

0 comments on commit c32b53f

Please sign in to comment.