#include "tab_supervisor.h"#include "../../../client/settings/cache_settings.h"#include "../interface/pixel_map_generator.h"#include "../interface/widgets/server/user/user_list_manager.h"#include "../interface/widgets/server/user/user_list_widget.h"#include "../main.h"#include "api/archidekt/tab_archidekt.h"#include "api/edhrec/tab_edhrec_main.h"#include "tab_account.h"#include "tab_admin.h"#include "tab_deck_editor.h"#include "tab_deck_storage.h"#include "tab_game.h"#include "tab_home.h"#include "tab_logs.h"#include "tab_message.h"#include "tab_replays.h"#include "tab_room.h"#include "tab_server.h"#include "tab_visual_database_display.h"#include "visual_deck_editor/tab_deck_editor_visual.h"#include "visual_deck_editor/tab_deck_editor_visual_tab_widget.h"#include "visual_deck_storage/tab_deck_storage_visual.h"#include <QApplication>#include <QMessageBox>#include <QPainter>#include <QSystemTrayIcon>#include <libcockatrice/network/client/abstract/abstract_client.h>#include <libcockatrice/protocol/pb/event_game_joined.pb.h>#include <libcockatrice/protocol/pb/event_notify_user.pb.h>#include <libcockatrice/protocol/pb/event_user_message.pb.h>#include <libcockatrice/protocol/pb/game_event_container.pb.h>#include <libcockatrice/protocol/pb/room_commands.pb.h>#include <libcockatrice/protocol/pb/room_event.pb.h>#include <libcockatrice/protocol/pb/serverinfo_room.pb.h>#include <libcockatrice/protocol/pb/serverinfo_user.pb.h>Functions | |
| static void | checkAndTrigger (QAction *checkableAction, bool checked) |
|
static |
If the action is not in the target checked state, then set it to that state by triggering the action. If the action is already in the target checked state, then do nothing.
This allows us to programmatically trigger a QAction::triggered signal for a specific checked state.