KGanttBarConfig.cpp
00001 // 00002 // file : KGanttBarConfig.cpp 00003 // date : 16 jan 2001 00004 // changed : 00005 // author : jh 00006 // 00007 00008 00009 #include "KGanttBarConfig.h" 00010 #include "xQGanttBarView.h" 00011 00012 #include <kcolorbutton.h> 00013 00014 00015 KGanttBarConfig::KGanttBarConfig(xQGanttBarView* barview, 00016 TQWidget* parent, 00017 const char * name, WFlags f) 00018 : TQWidget(parent,name,f) 00019 { 00020 _barview = barview; 00021 KColorButton* b = new KColorButton(this); 00022 00023 connect(b, TQT_SIGNAL(changed(const TQColor&)), 00024 this, TQT_SLOT(changeBackground(const TQColor&))); 00025 00026 } 00027 00028 00029 void KGanttBarConfig::changeBackground(const TQColor& color) { 00030 _barview->viewport()->setBackgroundColor(color); 00031 } 00032 #include "KGanttBarConfig.moc"