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