mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2025-01-09 19:22:25 -08:00
c5a3642cb6
Makes comboboxes always correspond to the value of the setting they're modifying.
24 lines
690 B
C++
24 lines
690 B
C++
// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#include <map>
|
|
#include <memory>
|
|
#include <string>
|
|
#include <typeindex>
|
|
#include <utility>
|
|
#include <vector>
|
|
#include <QString>
|
|
|
|
class QWidget;
|
|
|
|
namespace ConfigurationShared {
|
|
using TranslationMap = std::map<u32, std::pair<QString, QString>>;
|
|
using ComboboxTranslations = std::vector<std::pair<u32, QString>>;
|
|
using ComboboxTranslationMap = std::map<std::type_index, ComboboxTranslations>;
|
|
|
|
std::unique_ptr<TranslationMap> InitializeTranslations(QWidget* parent);
|
|
|
|
std::unique_ptr<ComboboxTranslationMap> ComboboxEnumeration(QWidget* parent);
|
|
|
|
} // namespace ConfigurationShared
|