Compare commits
3 Commits
3efb8b0d3a
...
3f9bb9a9bb
Author | SHA1 | Date |
---|---|---|
13038267101 | 3f9bb9a9bb | |
13038267101 | 581e889993 | |
yangjiaxuan | efeb97b14c |
|
@ -276,9 +276,13 @@ void Form_mainInterface::on_testOpenCacheFile(QString name)
|
|||
{
|
||||
if (name == HGPDTTOOLDB_NAME_IMAGE_GRAY_QUALITY && m_curDpi == 600)
|
||||
{
|
||||
if (m_view != nullptr)
|
||||
if (m_multiIndex != -1)
|
||||
{
|
||||
m_view->doubleClicked();
|
||||
QString cacheFilePath = getCachePath();
|
||||
QFileInfo fileInfo(cacheFilePath);
|
||||
auto pathDir = fileInfo.path();
|
||||
QString strFilePath = "file:///" + pathDir;
|
||||
QDesktopServices::openUrl(QUrl(strFilePath));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -287,9 +291,8 @@ void Form_mainInterface::on_viewerDblClick()
|
|||
{
|
||||
if (m_multiIndex != -1)
|
||||
{
|
||||
// QString strFileName = m_list_images[m_multiIndex];
|
||||
QString cacheFilePath = getCachePath();
|
||||
QFileInfo fileInfo(cacheFilePath);
|
||||
QString strFileName = m_list_images[m_multiIndex];
|
||||
QFileInfo fileInfo(strFileName);
|
||||
auto pathDir = fileInfo.path();
|
||||
QString strFilePath = "file:///" + pathDir;
|
||||
QDesktopServices::openUrl(QUrl(strFilePath));
|
||||
|
|
|
@ -1022,7 +1022,12 @@ public:
|
|||
{
|
||||
ret = helper_->io_control(IO_CTRL_CODE_SET_DPI, &dpi, &llen);
|
||||
}
|
||||
|
||||
//先默认设置1
|
||||
float distortion = 1.0;
|
||||
int setdistortion = *(int*)&distortion;
|
||||
|
||||
ret = helper_->io_control(IO_CTRL_CODE_SET_DISTORTION_CHECK_VAL, &setdistortion, &len);
|
||||
|
||||
ret = helper_->io_control(IO_CTRL_CODE_SET_DISTORTION_IMAGE, &type, &len);
|
||||
if (ret != SCANNER_ERR_OK)
|
||||
{
|
||||
|
@ -1107,10 +1112,6 @@ public:
|
|||
int setdistortion = *(int*)&distortion;
|
||||
int getdistortion = 0;
|
||||
|
||||
//先默认设置1
|
||||
int in = 1;
|
||||
ret = helper_->io_control(IO_CTRL_CODE_SET_DISTORTION_CHECK_VAL, &in, &len);
|
||||
|
||||
ret = helper_->io_control(IO_CTRL_CODE_SET_DISTORTION_CHECK_VAL, &setdistortion, &len);
|
||||
if (ret != SCANNER_ERR_OK)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue