简短文件名
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
#include "warning.h"
|
||||
#include <QVBoxLayout>
|
||||
#include <QLabel>
|
||||
#include <QPushButton>
|
||||
#include "global.h"
|
||||
|
||||
WarningPage::WarningPage(AppContext* ctx, QWidget* parent)
|
||||
: BasePage(ctx, parent)
|
||||
{
|
||||
QVBoxLayout* root = new QVBoxLayout(this);
|
||||
root->addStretch(1);
|
||||
|
||||
QWidget* col = new QWidget(this);
|
||||
QVBoxLayout* lay = new QVBoxLayout(col);
|
||||
lay->setSpacing(40);
|
||||
lay->setAlignment(Qt::AlignHCenter);
|
||||
|
||||
QLabel* txt = label("密码输入有误,请重新输入", 26, C::DANGER, true, col);
|
||||
txt->setAlignment(Qt::AlignCenter);
|
||||
txt->setProperty("alert", true);
|
||||
startBlink(txt, "blink");
|
||||
lay->addWidget(txt);
|
||||
|
||||
QPushButton* retry = button("重新输入", "primary", col);
|
||||
retry->setFixedSize(220, 76);
|
||||
connect(retry, &QPushButton::clicked, this, [this]() { emit navigate(PageBoot); });
|
||||
lay->addWidget(retry, 0, Qt::AlignHCenter);
|
||||
|
||||
root->addWidget(col, 0, Qt::AlignHCenter);
|
||||
root->addStretch(1);
|
||||
}
|
||||
Reference in New Issue
Block a user