// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later #ifndef QT_COMMON_H #define QT_COMMON_H #include #include "core/core.h" #include #include namespace QtCommon { extern QObject *rootObject; extern Core::System *system; typedef std::function QtProgressCallback; Core::Frontend::WindowSystemType GetWindowSystemType(); Core::Frontend::EmuWindow::WindowSystemInfo GetWindowSystemInfo(QWindow *window); static inline void SetRootObject(QObject *parent) { rootObject = parent; } static inline void SetSystem(Core::System *newSystem) { system = newSystem; } const QString tr(const char *str); const QString tr(const std::string &str); } // namespace QtCommon #endif