blob: d5faa208a2466422abd8f3d7230298881d05e862 (
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,
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"
|