void TeslaManage::initGanttView(){ if (vcGanttObject == NULL) { vcGanttObject = new VCGantt( this ); ganttView = vcGanttObject-initGanttView( this - tesla_manage_ui.newEntryAction, this -tesla_manage_ui.removeEntryAction, this - tesla_manag
void TeslaManage::initGanttView() { if (vcGanttObject ==NULL) { vcGanttObject = new VCGantt(this); ganttView = vcGanttObject->initGanttView(this->tesla_manage_ui.newEntryAction, this->tesla_manage_ui.removeEntryAction, this->tesla_manage_ui.zoomInAction, this->tesla_manage_ui.zoomOutAction, this->tesla_manage_ui.zoomFitAction); this->tesla_manage_ui.ganttDockWidget->setWidget(ganttView); } connect(this->tesla_manage_ui.newEntryAction, SIGNAL(triggered()), this, SLOT(vcGanttObject->addNewEntry())); connect(this->tesla_manage_ui.removeEntryAction, SIGNAL(triggered()), this, SLOT(vcGanttObject->removeEntry())); connect(this->tesla_manage_ui.zoomInAction, SIGNAL(triggered()), this, SLOT(vcGanttObject->zoomIn())); connect(this->tesla_manage_ui.zoomOutAction, SIGNAL(triggered()), this, SLOT(vcGanttObject->zoomOut())); connect(this->tesla_manage_ui.zoomFitAction, SIGNAL(triggered()), this, SLOT(vcGanttObject->zoomFit())); }