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
cb590a00
Commit
cb590a00
authored
Oct 18, 2019
by
刘帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
仅支付
parent
9338109c
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
6 deletions
+10
-6
fmp_home_navwindow.cpp
+8
-5
fmp_home_navwindow.h
+1
-0
res/img/fm-icon_01.png
+0
-0
res/img/fm-icon_02.png
+0
-0
version.h
+1
-1
No files found.
fmp_home_navwindow.cpp
View file @
cb590a00
...
@@ -35,11 +35,11 @@ NavWindow::NavWindow(QWidget *parent) :
...
@@ -35,11 +35,11 @@ NavWindow::NavWindow(QWidget *parent) :
connect
(
this
,
SIGNAL
(
startBlink
()),
ui
->
navMainBtn
,
SLOT
(
start
()));
connect
(
this
,
SIGNAL
(
startBlink
()),
ui
->
navMainBtn
,
SLOT
(
start
()));
connect
(
this
,
SIGNAL
(
stopBlink
()),
ui
->
navMainBtn
,
SLOT
(
stop
()));
connect
(
this
,
SIGNAL
(
stopBlink
()),
ui
->
navMainBtn
,
SLOT
(
stop
()));
btns
.
push_back
(
std
::
make_pair
(
"payment"
,
QString
::
fromLocal8Bit
(
"非码支付"
)));
//
btns.push_back(std::make_pair("payment", QString::fromLocal8Bit("非码支付")));
//btns.push_back(std::make_pair("vip", QString::fromLocal8Bit("非码会员")));
//btns.push_back(std::make_pair("vip", QString::fromLocal8Bit("非码会员")));
//btns.push_back(std::make_pair("takeout", QString::fromLocal8Bit("非码外卖")));
//btns.push_back(std::make_pair("takeout", QString::fromLocal8Bit("非码外卖")));
//
btns.push_back(std::make_pair("coupons", QString::fromLocal8Bit("码多多")));
//
btns.push_back(std::make_pair("coupons", QString::fromLocal8Bit("码多多")));
btns
.
push_back
(
std
::
make_pair
(
"tool"
,
QString
::
fromLocal8Bit
(
"设置"
)));
//
btns.push_back(std::make_pair("tool", QString::fromLocal8Bit("设置")));
MenuUiProp
.
distance
=
100
;
MenuUiProp
.
distance
=
100
;
MenuUiProp
.
beginAngle
=
-
(
PI
/
2
);
MenuUiProp
.
beginAngle
=
-
(
PI
/
2
);
...
@@ -72,7 +72,7 @@ NavWindow::NavWindow(QWidget *parent) :
...
@@ -72,7 +72,7 @@ NavWindow::NavWindow(QWidget *parent) :
connect
(
ui
->
navMainBtn
,
SIGNAL
(
moved
(
QPoint
)),
this
,
SLOT
(
onMoved
(
QPoint
)));
connect
(
ui
->
navMainBtn
,
SIGNAL
(
moved
(
QPoint
)),
this
,
SLOT
(
onMoved
(
QPoint
)));
connect
(
this
,
SIGNAL
(
qcodeReceived
(
QString
)),
this
,
SLOT
(
onPayDialogAutoShow
(
QString
)));
//zxj触发弹出支付窗口
connect
(
this
,
SIGNAL
(
qcodeReceived
(
QString
)),
this
,
SLOT
(
onPayDialogAutoShow
(
QString
)));
//zxj触发弹出支付窗口
connect
(
this
,
SIGNAL
(
navImageChanged
()),
this
,
SLOT
(
onNavImageChanged
()));
connect
(
this
,
SIGNAL
(
navImageChanged
()),
this
,
SLOT
(
onNavImageChanged
()));
connect
(
ui
->
navMainBtn
,
SIGNAL
(
clicked
(
bool
)),
this
,
SLOT
(
onOnlyPayment
()));
ui
->
navMainBtn
->
setFocus
();
//设置默认焦点
ui
->
navMainBtn
->
setFocus
();
//设置默认焦点
ui
->
navMainBtn
->
setDefault
(
true
);
ui
->
navMainBtn
->
setDefault
(
true
);
...
@@ -405,4 +405,7 @@ void NavWindow::showMessage(const QString &title, const QString &msg, QSystemTra
...
@@ -405,4 +405,7 @@ void NavWindow::showMessage(const QString &title, const QString &msg, QSystemTra
_systemTrayIcon
->
showMessage
(
title
,
msg
,
icon
,
mecs
);
_systemTrayIcon
->
showMessage
(
title
,
msg
,
icon
,
mecs
);
}
}
void
NavWindow
::
onOnlyPayment
()
{
emit
menuBtnClicked
(
"payment"
);
}
fmp_home_navwindow.h
View file @
cb590a00
...
@@ -120,6 +120,7 @@ private slots:
...
@@ -120,6 +120,7 @@ private slots:
void
onMoved
(
QPoint
point
);
void
onMoved
(
QPoint
point
);
void
onNavImageChanged
();
void
onNavImageChanged
();
void
onPayDialogAutoShow
(
QString
code
);
void
onPayDialogAutoShow
(
QString
code
);
void
onOnlyPayment
();
//针对只有支付功能 点击悬浮按钮直接弹出收银窗口
private
:
private
:
Ui
::
NavWindow
*
ui
;
Ui
::
NavWindow
*
ui
;
...
...
res/img/fm-icon_01.png
View replaced file @
9338109c
View file @
cb590a00
10.7 KB
|
W:
|
H:
6.99 KB
|
W:
|
H:
2-up
Swipe
Onion skin
res/img/fm-icon_02.png
View replaced file @
9338109c
View file @
cb590a00
3.8 KB
|
W:
|
H:
5.98 KB
|
W:
|
H:
2-up
Swipe
Onion skin
version.h
View file @
cb590a00
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
#define VER_MINOR 1
#define VER_MINOR 1
#define VER_REVISION 0
#define VER_REVISION 0
#define VER_BUILD 2
1
#define VER_BUILD 2
4
//! Convert version numbers to string
//! Convert version numbers to string
#define _STR(S) #S
#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