From 371c96fa4b2b85bceb8bb91862d355fc14bb971d Mon Sep 17 00:00:00 2001 From: mickeyl Date: Sun, 10 Aug 2003 15:32:49 +0000 Subject: BUILDFIX: merging this with BRANCH did the wrong thing. --- (limited to 'noncore/apps') diff --git a/noncore/apps/tinykate/libkate/microkde/kcolorbtn.cpp b/noncore/apps/tinykate/libkate/microkde/kcolorbtn.cpp index 5d21f15..7be5af5 100644 --- a/noncore/apps/tinykate/libkate/microkde/kcolorbtn.cpp +++ b/noncore/apps/tinykate/libkate/microkde/kcolorbtn.cpp @@ -23,9 +23,11 @@ #include #include #include -#include "kcolordialog.h" +//#include "kcolordialog.h" #include "kcolorbtn.h" +#include + KColorButton::KColorButton( QWidget *parent, const char *name ) : QPushButton( parent, name ), dragFlag(false) { @@ -34,7 +36,7 @@ KColorButton::KColorButton( QWidget *parent, const char *name ) } KColorButton::KColorButton( const QColor &c, QWidget *parent, - const char *name ) + const char *name ) : QPushButton( parent, name ), col(c), dragFlag(false) { @@ -73,12 +75,11 @@ void KColorButton::drawButtonLabel( QPainter *painter ) void KColorButton::chooseColor() { - if( KColorDialog::getColor( col) == QDialog::Rejected ) + QColor newCol=OColorDialog::getColor( col); + if( newCol != QDialog::Rejected ) { - return; - } - + col=newCol; repaint( false ); emit changed( col ); + } } - -- cgit v0.9.0.2