score-addon-hardware/Hardware/Settings/View.hpp

34 lines
496 B
C++
Raw Normal View History

#pragma once
#include <score/plugins/settingsdelegate/SettingsDelegateView.hpp>
#include <Hardware/Settings/Model.hpp>
class QCheckBox;
namespace score
{
class FormWidget;
}
namespace Hardware
{
namespace Settings
{
class View : public score::GlobalSettingsView
{
W_OBJECT(View)
public:
View();
void setEnabled(bool);
void enabledChanged(bool b) W_SIGNAL(enabledChanged, b);
private:
QWidget* getWidget() override;
score::FormWidget* m_widg{};
QCheckBox* m_enabled{};
};
}
}