DolphinQ: Mapping UI cleanups.

This commit is contained in:
Jordan Woyak
2019-03-14 20:27:49 -05:00
parent 011ecd92e8
commit 9cb17b062c
16 changed files with 185 additions and 224 deletions

View File

@ -35,6 +35,8 @@ class Device;
}
} // namespace ciface
constexpr int INDICATOR_UPDATE_FREQ = 30;
class MappingWidget : public QWidget
{
Q_OBJECT
@ -42,7 +44,6 @@ public:
explicit MappingWidget(MappingWindow* window);
ControllerEmu::EmulatedController* GetController() const;
std::shared_ptr<ciface::Core::Device> GetDevice() const;
MappingWindow* GetParent() const;
@ -53,7 +54,9 @@ public:
virtual void SaveSettings() = 0;
virtual InputConfig* GetConfig() = 0;
signals:
void Update();
void ConfigChanged();
protected:
int GetPort() const;
@ -62,8 +65,5 @@ protected:
private:
MappingWindow* m_parent;
bool m_first = true;
std::vector<MappingBool*> m_bools;
std::vector<MappingRadio*> m_radio;
std::vector<MappingButton*> m_buttons;
std::vector<MappingNumeric*> m_numerics;
};