Commit c03b2439 by NitefullWind

1. 修复按Alt+F4关闭窗口后卡死问题。 2. 按Ecs可关闭窗口。

parent 68b29731
......@@ -4,7 +4,9 @@
#include "fmp_epay.h"
#include <QObject>
#include <QFuture>
#include <QFutureWatcher>
#include <QJsonObject>
#include <QEventLoop>
class FMPPayDialog;
class FMPSettingsInterface;
......@@ -59,7 +61,6 @@ private:
void clearorder();
signals:
void apiError();
void apiFinish();
void error(QString errormsg);
void finished(QJsonObject json);
......@@ -74,8 +75,6 @@ public:
FMPSettingsInterface *_setting;
FMPNetworkInterface *_network;
private:
QJsonObject _origin_request;
QJsonObject _docked_request;
......@@ -83,6 +82,7 @@ private:
QJsonObject _docked_response;
bool _is_api;
bool _api_abort;
bool _reverse_flag;
static unsigned int s_ClientReqCount;
......
......@@ -50,6 +50,7 @@ public slots:
void setBasicInfo(QVariantHash basicinfo);
protected:
void keyPressEvent(QKeyEvent *);
void mousePressEvent(QMouseEvent *);
......@@ -83,6 +84,7 @@ private slots:
void on_lineEdit_textChanged(const QString &arg1);
void reject();
public:
void setPayView();
......
......@@ -2841,9 +2841,9 @@ QHeaderView::section {
</layout>
</widget>
<zorder>wdg_success_main</zorder>
<zorder>wdg_pay_main</zorder>
<zorder>wdg_refund_main</zorder>
<zorder>wdg_query_main</zorder>
<zorder>wdg_pay_main</zorder>
</widget>
</item>
<item>
......
......@@ -13,7 +13,7 @@ FMPPayWait::FMPPayWait(QWidget *parent) : QDialog(parent), ui(new Ui::FMPPayWait
ui->widget->setWindowOpacity(1);
setGeometry(parent->geometry());
this->move(parent->pos());
setWindowFlags(Qt::FramelessWindowHint| Qt::Tool );
setWindowFlags(windowFlags() | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint);
connect(ui->btn_confirm, &QPushButton::clicked, this, &FMPPayWait::accept);
......
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