lolautoaccept/include/stagesettings.h

42 lines
859 B
C
Raw Normal View History

2022-04-21 00:47:57 +02:00
#ifndef STAGESETTINGS_H
#define STAGESETTINGS_H
#include <QWidget>
namespace Ui {
class StageSettings;
}
class StageSettings : public QWidget {
Q_OBJECT
Q_PROPERTY(QString name READ getName WRITE setName)
Q_PROPERTY(bool state READ getState WRITE setState NOTIFY toggled)
Q_PROPERTY(QString champion READ getChampion WRITE setChampion NOTIFY championChanged)
public:
explicit StageSettings(QWidget *parent = nullptr);
~StageSettings();
QString getName() const;
void setName(const QString& n);
bool getState() const;
void setState(bool);
QString getChampion() const;
void setChampion(const QString& str);
private slots:
void championChangedinternal(const QString& str);
void toggledinternal(int state);
signals:
void toggled(bool);
void championChanged(const QString&);
private:
Ui::StageSettings *ui;
};
#endif // STAGESETTINGS_H