Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fmp_home
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_home
Commits
c160abc6
Commit
c160abc6
authored
Apr 15, 2018
by
gujin.wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复窗口崩溃的bug
parent
676de7e5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
fmp_home_p.cpp
+10
-0
storeinfo.cpp
+4
-0
No files found.
fmp_home_p.cpp
View file @
c160abc6
...
@@ -196,6 +196,16 @@ void FMPHomePrivate::onMenuBtnClicked(QString btnName)
...
@@ -196,6 +196,16 @@ void FMPHomePrivate::onMenuBtnClicked(QString btnName)
}
}
return
;
return
;
}
else
if
(
btnName
==
"check"
){
}
else
if
(
btnName
==
"check"
){
FMPRedeemInterface
*
svcRedeem
=
FMP
::
GetService
<
FMPRedeemInterface
>
();
if
(
svcRedeem
)
{
svcRedeem
->
StartService
();
svcRedeem
->
ShowRedeemDetail
();
}
else
{
FMP_DEBUG
()
<<
"coupon service not available"
;
}
return
;
return
;
}
else
if
(
btnName
==
"tool"
)
{
}
else
if
(
btnName
==
"tool"
)
{
//svc = FMP::GetService<FMPSettingsInterface>();
//svc = FMP::GetService<FMPSettingsInterface>();
...
...
storeinfo.cpp
View file @
c160abc6
...
@@ -8,6 +8,7 @@ StoreInfo::StoreInfo(QWidget *parent) :
...
@@ -8,6 +8,7 @@ StoreInfo::StoreInfo(QWidget *parent) :
ui
(
new
Ui
::
StoreInfo
)
ui
(
new
Ui
::
StoreInfo
)
{
{
ui
->
setupUi
(
this
);
ui
->
setupUi
(
this
);
setAttribute
(
Qt
::
WA_QuitOnClose
,
false
);
setWindowFlags
(
windowFlags
()
|
Qt
::
FramelessWindowHint
|
Qt
::
WindowStaysOnTopHint
);
setWindowFlags
(
windowFlags
()
|
Qt
::
FramelessWindowHint
|
Qt
::
WindowStaysOnTopHint
);
connect
(
ui
->
closeBtn
,
SIGNAL
(
clicked
(
bool
)),
this
,
SLOT
(
close
()));
connect
(
ui
->
closeBtn
,
SIGNAL
(
clicked
(
bool
)),
this
,
SLOT
(
close
()));
connect
(
ui
->
cancelBtn
,
SIGNAL
(
clicked
(
bool
)),
this
,
SLOT
(
close
()));
connect
(
ui
->
cancelBtn
,
SIGNAL
(
clicked
(
bool
)),
this
,
SLOT
(
close
()));
...
@@ -17,6 +18,9 @@ StoreInfo::StoreInfo(QWidget *parent) :
...
@@ -17,6 +18,9 @@ StoreInfo::StoreInfo(QWidget *parent) :
QSettings
s
(
QApplication
::
applicationDirPath
()
+
"/FreemudPOS.ini"
,
QSettings
::
IniFormat
);
QSettings
s
(
QApplication
::
applicationDirPath
()
+
"/FreemudPOS.ini"
,
QSettings
::
IniFormat
);
ui
->
storeLabel
->
setText
(
s
.
value
(
"Home/StoreId"
).
toString
());
ui
->
storeLabel
->
setText
(
s
.
value
(
"Home/StoreId"
).
toString
());
ui
->
posLabel
->
setText
(
s
.
value
(
"Home/PosId"
).
toString
());
ui
->
posLabel
->
setText
(
s
.
value
(
"Home/PosId"
).
toString
());
QSettings
ver
(
QApplication
::
applicationDirPath
()
+
"/../update.ini"
,
QSettings
::
IniFormat
);
ui
->
companyLabel
->
setText
(
QString
::
fromLocal8Bit
(
"由非码提供技术支持 "
)
+
"V"
+
ver
.
value
(
"SoftInfo/version"
).
toString
());
}
}
StoreInfo
::~
StoreInfo
()
StoreInfo
::~
StoreInfo
()
...
...
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