def METHOD_NAME(self, groupName, window):
    """Restore the window settings using this settings object
    :param qt.QSettings settings: Initialized settings
    """
    settings = self.__settings
    if settings is None:
        _logger.debug("Settings not set")
        return
    settings.beginGroup(groupName)
    size = settings.value("size", qt.QSize())
    pos = settings.value("pos", qt.QPoint())
    isFullScreen = settings.value("full-screen", False)
    try:
        if not isinstance(isFullScreen, bool):
            isFullScreen = stringutil.to_bool(isFullScreen)
    except ValueError:
        isFullScreen = False
    settings.endGroup()
    if not pos.isNull():
        window.move(pos)
    if not size.isNull():
        window.resize(size)
    if isFullScreen:
        window.showFullScreen()