kgantt Library API Documentation

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 QWidget* parent, 00017 const char * name, WFlags f) 00018 : QWidget(parent,name,f) 00019 { 00020 _barview = barview; 00021 KColorButton* b = new KColorButton(this); 00022 00023 connect(b, SIGNAL(changed(const QColor&)), 00024 this, SLOT(changeBackground(const QColor&))); 00025 00026 } 00027 00028 00029 void KGanttBarConfig::changeBackground(const QColor& color) { 00030 _barview->viewport()->setBackgroundColor(color); 00031 } 00032 #include "KGanttBarConfig.moc"
KDE Logo
This file is part of the documentation for kgantt Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Oct 1 15:18:34 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003