diff options
author | Mahmoud Badri <mahmoud.badri@qt.io> | 2018-08-10 14:35:31 +0300 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@qt.io> | 2018-08-14 03:38:05 +0000 |
commit | 07d58b5fe318d1ab2341e7cd3b9802efdd338387 (patch) | |
tree | d56f9f65364648fab05a2ac699a3136d18da75c7 /src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp | |
parent | a643bc58098cfdfc02784fe485a5fd03f6deb811 (diff) |
Improve the project file
Changed the project name and path types to QString instead of the
notorious CString and CFilePath. Removed 2 member variables and a
method. Also improved the conversion from absolute to relative paths.
Task-number: QT3DS-2001
Change-Id: I79619ca2aebd21e5e29abc219a62831ee2117be4
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp')
-rw-r--r-- | src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp b/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp index 89243e80..771f229d 100644 --- a/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp +++ b/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.cpp @@ -114,7 +114,7 @@ void InspectorControlView::filterMaterials(std::vector<Q3DStudio::CFilePath> &ma void InspectorControlView::OnNewPresentation() { m_DirectoryConnection = g_StudioApp.getDirectoryWatchingSystem().AddDirectory( - g_StudioApp.GetCore()->getProjectFile().getProjectPath().toQString(), + g_StudioApp.GetCore()->getProjectFile().getProjectPath(), std::bind(&InspectorControlView::onFilesChanged, this, std::placeholders::_1)); } @@ -126,7 +126,7 @@ void InspectorControlView::OnClosingPresentation() void InspectorControlView::OnLoadedSubPresentation() { m_DirectoryConnection = g_StudioApp.getDirectoryWatchingSystem().AddDirectory( - g_StudioApp.GetCore()->getProjectFile().getProjectPath().toQString(), + g_StudioApp.GetCore()->getProjectFile().getProjectPath(), std::bind(&InspectorControlView::onFilesChanged, this, std::placeholders::_1)); } |