blob: ff5f4ee8e62bd0b939439e2c561da98c88c67aa6 (
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* parent,
const char * name, WFlags f)
: TQWidget(parent,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"
|