diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-04-08 16:14:12 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-05-01 15:07:10 +0300 |
commit | 6b2ce65392dc98250e84941370e975048b8afc54 (patch) | |
tree | 073a4e34edf623383a9a7418df5d0933ba9df481 /src/qt/guiutil.cpp | |
parent | ff530a2093c294a1093e1b00fb66ab0a98851c04 (diff) |
qt: Replace base class of ClickableLabel with ThemedLabel
This change fixes the GUI when changing appearance on macOS.
Diffstat (limited to 'src/qt/guiutil.cpp')
-rw-r--r-- | src/qt/guiutil.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index 3c4f3df89d..b738d13840 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -817,6 +817,11 @@ void ThemedLabel::updateThemedPixmap() setPixmap(m_platform_style->SingleColorIcon(m_image_filename).pixmap(m_pixmap_width, m_pixmap_height)); } +ClickableLabel::ClickableLabel(const PlatformStyle* platform_style, QWidget* parent) + : ThemedLabel{platform_style, parent} +{ +} + void ClickableLabel::mouseReleaseEvent(QMouseEvent *event) { Q_EMIT clicked(event->pos()); |