30 lines
519 B
C++
30 lines
519 B
C++
#ifndef AUTHVIEW_H
|
|
#define AUTHVIEW_H
|
|
|
|
#include <QDialog>
|
|
|
|
namespace Ui {
|
|
class AuthView;
|
|
}
|
|
|
|
class AuthView : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit AuthView(QWidget *parent = nullptr);
|
|
~AuthView();
|
|
|
|
// 检查授权,无权限时显示对话框,返回是否授权成功
|
|
static bool CheckAndShow(QWidget *parent = nullptr);
|
|
|
|
private slots:
|
|
void on_btnActivate_clicked();
|
|
void on_btnCopy_clicked();
|
|
|
|
private:
|
|
Ui::AuthView *ui;
|
|
};
|
|
|
|
#endif // AUTHVIEW_H
|