summaryrefslogtreecommitdiffstats
path: root/kgantt/kgantt/KGanttBarConfig.cpp
blob: e41dc7c6040e9efc559ef4a72a680170f9578fdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//
//  file    : KGanttBarConfig.cpp
//  date    : 16 jan 2001
//  changed : 
//  author  : jh
//


#include "KGanttBarConfig.h"
#include "xQGanttBarView.h"

#include <kcolorbutton.h> 


KGanttBarConfig::KGanttBarConfig(xQGanttBarView* barview,
				 TQWidget* tqparent,  
				 const char * name, WFlags f)
  : TQWidget(tqparent,name,f) 
{
  _barview = barview;
  KColorButton* b = new KColorButton(this);

  connect(b, TQT_SIGNAL(changed(const TQColor&)),
	  this, TQT_SLOT(changeBackground(const TQColor&)));

}


void KGanttBarConfig::changeBackground(const TQColor& color) {
  _barview->viewport()->setBackgroundColor(color);
}
#include "KGanttBarConfig.moc"