예제 #1
0
/*!
  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();
    }
}
예제 #2
0
/*!
  Sets window height to a new \a height.

  \sa windowResized, setWindowWidth, forceSetWindowWidth, forceSetWindowHeight
  */
void CcfConfig::setWindowHeight(int height)
{
    mRuntimeHeight = height;
    emit windowWidthChanged();
}
예제 #3
0
void Controller::setWindowWidth(int width)
{
    engine.getRoomsManager()->setRoomSize(width, windowHeight());
    emit windowWidthChanged();
}