[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdevelop/lib/widgets/propeditor
From:       Ian Reinhart Geiser <geiseri () kde ! org>
Date:       2004-10-06 18:48:42
Message-ID: 20041006184842.5FAE599BC () office ! kde ! org
[Download RAW message or body]

CVS commit by geiseri: 

compile in kde mode


  M +4 -3      pcolorbutton.cpp   1.6


--- kdevelop/lib/widgets/propeditor/pcolorbutton.cpp  #1.5:1.6
@@ -27,6 +27,6 @@
 #else
 #include <qpushbutton.h>
-#include <qcolordialog.h>
 #endif
+#include <qcolordialog.h>
 
 namespace PropertyLib {
@@ -82,4 +82,5 @@ void PColorButton::setValue(const QVaria
 #else
     m_color = value.toColor();
+    m_edit->setText(m_color.name());
 #endif
     if (emitChange)
@@ -95,6 +96,6 @@ void PColorButton::updateProperty(const 
 void PColorButton::changeColor()
 {
-   QColor color = QColorDialog::getColor(m_color,this);
-   updateProperty(color);
+   m_color = QColorDialog::getColor(m_color,this);
+   updateProperty(m_color);
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic