Ejemplo n.º 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();
    }
}
Ejemplo n.º 2
0
/*!
  Sets window width to a new \a width.

  \sa setWindowHeight, windowResized, forceSetWindowWidth, forceSetWindowHeight
  */
void CcfConfig::setWindowWidth(int width)
{
    mRuntimeWidth = width;
    emit windowHeightChanged();
}
Ejemplo n.º 3
0
void Controller::setWindowHeight(int height)
{
    engine.getRoomsManager()->setRoomSize(windowWidth(), height);
    emit windowHeightChanged();
}