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++
Merge branch 'master' into work/rempt/qt6-5
Halla Remptbb9218f394d3
diff --cc libs/widgets/KisWidgetConnectionUtils.hindex e7fe8bfaa0,eaaabd30df..4a3007ed73--- a/libs/widgets/KisWidgetConnectionUtils.h+++ b/libs/widgets/KisWidgetConnectionUtils.h@@@ -24,10 -27,27 +27,28 @@@ class KisColorButtonclass QLineEdit;class KisMultipliersDoubleSliderSpinBox;class KisFileNameRequester;+class QWidget;+ /**+ * A collection of utility functions and classes that+ * allow connecting normal QWidget-based UI-controls to+ * lager-based structures.+ */namespace KisWidgetConnectionUtils {++ /**+ * (*)State classes represent the entire "state" of the corresponding widget+ *+ * E.g. `CheckBoxState` represents if the checkbox is enabled and checked+ * at the same time. We need to provide these values as a single struct+ * to avoid cyclic update, caused by partial updates of the widgets.+ *+ * Cyclic updates may happen when the GUI-control's value should be reset+ * into some predefined value, when the control gets disabled, but we don't+ * want to write this "fallback value" back into the model (because it doesn't+ * make sense with the control disabled).+ */template<typename T>struct ControlState {T value = T{};