// Copyright 2017 Dolphin Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later #pragma once #include #include #include #include "DolphinQt/Config/ToolTipControls/ToolTipComboBox.h" #include "Common/Config/Config.h" class ConfigChoice : public ToolTipComboBox { Q_OBJECT public: ConfigChoice(const QStringList& options, const Config::Info& setting); private: void Update(int choice); Config::Info m_setting; }; class ConfigStringChoice : public ToolTipComboBox { Q_OBJECT public: ConfigStringChoice(const std::vector& options, const Config::Info& setting); ConfigStringChoice(const std::vector>& options, const Config::Info& setting); private: void Connect(); void Update(int index); void Load(); Config::Info m_setting; bool m_text_is_data = false; };