int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QMainWindow::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: updateAspectRatio(); break; case 1: settingsChanged(); break; case 2: fileCopy3Dto2D(); break; case 3: fileNew(); break; case 4: fileOpen(); break; case 5: fileSave(); break; case 6: checkAllRayFeatures(); break; case 7: uncheckAllRayFeatures(); break; case 8: filterImage(); break; case 9: renderImage(); break; case 10: activateCanvas2D(); break; case 11: activateCanvas3D(); break; default: ; } _id -= 12; } return _id; }
void VlcQmlVideoObject::updateBoundingRect() { _boundingRect = QRectF(0, 0, _frameSize.width(), _frameSize.height()); updateAspectRatio(); QSizeF scaledFrameSize = _boundingRect.size(); scaledFrameSize.scale(_geometry.size(), Qt::KeepAspectRatio); _boundingRect.setSize( scaledFrameSize ); updateCropRatio(); _boundingRect.moveCenter(_geometry.center()); }
void CameraComponent::onEvent(Event* e) { EventType type = e->getType(); switch (type) { case EVENT_SPLITSCREEN_CHANGED: updateAspectRatio(); break; case EVENT_START_DEATHMATCH: init(); default: break; } }
void BaseView::setRect(const int & x, const int & y) { m_rect.set(x, y); updateAspectRatio(x, y); }