StartDialog::StartDialog(QWidget *parent) : QDialog(parent), ui(new Ui::StartDialog) { ui->setupUi(this); ui->comboBox->insertItems(0, MspComms::getPortNames()); connect(ui->pushButton, SIGNAL(clicked()), this, SLOT(portSelected())); }
void PropertyPanel::comboPortSelected( int number ) { if(!component) return; std::list<ModulePort *>::iterator it; for( it = modulePorts.begin(); (it != modulePorts.end()) && number > 0; it++, number--) ; setSelectedPort( *it ); emit portSelected( *it ); }