예제 #1
0
// ----------------------------------------------------------
void QucsApp::slotCreatePackage()
{
  editText->setHidden(true); // disable text edit of component property

  PackageDialog *d = new PackageDialog(this, true);
  d->exec();
}
예제 #2
0
void PackagesPage::onPackageAdd()
{
    PackageDialog* dlg = new PackageDialog(_model, this);
    if(dlg->exec()==QDialog::Accepted)
    {
        _model->select();
        _ui->_listPackages->scrollToBottom();
        updateHeader();
    }
    delete dlg;
}
예제 #3
0
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;
}