forked from qt-creator/qt-creator
filesystem: Add QFSEngine for filepaths
Change-Id: Ibd0c88c69863c0877138d8cc45541530c359bd9c Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -25,8 +25,8 @@
|
||||
|
||||
#include "submitfilemodel.h"
|
||||
|
||||
#include <coreplugin/fileiconprovider.h>
|
||||
#include <utils/fileutils.h>
|
||||
#include <utils/fsengine/fileiconprovider.h>
|
||||
#include <utils/qtcassert.h>
|
||||
#include <utils/theme/theme.h>
|
||||
|
||||
@@ -88,8 +88,8 @@ static QList<QStandardItem *> createFileRow(const QString &repositoryRoot,
|
||||
fileItem->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
|
||||
// For some reason, Windows (at least) requires a valid (existing) file path to the icon, so
|
||||
// the repository root is needed here.
|
||||
// Note: for "overlaid" icons in Core::FileIconProvider a valid file path is not required
|
||||
fileItem->setIcon(Core::FileIconProvider::icon(
|
||||
// Note: for "overlaid" icons in Utils::FileIconProvider a valid file path is not required
|
||||
fileItem->setIcon(Utils::FileIconProvider::icon(
|
||||
Utils::FilePath::fromString(repositoryRoot).pathAppended(fileName)));
|
||||
const QList<QStandardItem *> row{statusItem, fileItem};
|
||||
if (statusHint != SubmitFileModel::FileStatusUnknown) {
|
||||
|
||||
Reference in New Issue
Block a user