/** * @brief SimSpacial::~SimSpacial * Default destructor */ SimSpacial::~SimSpacial() { // Delete the main widget if it has been used delWidget(); // Delete the toolbar widget if it has been used delWidgetToolbar(); // Close the current shape file mShapeFile.close(); }
OptionsDialog::OptionsDialog(QWidget *parent) : QDialog(parent) { setupUi(this); //qDebug("...OptionsDialog...connect..(%d)...(%d)",ui.loadButton, this ); //OptionsDialog *mydlg = this; // connect(checkButton, SIGNAL(clicked()), SLOT(doLoadWidget()) ); connect(loadButton, SIGNAL(clicked()), SLOT(doLoadWidget()) ); connect(addButton, SIGNAL(clicked()), SLOT(addWidget()) ); connect(delButton, SIGNAL(clicked()), SLOT(delWidget()) ); connect(buttonBox, SIGNAL(accepted()), this, SLOT(doAccept())); Q_CHECK_PTR( parent ); MainWindow* mw = qobject_cast<MainWindow*>(parent); Q_CHECK_PTR( mw ); Q_CHECK_PTR( listWidget ); listWidget->addItems( mw->plugs() ); buildTab(); //setWindowOpacity(0.5); }