Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fmp_epay
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
fmp_epay
Commits
fb9e8e23
Commit
fb9e8e23
authored
Oct 27, 2017
by
刘帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
linux下编译运行通过
parent
868048a7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
3 deletions
+21
-3
fmp_epay.pro
+11
-1
fmp_epayview_dialog.cpp
+5
-0
fmp_epayview_focuslineedit.h
+4
-1
version.h
+1
-1
No files found.
fmp_epay.pro
View file @
fb9e8e23
...
...
@@ -53,7 +53,13 @@ unix {
#Target name
VER
=
$$
system
(
$$
PWD
/../
fmprc
.
bat
$$
TARGET
)
ORIGIN_TARGET
=
$$
TARGET
TARGET
=
$$
{
TARGET
}
_
$$
{
VER
}
win32
{
TARGET
=
$$
{
TARGET
}
_
$$
{
VER
}
}
else
{
TARGET
=
$$
{
TARGET
}
}
#Header path
INCLUDEPATH
+=
$$
PWD
/../
include
/
ctk
\
...
...
@@ -67,7 +73,11 @@ LIBS += -lws2_32 -luser32
CONFIG
(
debug
,
debug
|
release
)
{
#
Linking
library
win32
{
LIBS
+=
-
lCTKCored
-
lCTKPluginFrameworkd
-
lfmcrypt
-
lws2_32
-
lDbgHelp
}
else
{
LIBS
+=
-
lCTKCore
-
lCTKPluginFramework
}
#
Destination
path
DESTDIR
=
$$
PWD
/../
debug
/
plugins
}
else
{
...
...
fmp_epayview_dialog.cpp
View file @
fb9e8e23
...
...
@@ -16,7 +16,9 @@
#include <QSqlTableModel>
#include <QStyledItemDelegate>
#include <QMouseEvent>
#ifdef WIN32
#include <Windows.h>
#endif
#include <QDesktopWidget>
#include <QStandardItemModel>
#include <QPropertyAnimation>
...
...
@@ -251,6 +253,7 @@ void FMPPayDialog::setTableHeader()
void
FMPPayDialog
::
show
()
{
_api_force_close
=
false
;
#ifdef WIN32
showNormal
();
HWND
hForeWnd
=
::
GetForegroundWindow
();
DWORD
dwForeID
=
::
GetWindowThreadProcessId
(
hForeWnd
,
NULL
);
...
...
@@ -268,6 +271,8 @@ void FMPPayDialog::show()
QDesktopWidget
w
;
QRect
rc
=
w
.
availableGeometry
();
setGeometry
((
rc
.
width
()
-
width
())
/
2
,
(
rc
.
height
()
-
height
())
/
2
,
width
(),
height
());
#else
#endif
return
QDialog
::
show
();
}
...
...
fmp_epayview_focuslineedit.h
View file @
fb9e8e23
...
...
@@ -15,8 +15,11 @@ signals:
void
focusIn
();
protected
:
#ifdef WIN32
void
FMPFocusLineEdit
::
focusInEvent
(
QFocusEvent
*
e
)
#else
void
focusInEvent
(
QFocusEvent
*
e
)
#endif
{
QLineEdit
::
focusInEvent
(
e
);
emit
focusIn
();
...
...
version.h
View file @
fb9e8e23
...
...
@@ -5,7 +5,7 @@
#define VER_MINOR 1
#define VER_REVISION 0
#define VER_BUILD
19
#define VER_BUILD
23
//! Convert version numbers to string
#define _STR(S) #S
...
...
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