add linux.
This commit is contained in:
parent
49499357b5
commit
1ce4afdc25
@ -1,6 +1,7 @@
|
|||||||
#ifndef __IMAGEDECODER_H__
|
#ifndef __IMAGEDECODER_H__
|
||||||
#define __IMAGEDECODER_H__
|
#define __IMAGEDECODER_H__
|
||||||
|
|
||||||
|
#include <cstdint>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
@ -7,7 +7,7 @@ import Analyser
|
|||||||
Window {
|
Window {
|
||||||
id: window
|
id: window
|
||||||
width: 1120
|
width: 1120
|
||||||
height: 630
|
height: 650
|
||||||
visible: true
|
visible: true
|
||||||
title: qsTr(Qt.application.name + " " + Qt.application.version)
|
title: qsTr(Qt.application.name + " " + Qt.application.version)
|
||||||
|
|
||||||
|
@ -46,8 +46,11 @@ void CdcUpdater::start(const QString &path, const QSerialPortInfo &info) {
|
|||||||
} else {
|
} else {
|
||||||
open(info);
|
open(info);
|
||||||
}
|
}
|
||||||
|
#ifdef Q_OS_WINDOWS
|
||||||
m_path = Amass::StringUtility::UTF8ToGBK(path.toStdString());
|
m_path = Amass::StringUtility::UTF8ToGBK(path.toStdString());
|
||||||
|
#else
|
||||||
|
m_path = path.toStdString();
|
||||||
|
#endif
|
||||||
LOG(info) << "ota file: " << m_path;
|
LOG(info) << "ota file: " << m_path;
|
||||||
emit progressChanged(++m_progress);
|
emit progressChanged(++m_progress);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user