def METHOD_NAME(self, groupName, window):
    """Save the window settings to this settings object
    :param qt.QSettings settings: Initialized settings
    """
    settings = self.__settings
    if settings is None:
        _logger.debug("Settings not set")
        return
    isFullScreen = bool(window.windowState() & qt.Qt.WindowFullScreen)
    if isFullScreen:
        # show in normal to catch the normal geometry
        window.showNormal()
    settings.beginGroup(groupName)
    settings.setValue("size", window.size())
    settings.setValue("pos", window.pos())
    settings.setValue("full-screen", isFullScreen)
    settings.endGroup()
    if isFullScreen:
        window.showFullScreen()