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
9c3ad5fe
Commit
9c3ad5fe
authored
Mar 29, 2017
by
LIDINGDA\ldd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.界面调整
parent
a64ce3fc
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
6 deletions
+36
-6
fmp_epay/fmp_database.cpp
+0
-2
fmp_epay/fmp_epayview_dialog.cpp
+28
-2
fmp_epay/fmp_epayview_dialog.h
+6
-0
fmp_epay/fmp_epayview_dialog.ui
+0
-0
fmp_epay/fmp_epayview_wait.cpp
+1
-1
fmp_epay/fmp_epayview_wait.ui
+1
-1
No files found.
fmp_epay/fmp_database.cpp
View file @
9c3ad5fe
...
...
@@ -46,8 +46,6 @@ bool FMPDataBase::dlt(QString table, QString condition)
bool
flag
=
query
.
exec
(
sql
);
FMP_INFO
(
_logger
)
<<
"000000000000000000000 "
<<
sql
;
if
(
!
flag
)
FMP_WARN
(
_logger
)
<<
query
.
lastError
();
...
...
fmp_epay/fmp_epayview_dialog.cpp
View file @
9c3ad5fe
...
...
@@ -9,6 +9,7 @@
#include <fmp_logger_i.h>
#include <QSqlTableModel>
#include <QStyledItemDelegate>
#include <QMouseEvent>
#include <QPropertyAnimation>
...
...
@@ -22,7 +23,9 @@ FMPPayDialog::FMPPayDialog(FMPePayPrivate *control, FMPLoggerInterface *logger,
ui
->
setupUi
(
this
);
ui
->
label_date
->
setText
(
QString
::
fromLocal8Bit
(
"营业日:"
)
+
basicinfo
[
FMP_EPAY_BUSINESSDATE
].
toString
());
_b_mouse_pressed
=
false
;
ui
->
label_date
->
setText
(
QString
::
fromLocal8Bit
(
"当前营业日 : "
)
+
basicinfo
[
FMP_EPAY_BUSINESSDATE
].
toString
());
ui
->
label_storeid
->
setText
(
QString
::
fromLocal8Bit
(
"门店号:"
)
+
basicinfo
[
FMP_EPAY_STOREID
].
toString
());
ui
->
label_posno
->
setText
(
QString
::
fromLocal8Bit
(
"POS编号:"
)
+
basicinfo
[
FMP_EPAY_STATIONID
].
toString
());
ui
->
label_optid
->
setText
(
QString
::
fromLocal8Bit
(
"操作员:"
)
+
basicinfo
[
FMP_EPAY_OPERATORID
].
toString
());
...
...
@@ -258,9 +261,32 @@ void FMPPayDialog::onSelectionChanged(QModelIndex idx)
}
}
void
FMPPayDialog
::
keyPressEvent
(
QKeyEvent
*
)
void
FMPPayDialog
::
keyPressEvent
(
QKeyEvent
*
e
)
{
}
void
FMPPayDialog
::
mousePressEvent
(
QMouseEvent
*
event
)
{
_b_mouse_pressed
=
true
;
_mMovePosition
=
event
->
globalPos
()
-
pos
();
return
QDialog
::
mousePressEvent
(
event
);
}
void
FMPPayDialog
::
mouseMoveEvent
(
QMouseEvent
*
event
)
{
if
(
_b_mouse_pressed
&&
(
event
->
buttons
()
&&
Qt
::
LeftButton
)
&&
(
event
->
globalPos
()
-
_mMovePosition
).
manhattanLength
()
>
QApplication
::
startDragDistance
())
{
move
(
event
->
globalPos
()
-
_mMovePosition
);
_mMovePosition
=
event
->
globalPos
()
-
pos
();
}
return
QDialog
::
mouseMoveEvent
(
event
);
}
void
FMPPayDialog
::
mouseReleaseEvent
(
QMouseEvent
*
event
)
{
_b_mouse_pressed
=
false
;
}
void
FMPPayDialog
::
setPaySuccessView
(
QJsonObject
json
)
...
...
fmp_epay/fmp_epayview_dialog.h
View file @
9c3ad5fe
...
...
@@ -49,6 +49,10 @@ public slots:
protected
:
void
keyPressEvent
(
QKeyEvent
*
);
void
mousePressEvent
(
QMouseEvent
*
);
void
mouseMoveEvent
(
QMouseEvent
*
);
void
mouseReleaseEvent
(
QMouseEvent
*
);
private
slots
:
void
on_widget_change
();
...
...
@@ -117,6 +121,8 @@ private:
bool
_success_flag
;
bool
_is_amt
;
bool
_b_mouse_pressed
;
QPoint
_mMovePosition
;
};
#endif // DIALOG_H
fmp_epay/fmp_epayview_dialog.ui
View file @
9c3ad5fe
This diff is collapsed.
Click to expand it.
fmp_epay/fmp_epayview_wait.cpp
View file @
9c3ad5fe
...
...
@@ -19,7 +19,7 @@ FMPPayWait::FMPPayWait(QWidget *parent) : QDialog(parent), ui(new Ui::FMPPayWait
qRegisterMetaType
<
FMPPayWait
::
Type
>
(
"FMPPayWait::Type"
);
setStyleSheet
(
"QWidget#mainWdg{background:rgba(110,110,110,0.5)}"
);
//
setStyleSheet("QWidget#mainWdg{background:rgba(110,110,110,0.5)}");
}
FMPPayWait
::~
FMPPayWait
()
...
...
fmp_epay/fmp_epayview_wait.ui
View file @
9c3ad5fe
...
...
@@ -17,7 +17,7 @@
<string
notr=
"true"
>
#FMPPayWait
{
opacity: 223;
background-color: rgb(148, 148, 148);
background-color: rgb(148, 148, 148
, 0
);
}
#label_logo
...
...
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