Skip to content

Commit 9453fbf

Browse files
committed
Merge #20: Wrap tooltips in the intro window
6ed4bca qt: Wrap tooltips in the intro window (Hennadii Stepanov) Pull request description: On master (d6fe5b2): ![DeepinScreenshot_select-area_20200702082514](https://user-images.githubusercontent.com/32963518/86319852-18e6e200-bc3e-11ea-902c-1b868540f4cf.png) With this PR: ![Screenshot from 2020-07-02 08-22-44](https://user-images.githubusercontent.com/32963518/86319881-28fec180-bc3e-11ea-9d76-522a5e71c32d.png) --- This is a move-only change. This was done while reviewing #15. ACKs for top commit: jonasschnelli: utACK 6ed4bca Tree-SHA512: 67507c8c5628cd95fe8e377ce21e2c23d305faf1affa0b7579885553c20055ba07ed61e2aed3230d7cd22c3c90f76e0c58cb3238be9f153a8ca6e6d4e38753b0
2 parents 8827118 + 6ed4bca commit 9453fbf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/qt/bitcoin.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,9 @@ int GuiMain(int argc, char* argv[])
505505
return EXIT_SUCCESS;
506506
}
507507

508+
// Install global event filter that makes sure that long tooltips can be word-wrapped
509+
app.installEventFilter(new GUIUtil::ToolTipToRichTextFilter(TOOLTIP_WRAP_THRESHOLD, &app));
510+
508511
/// 5. Now that settings and translations are available, ask user for data directory
509512
// User language is set up: pick a data directory
510513
bool did_show_intro = false;
@@ -576,8 +579,6 @@ int GuiMain(int argc, char* argv[])
576579
#endif // ENABLE_WALLET
577580

578581
/// 9. Main GUI initialization
579-
// Install global event filter that makes sure that long tooltips can be word-wrapped
580-
app.installEventFilter(new GUIUtil::ToolTipToRichTextFilter(TOOLTIP_WRAP_THRESHOLD, &app));
581582
// Install global event filter that makes sure that out-of-focus labels do not contain text cursor.
582583
app.installEventFilter(new GUIUtil::LabelOutOfFocusEventFilter(&app));
583584
#if defined(Q_OS_WIN)

0 commit comments

Comments
 (0)