Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sbkpay
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
sbkpay
Commits
caacb832
Commit
caacb832
authored
Jan 05, 2018
by
NitefullWind
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 不设置可移动区域。 2. 删除一些无用代码。
parent
ff979b36
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
10 deletions
+3
-10
sbkpay/fmp_window.h
+2
-1
sbkpay/hostwidget.cpp
+1
-7
sbkpay/hostwidget.h
+0
-2
No files found.
sbkpay/fmp_window.h
View file @
caacb832
...
...
@@ -124,7 +124,8 @@ protected:
bool
fOnResizeBorder
=
false
;
//! Test caption area
QRegion
m_children_region
(
0
,
0
,
width
()
-
54
,
60
);
// QRegion m_children_region(0, 0, width() - 54, 60);
QRegion
m_children_region
(
0
,
0
,
width
()
-
54
,
0
);
QRegion
new_region
=
m_children_region
.
translated
(
window_rect
.
x
()
,
window_rect
.
y
());
if
(
new_region
.
contains
(
mouse_pos
))
{
//! Title regions contains the mouse position, treat it as caption area
...
...
sbkpay/hostwidget.cpp
View file @
caacb832
...
...
@@ -12,8 +12,7 @@
HostWidget
::
HostWidget
(
QWidget
*
parent
)
:
FMPWindow
(
parent
),
ui
(
new
Ui
::
HostWidget
),
_paymentMethodBtns
(
new
QButtonGroup
(
this
))
ui
(
new
Ui
::
HostWidget
)
{
ui
->
setupUi
(
this
);
...
...
@@ -62,10 +61,6 @@ HostWidget::HostWidget(QWidget *parent) :
//ui->tableWidget->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch);
ui
->
tableWidget
->
verticalHeader
()
->
setDefaultSectionSize
(
45
);
_paymentMethodBtns
->
setExclusive
(
true
);
connect
(
_paymentMethodBtns
,
SIGNAL
(
buttonToggled
(
QAbstractButton
*
,
bool
)),
this
,
SLOT
(
onPaymentMethodBtnsToggled
(
QAbstractButton
*
,
bool
)));
}
void
HostWidget
::
ShowWidget
(
QWidget
*
showwidget
)
...
...
@@ -157,7 +152,6 @@ HostWidget::~HostWidget()
delete
_label_pay_timer
;
_label_pay_timer
=
NULL
;
}
delete
_paymentMethodBtns
;
}
void
HostWidget
::
keyPressEvent
(
QKeyEvent
*
ke
)
...
...
sbkpay/hostwidget.h
View file @
caacb832
...
...
@@ -120,8 +120,6 @@ private:
QMovie
*
_label_pay_movie
;
QButtonGroup
*
_paymentMethodBtns
;
int
_line
;
bool
_need_exit
;
...
...
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