int ChoiceBinding::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = DataBinding::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: intChanged((*reinterpret_cast< int(*)>(_a[1]))); break; default: ; } _id -= 1; } return _id; }
int FloatBinding::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = DataBinding::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: updateInt((*reinterpret_cast< int(*)>(_a[1]))); break; case 1: updateString((*reinterpret_cast< QString(*)>(_a[1]))); break; case 2: intChanged((*reinterpret_cast< int(*)>(_a[1]))); break; case 3: stringChanged((*reinterpret_cast< QString(*)>(_a[1]))); break; default: ; } _id -= 4; } return _id; }
CamTab::CamTab(CamSettings * set, QWidget *parent) : QWidget(parent) { settings = set; createMainLayout(); QString suffix(settings->getExt()); suffix.prepend("*."); frameList = QDir(settings->getDir()).entryInfoList(QStringList(suffix), QDir::Files, QDir::Name); if (!frameList.isEmpty()) { currentFile = frameList.last().absoluteFilePath(); updateViewPort(); } timer = new QTimer(this); connect(&manager, SIGNAL(finished(QNetworkReply*)), SLOT(downloadFinished(QNetworkReply*))); connect(timer, SIGNAL(timeout()), this, SLOT(execute())); connect(settings, SIGNAL(intChanged()), this, SLOT(updateInterval())); }