当前位置 : 主页 > 大数据 > 区块链 >

initGanttView

来源:互联网 收集:自由互联 发布时间:2021-06-22
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()));

}

 

网友评论