mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-03 20:13:17 +02:00
Merge #20: Wrap tooltips in the intro window
6ed4bcabc1
qt: Wrap tooltips in the intro window (Hennadii Stepanov) Pull request description: On master (d6fe5b28df
):  With this PR:  --- This is a move-only change. This was done while reviewing #15. ACKs for top commit: jonasschnelli: utACK6ed4bcabc1
Tree-SHA512: 67507c8c5628cd95fe8e377ce21e2c23d305faf1affa0b7579885553c20055ba07ed61e2aed3230d7cd22c3c90f76e0c58cb3238be9f153a8ca6e6d4e38753b0
This commit is contained in:
@@ -505,6 +505,9 @@ int GuiMain(int argc, char* argv[])
|
|||||||
return EXIT_SUCCESS;
|
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
|
/// 5. Now that settings and translations are available, ask user for data directory
|
||||||
// User language is set up: pick a data directory
|
// User language is set up: pick a data directory
|
||||||
bool did_show_intro = false;
|
bool did_show_intro = false;
|
||||||
@@ -576,8 +579,6 @@ int GuiMain(int argc, char* argv[])
|
|||||||
#endif // ENABLE_WALLET
|
#endif // ENABLE_WALLET
|
||||||
|
|
||||||
/// 9. Main GUI initialization
|
/// 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));
|
|
||||||
// Install global event filter that makes sure that out-of-focus labels do not contain text cursor.
|
// Install global event filter that makes sure that out-of-focus labels do not contain text cursor.
|
||||||
app.installEventFilter(new GUIUtil::LabelOutOfFocusEventFilter(&app));
|
app.installEventFilter(new GUIUtil::LabelOutOfFocusEventFilter(&app));
|
||||||
#if defined(Q_OS_WIN)
|
#if defined(Q_OS_WIN)
|
||||||
|
Reference in New Issue
Block a user