mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 15:04:44 +01:00
qt: Wrap tooltips in the intro window
This commit is contained in:
parent
a63a26f042
commit
6ed4bcabc1
1 changed files with 3 additions and 2 deletions
|
@ -488,6 +488,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;
|
||||||
|
@ -559,8 +562,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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue