removeEntry

void VCGantt::removeEntry()
{
    QModelIndexList selectedIndexes = ganttViewCommon->selectionModel()->selectedIndexes();
    QModelIndex index = selectedIndexes.value(0);

    if (!index.isValid())
        return;

    qDebug() << "remove:" << index.row();
    ganttModel->removeRow(index.row(), index.parent());
}

 

posted @ 2019-08-02 18:37  西北逍遥  阅读(377)  评论(0编辑  收藏  举报