Commit 3891324e by xiaoqing.gu

1、添加新的登陆界面 2、修改新订单详情界面的配送时间问题

parent 928fddb8
......@@ -69,7 +69,8 @@ SOURCES += main.cpp \
view/ordertypeform.cpp \
view/orderoptform.cpp \
view/mainbtn.cpp \
view/newdetailform.cpp
view/newdetailform.cpp \
view/newloginform.cpp
HEADERS += \
event/fmapplication.h \
......@@ -114,7 +115,8 @@ HEADERS += \
view/ordertypeform.h \
view/orderoptform.h \
view/mainbtn.h \
view/newdetailform.h
view/newdetailform.h \
view/newloginform.h
DISTFILES += takeout.rc
......@@ -134,4 +136,5 @@ FORMS += \
view/ordertypeform.ui \
view/orderoptform.ui \
view/mainbtn.ui \
view/newdetailform.ui
view/newdetailform.ui \
view/newloginform.ui
......@@ -45,7 +45,11 @@ void NewDetailForm::InitData(OrderObject *orderObject, bool flag)
ui->customerInfoLb_dec->setText(QString::fromLocal8Bit("【%1】【<font color=red>%2</font>】").arg(orderObject->customer,
orderObject->phone));
ui->addressLb_dec->setText(QString::fromLocal8Bit("【%1】【%2】").arg(orderObject->address,orderObject->address));
ui->deliveryInfoLb_dec->setText(QString::fromLocal8Bit("【%1】【%2】").arg(orderObject->delivery_party,QDateTime::fromTime_t(orderObject->delivery_time).toString("yyyy-MM-dd hh:mm"));
QDateTime dTime = QDateTime::fromTime_t(orderObject->delivery_time);
QString timeStr = dTime.toString(QString::fromLocal8Bit("yyyy-MM-dd hh:mm"));
ui->deliveryInfoLb_dec->setText(QString::fromLocal8Bit("【%1】【%2】").arg(orderObject->delivery_party,timeStr));
QList<DiscountObject *> list = orderObject->disList;
QString disStr;
......
#include "newloginform.h"
#include "ui_newloginform.h"
#include "event/posevent.h"
#include "event/fmapplication.h"
#include "preDefine.h"
#include <QDebug>
#include <QVariantMap>
#include <QSettings>
#include <QsLog.h>
NewLoginForm::NewLoginForm(QWidget *parent) :
QDialog(parent),
ui(new Ui::NewLoginForm)
{
ui->setupUi(this);
is_login = false;
ui->label_logotitle_2->setText(QString::fromLocal8Bit("非码SaaS点餐小程序门店管理"));
connect(ui->lineEdit_account_2, &ClickedLineEdit::clicked, this, &NewLoginForm::GetCurrLineEdit);
connect(ui->lineEdit_partnerid_2, &ClickedLineEdit::clicked, this, &NewLoginForm::GetCurrLineEdit);
connect(ui->lineEdit_pwd_2, &ClickedLineEdit::clicked, this, &NewLoginForm::GetCurrLineEdit);
//connect(ui->lineEdit_posno_2, &ClickedLineEdit::clicked, this, &LoginForm::GetCurrLineEdit);
connect(ui->lineEdit_storeid_2, &ClickedLineEdit::clicked, this, &NewLoginForm::GetCurrLineEdit);
connect(ui->pushButton_10, &QPushButton::clicked, this, &NewLoginForm::number_btn_click);
connect(ui->pushButton_11, &QPushButton::clicked, this, &NewLoginForm::number_btn_click);
connect(ui->pushButton_12, &QPushButton::clicked, this, &NewLoginForm::number_btn_click);
connect(ui->pushButton_13, &QPushButton::clicked, this, &NewLoginForm::number_btn_click);
connect(ui->pushButton_14, &QPushButton::clicked, this, &NewLoginForm::number_btn_click);
connect(ui->pushButton_15, &QPushButton::clicked, this, &NewLoginForm::number_btn_click);
connect(ui->pushButton_16, &QPushButton::clicked, this, &NewLoginForm::number_btn_click);
connect(ui->pushButton_17, &QPushButton::clicked, this, &NewLoginForm::number_btn_click);
connect(ui->pushButton_18, &QPushButton::clicked, this, &NewLoginForm::number_btn_click);
connect(ui->pushButton_19, &QPushButton::clicked, this, &NewLoginForm::number_btn_click);
connect(ui->pushButton_clear_2, &QPushButton::clicked, this, &NewLoginForm::number_btn_click);
connect(ui->pushButton_del_2, &QPushButton::clicked, this, &NewLoginForm::number_btn_click);
_curr_lineedit = ui->lineEdit_partnerid_2;
_curr_lineedit->setFocus();
setWindowFlags(Qt::FramelessWindowHint);
m_alertForm = new AlertForm(this);
FMApplication::subscibeEvent(this, PosEvent::s_login_status);
FMApplication::subscibeEvent(this, PosEvent::s_opt_status);
FMApplication::subscibeEvent(this, PosEvent::s_show_login);
}
void NewLoginForm::onHideAlert()
{
m_alertForm->hide();
}
void NewLoginForm::onShowAlert(AlertForm::Type type, const QString &msg)
{
if(this->isVisible())
{
m_alertForm->SetContent(type, msg);
m_alertForm->show();
}
}
NewLoginForm::~NewLoginForm()
{
delete ui;
}
void NewLoginForm::SetStoreInfo()
{
QString configfile = qApp->applicationDirPath() + "/" + STOREINFO_NAME;
QString storeid = QSettings(configfile, QSettings::IniFormat).value(INI_BASE_STOREID).toString();
QString partnerid = QSettings(configfile, QSettings::IniFormat).value(INI_BASE_PARNETID).toString();
QString userid = QSettings(configfile, QSettings::IniFormat).value(INI_BASE_USERID).toString();
QString pwd = QSettings(configfile, QSettings::IniFormat).value(INI_BASE_PWD).toString();
QString stationid = QSettings(configfile, QSettings::IniFormat).value(INI_BASE_STATIONIID).toString();
if(storeid.isEmpty() || partnerid.isEmpty() || userid.isEmpty() || pwd.isEmpty() || stationid.isEmpty())
return ;
ui->lineEdit_partnerid_2->setText(partnerid);
ui->lineEdit_storeid_2->setText(storeid);
//ui->lineEdit_posno_2->setText(stationid);
ui->lineEdit_account_2->setText(userid);
ui->lineEdit_pwd_2->setText(pwd);
}
void NewLoginForm::showfull()
{
if(!is_login)
{
SetStoreInfo();
this->showFullScreen();
return ;
}
this->hide();
//emit showmainform();
DEFAULTPOSTEVENT(PosEvent::s_show_mainform, "");
}
bool NewLoginForm::event(QEvent *e)
{
if(e->type() == PosEvent::s_opt_status)
{
QVariantMap value;
GETEVENTINFO(value,e,QVariantMap);
if(value.contains(EVENT_KEY_ORDERSTATUS) && value[EVENT_KEY_ORDERSTATUS].toInt() == 0)
{
if(!this->isHidden())
onShowAlert(AlertForm::LOADING, value[EVENT_KEY_MSG].toString());
return true;
}
if(value.contains(EVENT_KEY_STATUS) && value[EVENT_KEY_STATUS].toBool() == false)
{
QLOG_INFO() << value[EVENT_KEY_MSG].toString();
if(!this->isHidden())
onShowAlert(AlertForm::ERROR, value[EVENT_KEY_MSG].toString());
}
else if(value.contains(EVENT_KEY_STATUS) && value[EVENT_KEY_STATUS].toBool() == true)
{
if(!this->isHidden())
onShowAlert(AlertForm::SUCCESS, value[EVENT_KEY_MSG].toString());
}
return true;
}
if(e->type() == PosEvent::s_show_login)
{
this->showfull();
return true;
}
if(e->type() == PosEvent::s_login_status)
{
QVariantMap value;
GETEVENTINFO(value,e,QVariantMap);
if(value.contains(EVENT_KEY_STATUS) && value[EVENT_KEY_STATUS].toBool() == false)
{
QLOG_INFO() << value[EVENT_KEY_MSG].toString();
if(!this->isHidden())
onShowAlert(AlertForm::ERROR, value[EVENT_KEY_MSG].toString());
}
else if(value.contains(EVENT_KEY_STATUS) && value[EVENT_KEY_STATUS].toBool() == true)
{
this->hide();
onHideAlert();
is_login -= true;
//emit showmainform();
DEFAULTPOSTEVENT(PosEvent::s_show_mainform, "");
}
return true;
}
return QDialog::event(e);
}
void NewLoginForm::GetCurrLineEdit()
{
_curr_lineedit = qobject_cast<ClickedLineEdit*>(sender());
}
void NewLoginForm::on_pushButton_login_2_clicked()
{
QVariantMap map;
if(ui->lineEdit_account_2->text().isEmpty() ||
ui->lineEdit_pwd_2->text().isEmpty() ||
ui->lineEdit_partnerid_2->text().isEmpty() ||
/*ui->lineEdit_posno_2->text().isEmpty() ||*/
ui->lineEdit_storeid_2->text().isEmpty() )
{
onShowAlert(AlertForm::ERROR, QString::fromLocal8Bit("商户号/门店号/POS编号/账号/密码均不能为空"));
return ;
}
map.insert(JSON_STOREID, ui->lineEdit_storeid_2->text());
// map.insert(JSON_STATIONID, ui->lineEdit_posno_2->text());
map.insert(JSON_KEY_USERID, ui->lineEdit_account_2->text());
map.insert(JSON_KEY_PWD, ui->lineEdit_pwd_2->text());
map.insert(JSON_KEY_PARTNERID, ui->lineEdit_partnerid_2->text());
POSTEVENTTYPE(PosEvent::s_login_storeinfo, map, QVariantMap);
}
void NewLoginForm::number_btn_click()
{
QPushButton *btn = qobject_cast<QPushButton*>(sender());
if(btn == ui->pushButton_clear_2)
{
_curr_lineedit->clear();
}
else if(btn == ui->pushButton_del_2)
{
QString text = _curr_lineedit->text();
_curr_lineedit->setText(text.left(text.size() - 1));
}
else
{
_curr_lineedit->setText(_curr_lineedit->text() + btn->property("number").toString());
}
}
void NewLoginForm::on_pushButton_close_clicked()
{
this->hide();
//emit showfloat();
DEFAULTPOSTEVENT(PosEvent::s_show_float, "");
}
#ifndef NEWLOGINFORM_H
#define NEWLOGINFORM_H
#include <QDialog>
#include <QVariantMap>
#include "clickedLineEdit.h"
#include "alertForm.h"
namespace Ui {
class NewLoginForm;
}
class NewLoginForm : public QDialog
{
Q_OBJECT
public:
explicit NewLoginForm(QWidget *parent = 0);
~NewLoginForm();
void showfull();
virtual bool event(QEvent *e);
void onShowAlert(AlertForm::Type type, const QString &msg);
void onHideAlert();
signals:
void showfloat();
void showmainform();
void login(QVariantMap storeinfo);
public slots:
void GetCurrLineEdit();
private slots:
void on_pushButton_login_2_clicked();
void number_btn_click();
void SetStoreInfo();
void on_pushButton_close_clicked();
private:
Ui::NewLoginForm *ui;
ClickedLineEdit *_curr_lineedit;
bool is_login;
// 通知窗口
AlertForm *m_alertForm;
};
#endif // NEWLOGINFORM_H
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>NewLoginForm</class>
<widget class="QDialog" name="NewLoginForm">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>600</height>
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
</property>
<property name="styleSheet">
<string notr="true">#NewLoginForm
{
image:url(:login_logo.png);
}
#widget
{
background-color: white;
border-radius:10px;
}
#label_logo_2
{
border-image: url(:login_logo.png);
}
#label_logotitle_2
{
font: 16pt &quot;微软雅黑&quot;;
color: #333333;
}
#label_title_2
{
font: 20pt &quot;微软雅黑&quot;;
color: #333333;
border-bottom: 1px solid #D9D9D9;
}
#label_partnerid_2,#label_account_2,#label_pwd_2,#label_storeid_2,#label_posno_2
{
font: 12pt &quot;微软雅黑&quot;;
color: #333333;
}
#lineEdit_partnerid_2,#lineEdit_account_2,#lineEdit_pwd_2,#lineEdit_storeid_2,#lineEdit_posno_2
{
font: 14pt &quot;微软雅黑&quot;;
color: #333333;
border: 1px solid #D9D9D9;
border-radius: 5px;
}
#pushButton_login_2
{
font: 16pt &quot;微软雅黑&quot;;
color: #ffffff;
background-color: rgb(255, 42, 42);
border-radius: 4px;
}
#pushButton_19,#pushButton_12,#pushButton_17,#pushButton_16,#pushButton_13,#pushButton_14
{
font: 17pt &quot;微软雅黑&quot;;
color: #000000;
background-color: #ffffff;
border: 1px solid #D9D9D9;
border-right-style: 0px;
border-bottom-style: 0px;
}
#pushButton_del_2
{
font: 14pt &quot;微软雅黑&quot;;
color: #000000;
background-color: #ffffff;
border: 1px solid #D9D9D9;
border-right-style: 0px;
}
#pushButton_11
{
font: 17pt &quot;微软雅黑&quot;;
color: #000000;
background-color: #ffffff;
border: 1px solid #D9D9D9;
border-right-style: 0px;
}
#pushButton_15,#pushButton_18,#pushButton_10
{
font: 17pt &quot;微软雅黑&quot;;
color: #000000;
background-color: #ffffff;
border: 1px solid #D9D9D9;
border-bottom-style: 0px;
}
#pushButton_clear_2
{
font: 14pt &quot;微软雅黑&quot;;
color: #000000;
background-color: #ffffff;
border: 1px solid #D9D9D9;
}
#pushButton_close
{
border-image: url(:error.png);
}
#checkBox_2
{
font: 9pt &quot;微软雅黑&quot;;
}
#checkBox_2::indicator:unchecked{
image:url(:login_logo.png);
}
#checkBox_2::indicator:checked{
image:url(:login_logo.png);
}
</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_8">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QWidget" name="widget_2" native="true">
<layout class="QHBoxLayout" name="horizontalLayout_22" stretch="19,0,1">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<spacer name="horizontalSpacer_7">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>711</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="pushButton_close">
<property name="minimumSize">
<size>
<width>50</width>
<height>50</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>50</width>
<height>50</height>
</size>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_29">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>33</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_23">
<property name="spacing">
<number>0</number>
</property>
<item>
<spacer name="horizontalSpacer_35">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QWidget" name="widget" native="true">
<property name="minimumSize">
<size>
<width>700</width>
<height>500</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>700</width>
<height>500</height>
</size>
</property>
<layout class="QVBoxLayout" name="verticalLayout_7">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<spacer name="verticalSpacer_6">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>23</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_5">
<property name="spacing">
<number>0</number>
</property>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_13">
<item>
<spacer name="horizontalSpacer_21">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="label_logo_2">
<property name="minimumSize">
<size>
<width>50</width>
<height>50</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>50</width>
<height>50</height>
</size>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_logotitle_2">
<property name="minimumSize">
<size>
<width>400</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>非码SaaS点餐小程序-门店管理</string>
</property>
<property name="textFormat">
<enum>Qt::AutoText</enum>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_22">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer_10">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Maximum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_14">
<item>
<spacer name="horizontalSpacer_23">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="label_title_2">
<property name="minimumSize">
<size>
<width>200</width>
<height>60</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>200</width>
<height>60</height>
</size>
</property>
<property name="text">
<string>门店登录</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_24">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer_7">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>22</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_21">
<property name="spacing">
<number>0</number>
</property>
<item>
<spacer name="horizontalSpacer_33">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_15">
<item>
<layout class="QVBoxLayout" name="verticalLayout_6">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_6">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label_partnerid_2">
<property name="text">
<string>商户号</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_8">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="ClickedLineEdit" name="lineEdit_partnerid_2">
<property name="minimumSize">
<size>
<width>230</width>
<height>40</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>230</width>
<height>40</height>
</size>
</property>
<property name="text">
<string/>
</property>
<property name="echoMode">
<enum>QLineEdit::Normal</enum>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_16">
<item>
<widget class="QLabel" name="label_storeid_2">
<property name="text">
<string>门店号</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_25">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="ClickedLineEdit" name="lineEdit_storeid_2">
<property name="minimumSize">
<size>
<width>230</width>
<height>40</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>230</width>
<height>40</height>
</size>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_17">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label_account_2">
<property name="text">
<string>账号</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_26">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="ClickedLineEdit" name="lineEdit_account_2">
<property name="minimumSize">
<size>
<width>230</width>
<height>40</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>230</width>
<height>40</height>
</size>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_18">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label_pwd_2">
<property name="text">
<string>密码</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_27">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="ClickedLineEdit" name="lineEdit_pwd_2">
<property name="minimumSize">
<size>
<width>230</width>
<height>40</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>230</width>
<height>40</height>
</size>
</property>
<property name="text">
<string/>
</property>
<property name="echoMode">
<enum>QLineEdit::Password</enum>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_19">
<item>
<spacer name="horizontalSpacer_28">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QCheckBox" name="checkBox_2">
<property name="minimumSize">
<size>
<width>230</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>230</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>下次默认自动登陆</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</item>
<item>
<spacer name="horizontalSpacer_32">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QGridLayout" name="gridLayout_2">
<property name="spacing">
<number>0</number>
</property>
<item row="4" column="2">
<widget class="QPushButton" name="pushButton_10">
<property name="minimumSize">
<size>
<width>75</width>
<height>50</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>75</width>
<height>50</height>
</size>
</property>
<property name="text">
<string>9</string>
</property>
<property name="number" stdset="0">
<string>9</string>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QPushButton" name="pushButton_11">
<property name="minimumSize">
<size>
<width>75</width>
<height>50</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>75</width>
<height>50</height>
</size>
</property>
<property name="text">
<string>0</string>
</property>
<property name="number" stdset="0">
<string>0</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QPushButton" name="pushButton_12">
<property name="minimumSize">
<size>
<width>75</width>
<height>50</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>75</width>
<height>50</height>
</size>
</property>
<property name="text">
<string>2</string>
</property>
<property name="number" stdset="0">
<string>2</string>
</property>
</widget>
</item>
<item row="5" column="2">
<widget class="QPushButton" name="pushButton_clear_2">
<property name="minimumSize">
<size>
<width>75</width>
<height>50</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>75</width>
<height>50</height>
</size>
</property>
<property name="text">
<string>清空</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QPushButton" name="pushButton_13">
<property name="minimumSize">
<size>
<width>75</width>
<height>50</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>75</width>
<height>50</height>
</size>
</property>
<property name="text">
<string>4</string>
</property>
<property name="number" stdset="0">
<string>4</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QPushButton" name="pushButton_14">
<property name="minimumSize">
<size>
<width>75</width>
<height>50</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>75</width>
<height>50</height>
</size>
</property>
<property name="text">
<string>7</string>
</property>
<property name="number" stdset="0">
<string>7</string>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QPushButton" name="pushButton_15">
<property name="minimumSize">
<size>
<width>75</width>
<height>50</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>75</width>
<height>50</height>
</size>
</property>
<property name="text">
<string>3</string>
</property>
<property name="number" stdset="0">
<string>3</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QPushButton" name="pushButton_16">
<property name="minimumSize">
<size>
<width>75</width>
<height>50</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>75</width>
<height>50</height>
</size>
</property>
<property name="text">
<string>8</string>
</property>
<property name="number" stdset="0">
<string>8</string>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QPushButton" name="pushButton_del_2">
<property name="minimumSize">
<size>
<width>75</width>
<height>50</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>75</width>
<height>50</height>
</size>
</property>
<property name="text">
<string>删除</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QPushButton" name="pushButton_17">
<property name="minimumSize">
<size>
<width>75</width>
<height>50</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>75</width>
<height>50</height>
</size>
</property>
<property name="text">
<string>5</string>
</property>
<property name="number" stdset="0">
<string>5</string>
</property>
</widget>
</item>
<item row="3" column="2">
<widget class="QPushButton" name="pushButton_18">
<property name="minimumSize">
<size>
<width>75</width>
<height>50</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>75</width>
<height>50</height>
</size>
</property>
<property name="text">
<string>6</string>
</property>
<property name="number" stdset="0">
<string>6</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QPushButton" name="pushButton_19">
<property name="minimumSize">
<size>
<width>75</width>
<height>50</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>75</width>
<height>50</height>
</size>
</property>
<property name="text">
<string>1</string>
</property>
<property name="autoDefault">
<bool>true</bool>
</property>
<property name="number" stdset="0">
<string>1</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="horizontalSpacer_34">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer_8">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>23</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_20">
<item>
<spacer name="horizontalSpacer_30">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="pushButton_login_2">
<property name="minimumSize">
<size>
<width>300</width>
<height>40</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>300</width>
<height>40</height>
</size>
</property>
<property name="text">
<string>登 录</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_31">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer_5">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>22</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_36">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer_11">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>45</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>ClickedLineEdit</class>
<extends>QLineEdit</extends>
<header location="global">view/clickedlineedit.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment