KGanttBarConfig.cpp
00001
00002
00003
00004
00005
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"
This file is part of the documentation for kgantt Library Version 3.2.2.