예제 #1
0
void FlowsWidget::editRow(const QModelIndex &index)
{
    qDebug() << __FUNCTION__;
    AddFlowDialog *afd = new AddFlowDialog(filterProxyModel->data(filterProxyModel->index(index.row(), 0)).toInt(), this);
    connect(afd, SIGNAL(accepted()), this, SLOT(refresh()));
    afd->exec();
}
예제 #2
0
void FlowsWidget::addRow()
{
    qDebug() << __FUNCTION__;
    AddFlowDialog *afd = new AddFlowDialog(this);
    connect(afd, SIGNAL(accepted()), this, SLOT(refresh()));
    afd->exec();
}
예제 #3
0
//add flow
void ShowFlowsDialog::on_addFlowButton_clicked()
{
    AddFlowDialog *addflowLog = new AddFlowDialog(m_platform);
    if (addflowLog->exec() == QDialog::Accepted)
    {
        QMessageBox::information(this, tr("提示"),tr("添加成功!"),QMessageBox::Ok);
    }
}