-rw-r--r-- | libopie/ocolorbutton.cpp | 6 | ||||
-rw-r--r-- | libopie/ocolorbutton.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/libopie/ocolorbutton.cpp b/libopie/ocolorbutton.cpp index 4734c0c..ddb6c4f 100644 --- a/libopie/ocolorbutton.cpp +++ b/libopie/ocolorbutton.cpp @@ -42,3 +42,3 @@ public: -OColorButton::OColorButton ( QWidget *parent, const char *name ) +OColorButton::OColorButton ( QWidget *parent, const QColor &color, const char *name ) : QPushButton ( parent, name ) @@ -47,3 +47,3 @@ OColorButton::OColorButton ( QWidget *parent, const char *name ) - d-> m_menu = new ColorPopupMenu ( black, 0, 0 ); + d-> m_menu = new ColorPopupMenu ( color, 0, 0 ); setPopup ( d-> m_menu ); @@ -52,3 +52,3 @@ OColorButton::OColorButton ( QWidget *parent, const char *name ) - updateColor ( black ); + updateColor ( color ); diff --git a/libopie/ocolorbutton.h b/libopie/ocolorbutton.h index ec04833..fe40fae 100644 --- a/libopie/ocolorbutton.h +++ b/libopie/ocolorbutton.h @@ -39,3 +39,3 @@ class OColorButton : public QPushButton { public: - OColorButton ( QWidget *parent = 0, const char *name = 0 ); + OColorButton ( QWidget *parent = 0, const QColor & = black, const char *name = 0 ); virtual ~OColorButton ( ); |