diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-04-08 19:56:16 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-05-01 15:07:11 +0300 |
commit | d05f1b278d9846de5142a4ac3f53c84145330dd1 (patch) | |
tree | 710e4effad24f09b282e49baf56ae06fb12c2156 /src/qt/bitcoingui.h | |
parent | 6b2ce65392dc98250e84941370e975048b8afc54 (diff) | |
download | bitcoin-d05f1b278d9846de5142a4ac3f53c84145330dd1.tar.xz |
qt: Make UnitDisplayStatusBarControl aware of runtime palette change
This change fixes the GUI when changing appearance on macOS.
Diffstat (limited to 'src/qt/bitcoingui.h')
-rw-r--r-- | src/qt/bitcoingui.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qt/bitcoingui.h b/src/qt/bitcoingui.h index d1cfa547bd..65c5331d32 100644 --- a/src/qt/bitcoingui.h +++ b/src/qt/bitcoingui.h @@ -334,10 +334,12 @@ public: protected: /** So that it responds to left-button clicks */ void mousePressEvent(QMouseEvent *event) override; + void changeEvent(QEvent* e) override; private: OptionsModel *optionsModel; QMenu* menu; + const PlatformStyle* m_platform_style; /** Shows context menu with Display Unit options by the mouse coordinates */ void onDisplayUnitsClicked(const QPoint& point); |