diff options
Diffstat (limited to 'kgantt/kgantt/KGanttBarConfig.cpp')
-rw-r--r-- | kgantt/kgantt/KGanttBarConfig.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/kgantt/kgantt/KGanttBarConfig.cpp b/kgantt/kgantt/KGanttBarConfig.cpp new file mode 100644 index 000000000..d5faa208a --- /dev/null +++ b/kgantt/kgantt/KGanttBarConfig.cpp @@ -0,0 +1,32 @@ +// +// file : KGanttBarConfig.cpp +// date : 16 jan 2001 +// changed : +// author : jh +// + + +#include "KGanttBarConfig.h" +#include "xQGanttBarView.h" + +#include <kcolorbutton.h> + + +KGanttBarConfig::KGanttBarConfig(xQGanttBarView* barview, + QWidget* parent, + const char * name, WFlags f) + : QWidget(parent,name,f) +{ + _barview = barview; + KColorButton* b = new KColorButton(this); + + connect(b, SIGNAL(changed(const QColor&)), + this, SLOT(changeBackground(const QColor&))); + +} + + +void KGanttBarConfig::changeBackground(const QColor& color) { + _barview->viewport()->setBackgroundColor(color); +} +#include "KGanttBarConfig.moc" |