aboutsummaryrefslogtreecommitdiff
path: root/src/qt/bitcoin.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-06-08 16:48:45 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-07-03 18:29:24 +0300
commitbd315eb5e27d49d47759ae9417328427426cb269 (patch)
treefe23b49073b9b19d84da534b816624f7cc833459 /src/qt/bitcoin.cpp
parent374fd6fc8b4c6539173d5fa0008266aafdb6c668 (diff)
downloadbitcoin-bd315eb5e27d49d47759ae9417328427426cb269.tar.xz
qt: Get rid of cursor in out-of-focus labels
This change is a temporary fix of QTBUG-59514.
Diffstat (limited to 'src/qt/bitcoin.cpp')
-rw-r--r--src/qt/bitcoin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp
index f8cdb5df23..104441ac0c 100644
--- a/src/qt/bitcoin.cpp
+++ b/src/qt/bitcoin.cpp
@@ -556,6 +556,8 @@ int GuiMain(int argc, char* argv[])
/// 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.
+ app.installEventFilter(new GUIUtil::LabelOutOfFocusEventFilter(&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());