-rw-r--r-- | noncore/apps/tinykate/libkate/microkde/kcolorbtn.cpp | 12 | ||||
-rw-r--r-- | noncore/apps/tinykate/libkate/microkde/kcolordialog.h | 4 |
2 files changed, 10 insertions, 6 deletions
diff --git a/noncore/apps/tinykate/libkate/microkde/kcolorbtn.cpp b/noncore/apps/tinykate/libkate/microkde/kcolorbtn.cpp index 5d21f15..976f1db 100644 --- a/noncore/apps/tinykate/libkate/microkde/kcolorbtn.cpp +++ b/noncore/apps/tinykate/libkate/microkde/kcolorbtn.cpp | |||
@@ -23,9 +23,11 @@ | |||
23 | #include <qdrawutil.h> | 23 | #include <qdrawutil.h> |
24 | #include <qapplication.h> | 24 | #include <qapplication.h> |
25 | #include <kglobalsettings.h> | 25 | #include <kglobalsettings.h> |
26 | #include "kcolordialog.h" | 26 | //#include "kcolordialog.h" |
27 | #include "kcolorbtn.h" | 27 | #include "kcolorbtn.h" |
28 | 28 | ||
29 | #include <opie/colordialog.h> | ||
30 | |||
29 | KColorButton::KColorButton( QWidget *parent, const char *name ) | 31 | KColorButton::KColorButton( QWidget *parent, const char *name ) |
30 | : QPushButton( parent, name ), dragFlag(false) | 32 | : QPushButton( parent, name ), dragFlag(false) |
31 | { | 33 | { |
@@ -73,12 +75,12 @@ void KColorButton::drawButtonLabel( QPainter *painter ) | |||
73 | 75 | ||
74 | void KColorButton::chooseColor() | 76 | void KColorButton::chooseColor() |
75 | { | 77 | { |
76 | if( KColorDialog::getColor( col) == QDialog::Rejected ) | 78 | QColor newCol=OColorDialog::getColor( col); |
79 | if( newCol != QDialog::Rejected ) | ||
77 | { | 80 | { |
78 | return; | 81 | col=newCol; |
79 | } | ||
80 | |||
81 | repaint( false ); | 82 | repaint( false ); |
82 | emit changed( col ); | 83 | emit changed( col ); |
83 | } | 84 | } |
85 | } | ||
84 | 86 | ||
diff --git a/noncore/apps/tinykate/libkate/microkde/kcolordialog.h b/noncore/apps/tinykate/libkate/microkde/kcolordialog.h index 0f831cd..1d5c27e 100644 --- a/noncore/apps/tinykate/libkate/microkde/kcolordialog.h +++ b/noncore/apps/tinykate/libkate/microkde/kcolordialog.h | |||
@@ -2,9 +2,11 @@ | |||
2 | #define MINIKDE_KCOLORDIALOG_H | 2 | #define MINIKDE_KCOLORDIALOG_H |
3 | 3 | ||
4 | #include <qcolor.h> | 4 | #include <qcolor.h> |
5 | #include <opie/colordialog.h> | ||
5 | 6 | ||
6 | class KColorDialog | 7 | class KColorDialog : OColorDialog |
7 | { | 8 | { |
9 | Q_OBJECT | ||
8 | public: | 10 | public: |
9 | enum { Accepted }; | 11 | enum { Accepted }; |
10 | 12 | ||