Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
FMVip_LXJ
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhenfei.zhang
FMVip_LXJ
Commits
72318914
Commit
72318914
authored
Feb 21, 2017
by
NitefullWind
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 修复按Esc键关闭窗口后Task继续进行的bug.
parent
0b5a3989
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
FMVip_LXJ/windows/fmvipwnd.cpp
+11
-2
FMVip_LXJ/windows/fmvipwnd.h
+3
-1
No files found.
FMVip_LXJ/windows/fmvipwnd.cpp
View file @
72318914
#include "fmvipwnd.h"
#include <QDebug>
#
include
"fmvipwnd.h"
#include <QDesktopWidget>
#include <QPainter>
#include <QStyleOption>
#include <QJsonDocument>
#include <QKeyEvent>
#ifdef Q_OS_WIN
#include <windows.h>
#include <windowsx.h>
...
...
@@ -65,6 +65,15 @@ int FMVipWnd::exec()
return
QDialog
::
exec
();
}
void
FMVipWnd
::
keyPressEvent
(
QKeyEvent
*
e
)
{
if
(
e
->
key
()
==
Qt
::
Key_Escape
)
{
on_close_btn_clicked
();
}
else
{
QDialog
::
keyPressEvent
(
e
);
}
}
#ifdef Q_OS_WIN
//! Gui class member of platform
bool
FMVipWnd
::
nativeEvent
(
const
QByteArray
&
eventType
,
void
*
message
,
long
*
result
)
...
...
FMVip_LXJ/windows/fmvipwnd.h
View file @
72318914
#ifndef FMVIPWND_H
#
ifndef
FMVIPWND_H
#define FMVIPWND_H
#include <QDialog>
...
...
@@ -31,6 +31,8 @@ private:
protected
:
bool
_isBusy
;
Session
*
_session
;
void
keyPressEvent
(
QKeyEvent
*
e
);
#ifdef Q_OS_WIN
protected
:
bool
nativeEvent
(
const
QByteArray
&
eventType
,
void
*
message
,
long
*
result
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment