diff options
| author | Hennadii Stepanov <[email protected]> | 2020-06-08 16:48:45 +0300 |
|---|---|---|
| committer | Hennadii Stepanov <[email protected]> | 2020-07-03 18:29:24 +0300 |
| commit | bd315eb5e27d49d47759ae9417328427426cb269 (patch) | |
| tree | fe23b49073b9b19d84da534b816624f7cc833459 /src/qt/bitcoin.cpp | |
| parent | Merge #19189: refactor: Replace RecursiveMutex with Mutex in timedata.cpp (diff) | |
| download | discoin-bd315eb5e27d49d47759ae9417328427426cb269.tar.xz discoin-bd315eb5e27d49d47759ae9417328427426cb269.zip | |
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.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index f8cdb5df2..104441ac0 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()); |