mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-09-30 22:26:48 -05:00
GameCubePane: Use ConfigControls where applicable
This commit is contained in:
28
Source/Core/DolphinQt/Config/ConfigControls/ConfigUserPath.h
Normal file
28
Source/Core/DolphinQt/Config/ConfigControls/ConfigUserPath.h
Normal file
@@ -0,0 +1,28 @@
|
||||
// Copyright 2025 Dolphin Emulator Project
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QLineEdit>
|
||||
|
||||
#include "Common/Config/ConfigInfo.h"
|
||||
|
||||
#include "DolphinQt/Config/ConfigControls/ConfigText.h"
|
||||
|
||||
class ConfigUserPath final : public ConfigText
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
ConfigUserPath(const unsigned int dir_index, const Config::Info<std::string>& setting);
|
||||
ConfigUserPath(const unsigned int dir_index, const Config::Info<std::string>& setting,
|
||||
Config::Layer* layer);
|
||||
|
||||
protected:
|
||||
void OnConfigChanged() override;
|
||||
|
||||
private:
|
||||
void RefreshText();
|
||||
void Update();
|
||||
|
||||
const unsigned int m_dir_index;
|
||||
};
|
||||
Reference in New Issue
Block a user