summaryrefslogtreecommitdiff
path: root/src/libs/utils/filesystemmodel.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Utils: Tr::trAlessandro Portale2023-02-011-7/+8
| | | | | | Change-Id: Ic03e20993f05fb5b49a12c891d86afb2c8e18e08 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
* Remove GPL-3.0+ from license identifiers, part IIKai Köhne2023-01-061-1/+1
| | | | | | | | | | | | | | | The original text before the SPDX change did not include a potential GPL-4.0, but GPL-2.0. While at it, replace (deprecated) GPL-3.0 with more explicit GPL-3.0-only Change was done by running find . -type f -exec perl -pi -e "s/LicenseRef-Qt-Commercial OR GPL-3.0\+ OR LGPL-3.0/LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only/g" {} ; Change-Id: Id5e40d3e174ecea660a09e88a02bd57505f1875d Reviewed-by: Lucie Gerard <lucie.gerard@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Remove unused variablesJarek Kobus2022-12-091-1/+2
| | | | | | Change-Id: I653f6fa71bb04e049d4e1848a7e38a606692e678 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
* Port from qAsConst() to std::as_const()Marc Mutz2022-10-071-5/+5
| | | | | | | | | | | | | | We've been requiring C++17 since Qt 6.0, and our qAsConst use finally starts to bother us (QTBUG-99313), so time to port away from it now. Since qAsConst has exactly the same semantics as std::as_const (down to rvalue treatment, constexpr'ness and noexcept'ness), there's really nothing more to it than a global search-and-replace. Task-number: QTBUG-99313 Change-Id: I88edd91395849574436299b8badda21bb93bea39 Reviewed-by: hjk <hjk@qt.io>
* Utils: Use qtcEnvironmentVariable* instead of qEnvironmentVariable*Eike Ziller2022-09-011-1/+3
| | | | | | | | | | | | | And instead of qgetenv. Takes Qt Creator's setting at "Environment > System > Environment" into account, which makes it easier on some platforms to set them (e.g. macOS), can be configured differently in different settings paths, and potentially can be changed at runtime (depending on usage). Change-Id: I50e457bab2d3495e5c69676fe1a0257a5fea3e52 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
* Use SPDX license identifiersLucie Gérard2022-08-261-38/+2
| | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Task-number: QTBUG-67283 Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Utils lib: Remove unneeded includes from cpp filesJarek Kobus2022-05-191-5/+1
| | | | | | | | It's a result of a team work consisting of yellow triangle and me. Change-Id: I8b4812766da70e0785ae71bf0cb71357379e2514 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Utils: Make FileSystemModel more flexible wrt to case sensitivityhjk2022-01-031-117/+117
| | | | | | | | We need to handle more than a host file system. Change-Id: Ia5940f35437f9953df007616bb998698740db9ad Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: David Schulz <david.schulz@qt.io>
* Utils: fix windows compilationTim Jenssen2021-12-271-16/+0
| | | | | | Change-Id: I96eaa8d9141ea966914b881f60746661a4f0ae51 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* Fix some compiler warningsChristian Kandeler2021-12-151-0/+2
| | | | | Change-Id: I1ac0cbba1b47c429a752c545b1475c8d7d23c5dd Reviewed-by: hjk <hjk@qt.io>
* Utils: Copy QFileSystemModel from Qt 6.2hjk2021-12-091-0/+2738
... and fit it into Creator's namespace scheme. The idea is to make it operate on (possibly remote) FilePaths. Change-Id: I469b1fa201e747d326de82f73ae5ac33e9335c10 Reviewed-by: Christian Stenger <christian.stenger@qt.io>