You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
540 B
C
34 lines
540 B
C
1 year ago
|
#pragma once
|
||
|
|
||
|
#include <QDialog>
|
||
|
#include <QRegExp>
|
||
|
#include <QValidator>
|
||
|
|
||
|
namespace Ui {
|
||
|
class AuthorityDialog;
|
||
|
}
|
||
|
|
||
|
class AuthorityDialog : public QDialog
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
explicit AuthorityDialog(QWidget *parent = nullptr);
|
||
|
~AuthorityDialog();
|
||
|
|
||
|
bool isAuthorized(); // 验证是否授权
|
||
|
|
||
|
void show();
|
||
|
|
||
|
private slots:
|
||
|
void showEvent(QShowEvent *event) override;
|
||
|
//void resizeEvent(QResizeEvent *event) override;
|
||
|
|
||
|
private:
|
||
|
Ui::AuthorityDialog *ui;
|
||
|
|
||
|
QRegExp m_regExp;
|
||
|
QValidator *m_validator;
|
||
|
};
|
||
|
|