kgantt

KGanttBarConfig.cpp
1//
2// file : KGanttBarConfig.cpp
3// date : 16 jan 2001
4// changed :
5// author : jh
6//
7
8
9#include "KGanttBarConfig.h"
10#include "xQGanttBarView.h"
11
12#include <kcolorbutton.h>
13
14
15KGanttBarConfig::KGanttBarConfig(xQGanttBarView* barview,
16 TQWidget* parent,
17 const char * name, WFlags f)
18 : TQWidget(parent,name,f)
19{
20 _barview = barview;
21 KColorButton* b = new KColorButton(this);
22
23 connect(b, TQ_SIGNAL(changed(const TQColor&)),
24 this, TQ_SLOT(changeBackground(const TQColor&)));
25
26}
27
28
29void KGanttBarConfig::changeBackground(const TQColor& color) {
30 _barview->viewport()->setBackgroundColor(color);
31}
32#include "KGanttBarConfig.moc"
Gantt view.