Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fmp_printer
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_printer
Commits
fc953250
Commit
fc953250
authored
May 03, 2017
by
jackalone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化打印机代码
parent
6ac3f9d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
fmp_printer_p.cpp
+2
-4
No files found.
fmp_printer_p.cpp
View file @
fc953250
...
@@ -48,11 +48,9 @@ int FMPPrinterPrivate::Uninit()
...
@@ -48,11 +48,9 @@ int FMPPrinterPrivate::Uninit()
bool
FMPPrinterPrivate
::
_DoPrint
(
QString
data
)
bool
FMPPrinterPrivate
::
_DoPrint
(
QString
data
)
{
{
qDebug
()
<<
"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`"
;
QLOG_INFO
()
<<
"receive data is"
<<
data
;
QLOG_INFO
()
<<
"receive data is"
<<
data
;
if
(
FM_LoadAddress
()
&&
FM_inItConfig
())
if
(
FM_LoadAddress
()
&&
FM_inItConfig
())
QLOG_INFO
()
<<
QString
(
GB2312ToUnicode
(
"初始化打印机配置成功"
));
QLOG_INFO
()
<<
QString
(
GB2312ToUnicode
(
"初始化打印机配置成功"
));
//FMP_INFO() << "receive data is"<<data;
QLOG_INFO
()
<<
"receive data is"
<<
data
;
QLOG_INFO
()
<<
"receive data is"
<<
data
;
char
m_data
[
2048
]
=
{
0
};
char
m_data
[
2048
]
=
{
0
};
switch
(
m_print
.
m_PrintType
)
switch
(
m_print
.
m_PrintType
)
...
@@ -86,18 +84,18 @@ bool FMPPrinterPrivate::_DoPrint(QString data)
...
@@ -86,18 +84,18 @@ bool FMPPrinterPrivate::_DoPrint(QString data)
}
}
break
;
break
;
default
:
default
:
#if 0
if(GetInfo(m_print.printname,data))
if(GetInfo(m_print.printname,data))
{
{
//FMP_INFO() << "print is ok";
QLOG_INFO()<< "print is ok";
QLOG_INFO()<< "print is ok";
return 1;
return 1;
}
}
else
else
{
{
// FMP_INFO() << "print is false";
QLOG_INFO()<< "print is false";
QLOG_INFO()<< "print is false";
return 0;
return 0;
}
}
#endif
break
;
break
;
}
}
return
0
;
return
0
;
...
...
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