xp:Windows XP兼容。
This commit is contained in:
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
@@ -16,13 +16,14 @@
|
|||||||
"args": []
|
"args": []
|
||||||
},
|
},
|
||||||
"cmake.configureSettings": {
|
"cmake.configureSettings": {
|
||||||
"CMAKE_PREFIX_PATH": "C:/Qt/6.8.3/mingw_64",
|
//"CMAKE_PREFIX_PATH": "C:/Qt/6.8.3/mingw_64",
|
||||||
|
"CMAKE_PREFIX_PATH": "C:/Qt/Qt5.7.1/5.7/mingw53_32",
|
||||||
//"CMAKE_TOOLCHAIN_FILE": "${env:TT_VCPKG}"
|
//"CMAKE_TOOLCHAIN_FILE": "${env:TT_VCPKG}"
|
||||||
},
|
},
|
||||||
"cmake.configureArgs": [
|
"cmake.configureArgs": [
|
||||||
"-Wno-dev",
|
"-Wno-dev",
|
||||||
"-DCOMPILE_GUI=ON",
|
"-DCOMPILE_GUI=ON",
|
||||||
"-DQT_DEFAULT_MAJOR_VERSION=6"
|
"-DQT_DEFAULT_MAJOR_VERSION=5"
|
||||||
],
|
],
|
||||||
"cmake.options.statusBarVisibility": "visible",
|
"cmake.options.statusBarVisibility": "visible",
|
||||||
"cmake.generator": "Ninja",
|
"cmake.generator": "Ninja",
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ public:
|
|||||||
|
|
||||||
signals:
|
signals:
|
||||||
void sigDisconnect();
|
void sigDisconnect();
|
||||||
void sigPath(const QString& path, const QStringList& drivers);
|
void sigPath(const QString& path, const QVector<QString>& drivers);
|
||||||
void sigClients(const InfoClientVec& clients);
|
void sigClients(const InfoClientVec& clients);
|
||||||
void sigFiles(const DirFileInfoVec& files);
|
void sigFiles(const DirFileInfoVec& files);
|
||||||
void sigReqSend(QSharedPointer<FrameBuffer> frame);
|
void sigReqSend(QSharedPointer<FrameBuffer> frame);
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ void RemoteFile::setClientCore(ClientCore* cliCore)
|
|||||||
{
|
{
|
||||||
cliCore_ = cliCore;
|
cliCore_ = cliCore;
|
||||||
connect(cliCore_, &ClientCore::sigPath, this,
|
connect(cliCore_, &ClientCore::sigPath, this,
|
||||||
[this](const QString& path, const QStringList& drivers) { sigHome(path, drivers); });
|
[this](const QString& path, const QVector<QString>& drivers) { sigHome(path, drivers); });
|
||||||
connect(cliCore_, &ClientCore::sigFiles, this, [this](const DirFileInfoVec& files) { sigDirFile(files); });
|
connect(cliCore_, &ClientCore::sigFiles, this, [this](const DirFileInfoVec& files) { sigDirFile(files); });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ void FileManager::InitMenu()
|
|||||||
menu_->addSeparator();
|
menu_->addSeparator();
|
||||||
}
|
}
|
||||||
|
|
||||||
void FileManager::ShowPath(const QString& path, const QStringList& drivers)
|
void FileManager::ShowPath(const QString& path, const QVector<QString>& drivers)
|
||||||
{
|
{
|
||||||
QMutexLocker locker(&cbMut_);
|
QMutexLocker locker(&cbMut_);
|
||||||
|
|
||||||
@@ -349,7 +349,7 @@ void FileManager::SetUiCurrentPath(const QString& path)
|
|||||||
ui->comboBox->setCurrentText(path);
|
ui->comboBox->setCurrentText(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
void FileManager::FilterFile(const QStringList& selectedTypes)
|
void FileManager::FilterFile(const QVector<QString>& selectedTypes)
|
||||||
{
|
{
|
||||||
if (selectedTypes.contains("*")) {
|
if (selectedTypes.contains("*")) {
|
||||||
currentShowInfo_.vec = currentInfo_.vec;
|
currentShowInfo_.vec = currentInfo_.vec;
|
||||||
@@ -415,7 +415,7 @@ void FileManager::ShowFilterForm()
|
|||||||
dialog.setLayout(&layout);
|
dialog.setLayout(&layout);
|
||||||
|
|
||||||
if (dialog.exec() == QDialog::Accepted) {
|
if (dialog.exec() == QDialog::Accepted) {
|
||||||
QStringList selectedTypes;
|
QVector<QString> selectedTypes;
|
||||||
for (int i = 0; i < listWidget.count(); ++i) {
|
for (int i = 0; i < listWidget.count(); ++i) {
|
||||||
QListWidgetItem* item = listWidget.item(i);
|
QListWidgetItem* item = listWidget.item(i);
|
||||||
if (item->checkState() == Qt::Checked) {
|
if (item->checkState() == Qt::Checked) {
|
||||||
|
|||||||
@@ -46,13 +46,13 @@ signals:
|
|||||||
private:
|
private:
|
||||||
void InitControl();
|
void InitControl();
|
||||||
void InitMenu();
|
void InitMenu();
|
||||||
void ShowPath(const QString& path, const QStringList& drivers);
|
void ShowPath(const QString& path, const QVector<QString>& drivers);
|
||||||
void ShowFile(const DirFileInfoVec& info);
|
void ShowFile(const DirFileInfoVec& info);
|
||||||
void doubleClick(int row, int column);
|
void doubleClick(int row, int column);
|
||||||
void SetRoot(const QString& path);
|
void SetRoot(const QString& path);
|
||||||
void SortFileInfo(SortMethod method);
|
void SortFileInfo(SortMethod method);
|
||||||
void HeaderClicked(int column);
|
void HeaderClicked(int column);
|
||||||
void FilterFile(const QStringList& selectedTypes);
|
void FilterFile(const QVector<QString>& selectedTypes);
|
||||||
void GenFilter();
|
void GenFilter();
|
||||||
void ShowFilterForm();
|
void ShowFilterForm();
|
||||||
void CopyFullPath();
|
void CopyFullPath();
|
||||||
@@ -70,7 +70,7 @@ private:
|
|||||||
ClientCore* cliCore_;
|
ClientCore* cliCore_;
|
||||||
QMutex cbMut_;
|
QMutex cbMut_;
|
||||||
QMutex tbMut_;
|
QMutex tbMut_;
|
||||||
QStringList drivers_;
|
QVector<QString> drivers_;
|
||||||
QSet<QString> fileTypes_;
|
QSet<QString> fileTypes_;
|
||||||
QSet<QString> curSelectTypes_;
|
QSet<QString> curSelectTypes_;
|
||||||
DirFileInfoVec currentInfo_;
|
DirFileInfoVec currentInfo_;
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ public:
|
|||||||
QString GetErr() const;
|
QString GetErr() const;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void sigHome(const QString& path, const QStringList& drivers);
|
void sigHome(const QString& path, const QVector<QString>& drivers);
|
||||||
void sigDirFile(const DirFileInfoVec& dirFile);
|
void sigDirFile(const DirFileInfoVec& dirFile);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|||||||
Reference in New Issue
Block a user