首页 > 其他 > 详细

initGanttView

时间:2019-08-02 00:49:59      阅读:80      评论:0      收藏:0      [点我收藏+]

 

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

原文:https://www.cnblogs.com/herd/p/11285916.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!