// ---------------------------------------------------------- void QucsApp::slotCreatePackage() { editText->setHidden(true); // disable text edit of component property PackageDialog *d = new PackageDialog(this, true); d->exec(); }
void PackagesPage::onPackageAdd() { PackageDialog* dlg = new PackageDialog(_model, this); if(dlg->exec()==QDialog::Accepted) { _model->select(); _ui->_listPackages->scrollToBottom(); updateHeader(); } delete dlg; }
void PackagesPage::onEditPackage(QModelIndex index) { PackageDialog* dlg = new PackageDialog(_model, this); dlg->setData(index); if(dlg->exec()==QDialog::Accepted) { _model->select(); _ui->_listPackages->scrollToBottom(); updateHeader(); } delete dlg; }