// Copyright 2019 Dolphin Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later #pragma once #include #include #include "DolphinQt/Config/ConfigControls/ConfigControl.h" #include "DolphinQt/Config/ToolTipControls/ToolTipSpinBox.h" #include "Common/Config/ConfigInfo.h" class ConfigInteger final : public ConfigControl { Q_OBJECT public: ConfigInteger(int minimum, int maximum, const Config::Info& setting, int step = 1); ConfigInteger(int minimum, int maximum, const Config::Info& setting, Config::Layer* layer, int step = 1); void Update(int value); protected: void OnConfigChanged() override; private: const Config::Info m_setting; }; class ConfigIntegerLabel final : public QLabel { Q_OBJECT public: ConfigIntegerLabel(const QString& text, ConfigInteger* widget); private: QPointer m_widget; };