mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-08-19 22:47:10 +00:00
feb8c5f88e
Ported from QML branch. Main "big" change is that EmuThread is now a shared state in QtCommon, not individually managed/passed around by GRenderWindow and MainWindow. Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3916 Reviewed-by: Lizzie <lizzie@eden-emu.dev> Reviewed-by: MaranBr <maranbr@eden-emu.dev>
37 lines
1.2 KiB
C++
37 lines
1.2 KiB
C++
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
// SPDX-FileCopyrightText: 2015 Citra Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <QFont>
|
|
#include <QString>
|
|
#include "common/uuid.h"
|
|
|
|
/// Returns a QFont object appropriate to use as a monospace font for debugging widgets, etc.
|
|
[[nodiscard]] QFont GetMonospaceFont();
|
|
|
|
/// Convert a size in bytes into a readable format (KiB, MiB, etc.)
|
|
[[nodiscard]] QString ReadableByteSize(qulonglong size);
|
|
|
|
/**
|
|
* Creates a circle pixmap from a specified color
|
|
* @param color The color the pixmap shall have
|
|
* @return QPixmap circle pixmap
|
|
*/
|
|
[[nodiscard]] QPixmap CreateCirclePixmapFromColor(const QColor& color);
|
|
|
|
/**
|
|
* Prompt the user for a profile ID. If there is only one valid profile, returns that profile.
|
|
* @return The selected profile, or an std::nullopt if none were selected
|
|
*/
|
|
const std::optional<Common::UUID> GetProfileID();
|
|
|
|
/**
|
|
* Prompt the user for a profile ID. If there is only one valid profile, returns that profile.
|
|
* @return A string representation of the selected profile, or an empty string if none were seleeced
|
|
*/
|
|
std::string GetProfileIDString();
|