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