diff options
author | Tomi Korpipaa <tomi.korpipaa@qt.io> | 2017-11-06 09:54:50 +0200 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@qt.io> | 2017-11-06 11:10:15 +0000 |
commit | 461394d2d80a6bfcfb815606b6064abcc21a6aef (patch) | |
tree | c97a5ea0e3e1a3fb734c8feb7dc896adf346e20e /src/Authoring/Studio/Palettes/Inspector/ChooserModelBase.cpp | |
parent | 73e6514ba9ac8efbdfa768371c1f0ccb7928ab63 (diff) |
CFilePath is refactored to inherit from QFileInfo
The CFilePath class in NDD was the primary means of abstracting file
path handling and manipulation in the authoring tool. The implementation
is heavily windows idiosyncratic. This change completely refactors the
class to rely upon Qt's file path handling abstractions: QFileInfo and
QDir. The goal is to continue to shrink this class until it can be
removed entirely and all call sites can use QFileInfo and friends
directly.
Task-number: QT3DS-221
Change-Id: I0e31c96982a3f3a9411346f6c1dd82a6d1fa00ca
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/Authoring/Studio/Palettes/Inspector/ChooserModelBase.cpp')
-rw-r--r-- | src/Authoring/Studio/Palettes/Inspector/ChooserModelBase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Authoring/Studio/Palettes/Inspector/ChooserModelBase.cpp b/src/Authoring/Studio/Palettes/Inspector/ChooserModelBase.cpp index e84a6582..c0a21750 100644 --- a/src/Authoring/Studio/Palettes/Inspector/ChooserModelBase.cpp +++ b/src/Authoring/Studio/Palettes/Inspector/ChooserModelBase.cpp @@ -371,7 +371,7 @@ bool ChooserModelBase::isExpanded(const QModelIndex &modelIndex) const EStudioObjectType ChooserModelBase::getIconType(const QString &path) const { - return Q3DStudio::ImportUtils::GetObjectFileTypeForFile(Q3DStudio::CFilePath::fromQString(path)).m_IconType; + return Q3DStudio::ImportUtils::GetObjectFileTypeForFile(Q3DStudio::CFilePath(path)).m_IconType; } QString ChooserModelBase::getIconName(const QString &path) const |