mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-01 05:10:05 +00:00
Add specific dialog and setting for high privilege warning
This commit is contained in:
parent
71f967d536
commit
923dad4e2e
7 changed files with 274 additions and 18 deletions
40
scwx-qt/source/scwx/qt/ui/high_privilege_dialog.hpp
Normal file
40
scwx-qt/source/scwx/qt/ui/high_privilege_dialog.hpp
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
#pragma once
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
namespace Ui
|
||||
{
|
||||
class HighPrivilegeDialog;
|
||||
}
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace qt
|
||||
{
|
||||
namespace ui
|
||||
{
|
||||
|
||||
class HighPrivilegeDialogImpl;
|
||||
|
||||
class HighPrivilegeDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(HighPrivilegeDialog)
|
||||
|
||||
public:
|
||||
explicit HighPrivilegeDialog(QWidget* parent = nullptr);
|
||||
~HighPrivilegeDialog();
|
||||
|
||||
bool disable_high_privilege_message();
|
||||
|
||||
private:
|
||||
friend HighPrivilegeDialogImpl;
|
||||
std::unique_ptr<HighPrivilegeDialogImpl> p;
|
||||
Ui::HighPrivilegeDialog* ui;
|
||||
};
|
||||
|
||||
} // namespace ui
|
||||
} // namespace qt
|
||||
} // namespace scwx
|
||||
Loading…
Add table
Add a link
Reference in a new issue