Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fmPOS
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
fmPOS
Commits
21bcb29c
Commit
21bcb29c
authored
Mar 06, 2017
by
NitefullWind
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 初始化d指针。 析构弹出的支付窗口。
parent
ccf44348
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
16 deletions
+15
-16
fmp_epay/fmp_epay.cpp
+1
-1
fmp_epay/fmp_epay_p.cpp
+12
-13
fmp_epay/fmp_epay_p.h
+2
-2
No files found.
fmp_epay/fmp_epay.cpp
View file @
21bcb29c
...
...
@@ -5,7 +5,7 @@ class ctkPluginContext;
FMPePay
::
FMPePay
(
ctkPluginContext
*
context
)
:
FMPePayInterface
(
context
),
_inited
(
false
),
d_ptr
(
new
FMPePayPrivate
)
d_ptr
(
new
FMPePayPrivate
(
this
)
)
{
FMPStartEventHandler
*
ste_handler
=
new
FMPStartEventHandler
(
_ctx
,
this
);
}
...
...
fmp_epay/fmp_epay_p.cpp
View file @
21bcb29c
...
...
@@ -9,20 +9,23 @@
#include "Dialog.h"
#include "qfmclient.h"
FMPePayPrivate
::
FMPePayPrivate
(
QObject
*
parent
)
:
QObject
(
parent
),
FMPePayPrivate
::
FMPePayPrivate
(
FMPePay
*
parent
)
:
q_ptr
(
parent
),
_fmClient
(
nullptr
),
_payDialog
(
nullptr
)
{
}
//FMPePayPrivate::~FMPePayPrivate()
//{
// if(_payDialog != nullptr) {
// delete _payDialog;
// }
//}
FMPePayPrivate
::~
FMPePayPrivate
()
{
if
(
_payDialog
!=
nullptr
)
{
delete
_payDialog
;
}
if
(
_fmClient
!=
nullptr
)
{
delete
_fmClient
;
}
}
//int FMPePayPrivate::StartService()
//{
...
...
@@ -55,10 +58,6 @@ void FMPePayPrivate::onShowPayWnd()
_fmClient
=
new
QFmClient
();
_fmClient
->
start
();
_payDialog
=
new
Dialog
();
_payDialog
->
show
();
}
else
{
delete
_payDialog
;
_payDialog
=
new
Dialog
();
_payDialog
->
show
();
}
_payDialog
->
show
();
}
fmp_epay/fmp_epay_p.h
View file @
21bcb29c
...
...
@@ -12,8 +12,8 @@ class FMPePayPrivate : public QObject
Q_OBJECT
Q_DECLARE_PUBLIC
(
FMPePay
)
public
:
explicit
FMPePayPrivate
(
QObject
*
parent
=
0
);
//
~FMPePayPrivate();
explicit
FMPePayPrivate
(
FMPePay
*
parent
);
~
FMPePayPrivate
();
// int StartService();
int
StopService
();
...
...
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