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