You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdepim/kgantt/kgantt/KGanttBarConfig.cpp

33 lines
656 B

//
// 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, TQ_SIGNAL(changed(const TQColor&)),
this, TQ_SLOT(changeBackground(const TQColor&)));
}
void KGanttBarConfig::changeBackground(const TQColor& color) {
_barview->viewport()->setBackgroundColor(color);
}
#include "KGanttBarConfig.moc"