예제 #1
0
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()));
}
예제 #2
0
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 );
}