xp:Windows XP兼容。
This commit is contained in:
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user