/*! Updates runtime window dimensions, and emits relevant signals to propagate\ that information. \sa setWindowHeight, setWindowWidth, forceSetWindowWidth, forceSetWindowHeight */ void CcfConfig::windowResized(QSize newSize) { if (getWindowWidth() != newSize.width() || getWindowHeight() != newSize.height()) { mRuntimeHeight = newSize.height(); mRuntimeWidth = newSize.width(); emit windowWidthChanged(); emit windowHeightChanged(); } }
/*! Sets window height to a new \a height. \sa windowResized, setWindowWidth, forceSetWindowWidth, forceSetWindowHeight */ void CcfConfig::setWindowHeight(int height) { mRuntimeHeight = height; emit windowWidthChanged(); }
void Controller::setWindowWidth(int width) { engine.getRoomsManager()->setRoomSize(width, windowHeight()); emit windowWidthChanged(); }