initGanttView

 

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()));

}

 

initGanttView

 

上一篇:查看GPU计算能力


下一篇:c – 即使在cudaSetDevice之后,第一个cudaMalloc(K40对K20)的速度也很慢