[frameworks/kwidgetsaddons] src: KColorButton: mark drag properly as copy-only

Friedrich W. H. Kossebau <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 490cc13257b6879daefab2c985eff8d967b89d2c by Friedrich W. H. Kossebau.
Committed on 22/07/2026 at 15:55.
Pushed by kossebau into branch 'master'.

KColorButton: mark drag properly as copy-only

M  +1    -1    src/kcolorbutton.cpp

https://invent.kde.org/frameworks/kwidgetsaddons/-/commit/490cc13257b6879daefab2c985eff8d967b89d2c

diff --git a/src/kcolorbutton.cpp b/src/kcolorbutton.cpp
index 9502f2e1..9b7e2d69 100644
--- a/src/kcolorbutton.cpp
+++ b/src/kcolorbutton.cpp
@@ -277,7 +277,7 @@ void KColorButton::mousePressEvent(QMouseEvent *e)
 void KColorButton::mouseMoveEvent(QMouseEvent *e)
 {
     if ((e->buttons() & Qt::LeftButton) && (e->pos() - d->mPos).manhattanLength() > QApplication::startDragDistance()) {
-        createDrag(color(), this)->exec();
+        createDrag(color(), this)->exec(Qt::CopyAction);
         setDown(false);
     }
 }
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.