28 lines
514 B
C++
28 lines
514 B
C++
#ifndef SETTINGDIALOG_H
|
|
#define SETTINGDIALOG_H
|
|
|
|
#include <DDialog>
|
|
#include <DSwitchButton>
|
|
|
|
DWIDGET_USE_NAMESPACE
|
|
|
|
class SettingDialog : public DDialog {
|
|
Q_OBJECT
|
|
public:
|
|
SettingDialog(bool en, bool sel, bool cp, DDialog *parent = nullptr);
|
|
|
|
void setYoudaoEnabled(bool v);
|
|
void setSelEnabled(bool v);
|
|
void setCpEnabled(bool v);
|
|
|
|
signals:
|
|
void sigSelEnabled(bool v);
|
|
void sigCpEnabled(bool v);
|
|
void sigEnabled(bool v);
|
|
|
|
private:
|
|
DSwitchButton *swcp, *swsel, *swen;
|
|
};
|
|
|
|
#endif // SETTINGDIALOG_H
|