[frameworks/kwidgetsaddons] src: KColorCombo: fix missing render update on changing color from code

Friedrich W. H. Kossebau <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 095974986e1bdda085f972e9198f5c2e98ab1715 by Friedrich W. H. Kossebau.
Committed on 24/07/2026 at 20:24.
Pushed by kossebau into branch 'master'.

KColorCombo: fix missing render update on changing color from code

M  +1    -0    src/kcolorcombo.cpp

https://invent.kde.org/frameworks/kwidgetsaddons/-/commit/095974986e1bdda085f972e9198f5c2e98ab1715

diff --git a/src/kcolorcombo.cpp b/src/kcolorcombo.cpp
index 32b2318a..39012597 100644
--- a/src/kcolorcombo.cpp
+++ b/src/kcolorcombo.cpp
@@ -207,6 +207,7 @@ void KColorComboPrivate::setCustomColor(const QColor &color, bool lookupInPreset
     internalcolor = color;
     customColor = color;
     q->setItemData(0, customColor, KColorComboDelegate::ColorRole);
+    q->update();
 }
 
 KColorCombo::KColorCombo(QWidget *parent)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.