Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Qt6: port from option.init to option.initFrom

Halla Rempt4896b6c817b2
diff --git a/libs/widgets/kis_color_button.cpp b/libs/widgets/kis_color_button.cpp
index 3e6339a20e..2b6121270d 100644
--- a/libs/widgets/kis_color_button.cpp
+++ b/libs/widgets/kis_color_button.cpp
@@ -237,7 +237,7 @@ void KisColorButton::paintEvent(QPaintEvent *)
if (hasFocus()) {
QRect focusRect = style->subElementRect(QStyle::SE_PushButtonFocusRect, &butOpt, this);
QStyleOptionFocusRect focusOpt;
- focusOpt.init(this);
+ focusOpt.initFrom(this);
focusOpt.rect = focusRect;
focusOpt.backgroundColor = palette().window().color();
style->drawPrimitive(QStyle::PE_FrameFocusRect, &focusOpt, &painter, this);