Esempio n. 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();
}
Esempio n. 2
0
void FlowsWidget::addRow()
{
    qDebug() << __FUNCTION__;
    AddFlowDialog *afd = new AddFlowDialog(this);
    connect(afd, SIGNAL(accepted()), this, SLOT(refresh()));
    afd->exec();
}
Esempio n. 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);
    }
}