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
ae117074
Commit
ae117074
authored
Sep 04, 2018
by
gujin.wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
隐藏悬浮窗上的设置按钮
parent
c160abc6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
4 deletions
+11
-4
fmp_home_navwindow.cpp
+8
-1
fmp_home_p.cpp
+1
-1
res/MANIFEST.MF
+1
-1
storeinfo.ui
+1
-1
No files found.
fmp_home_navwindow.cpp
View file @
ae117074
...
@@ -179,6 +179,12 @@ void NavWindow::createMenuBtn(const QString &btnName, const QString &showName)
...
@@ -179,6 +179,12 @@ void NavWindow::createMenuBtn(const QString &btnName, const QString &showName)
emit
menuBtnClicked
(
btnName
);
emit
menuBtnClicked
(
btnName
);
});
});
//设置按钮不显示在悬浮窗上
if
(
btnName
==
"tool"
)
{
return
;
}
auto
btn
=
new
QPushButton
(
this
);
auto
btn
=
new
QPushButton
(
this
);
btn
->
setCursor
(
QCursor
(
Qt
::
PointingHandCursor
));
btn
->
setCursor
(
QCursor
(
Qt
::
PointingHandCursor
));
btn
->
addAction
(
action
);
btn
->
addAction
(
action
);
...
@@ -360,7 +366,8 @@ void NavWindow::timerEvent(QTimerEvent *)
...
@@ -360,7 +366,8 @@ void NavWindow::timerEvent(QTimerEvent *)
FMPRedeemInterface
*
svcRedeem
=
FMP
::
GetService
<
FMPRedeemInterface
>
();
FMPRedeemInterface
*
svcRedeem
=
FMP
::
GetService
<
FMPRedeemInterface
>
();
if
(
svcRedeem
)
if
(
svcRedeem
)
{
{
svcRedeem
->
StartService
();
if
(
svcRedeem
->
GetPluginState
()
!=
ctkPlugin
::
ACTIVE
)
svcRedeem
->
StartService
();
if
(
svcRedeem
->
IsRedeeming
()
==
false
)
if
(
svcRedeem
->
IsRedeeming
()
==
false
)
{
{
show
();
show
();
...
...
fmp_home_p.cpp
View file @
ae117074
...
@@ -50,7 +50,7 @@ int FMPHomePrivate::Init()
...
@@ -50,7 +50,7 @@ int FMPHomePrivate::Init()
// _navWindow->createMenuBtn("takeout", QString::fromLocal8Bit("非码外卖"));
// _navWindow->createMenuBtn("takeout", QString::fromLocal8Bit("非码外卖"));
_navWindow
->
createMenuBtn
(
"coupons"
,
QString
::
fromLocal8Bit
(
"码多多"
));
_navWindow
->
createMenuBtn
(
"coupons"
,
QString
::
fromLocal8Bit
(
"码多多"
));
_navWindow
->
createMenuBtn
(
"check"
,
QString
::
fromLocal8Bit
(
"核销详情"
));
_navWindow
->
createMenuBtn
(
"check"
,
QString
::
fromLocal8Bit
(
"核销详情"
));
//
_navWindow->createMenuBtn("tool", QString::fromLocal8Bit("设置"));
_navWindow
->
createMenuBtn
(
"tool"
,
QString
::
fromLocal8Bit
(
"设置"
));
_navWindow
->
show
();
_navWindow
->
show
();
connect
(
_navWindow
,
SIGNAL
(
menuBtnClicked
(
QString
)),
this
,
SLOT
(
onMenuBtnClicked
(
QString
)));
connect
(
_navWindow
,
SIGNAL
(
menuBtnClicked
(
QString
)),
this
,
SLOT
(
onMenuBtnClicked
(
QString
)));
...
...
res/MANIFEST.MF
View file @
ae117074
Plugin-SymbolicName: fmp.home
Plugin-SymbolicName: fmp.home
Plugin-Version: 0.1.0
Plugin-Version: 0.1.0
Plugin-Name: fmp.home
Plugin-Name: fmp.home
Plugin-Copyright: Freemud Ltd. Copyright (C) 2014-201
7
Plugin-Copyright: Freemud Ltd. Copyright (C) 2014-201
8
Plugin-Vendor: Freemud
Plugin-Vendor: Freemud
storeinfo.ui
View file @
ae117074
...
@@ -24,7 +24,7 @@ QLabel{
...
@@ -24,7 +24,7 @@ QLabel{
QLineEdit{
QLineEdit{
font-size:20px;
font-size:20px;
}
}
#softLabel
, #companyLabel
{
#softLabel{
font-size:15px;
font-size:15px;
}
}
#titleLabel{
#titleLabel{
...
...
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