//TabInstr extends QWidget
//idRing is of a type the extends QComboBox
void TabInstr::createConnections(void)
{
connect(idRing, SIGNAL(currentIndexChanged(int)), this, SLOT(sendNewInst()));
connect(idRing,
SIGNAL(currentIndexChanged
(QString)),
this,
SLOT(updateInfoBox
(QString)));
....
}
void TabInstr::sendNewInst()
{
QString temp
= idRing
->currentText
();
emit instrChanged(temp);
return;
}
//instInfoMap is of type QMap
//infoBox is of a type that extends QLineEdit
void TabInstr
::updateInfoBox(QString address
) {
infoBox->setText(instInfoMap[address]);
return;
}
//from generated moc file
// SIGNAL 0
void TabInstr
::instrChanged(QString _t1
) {
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
}
//TabInstr extends QWidget
//idRing is of a type the extends QComboBox
void TabInstr::createConnections(void)
{
connect(idRing, SIGNAL(currentIndexChanged(int)), this, SLOT(sendNewInst()));
connect(idRing, SIGNAL(currentIndexChanged(QString)), this, SLOT(updateInfoBox(QString)));
....
}
void TabInstr::sendNewInst()
{
QString temp = idRing->currentText();
emit instrChanged(temp);
return;
}
//instInfoMap is of type QMap
//infoBox is of a type that extends QLineEdit
void TabInstr::updateInfoBox(QString address)
{
infoBox->setText(instInfoMap[address]);
return;
}
//from generated moc file
// SIGNAL 0
void TabInstr::instrChanged(QString _t1)
{
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
QMetaObject::activate(this, &staticMetaObject, 0, _a);
}
To copy to clipboard, switch view to plain text mode
Bookmarks