aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cmakeprojectmanager/configmodelitemdelegate.cpp
Commit message (Collapse)AuthorAgeFilesLines
* CMake: Fix includes all over the CMake pluginTobias Hunger2020-04-201-3/+1
| | | | | | | | | | | | | | Keep internals internal, remove some unnecessary includes, add some that should have been there. This reduces the number of files that get rebuild when working on CMake internals from over 1000 to about 200. This patch also moves some code around that ended up being in the wrong file. Change-Id: Icd7366ac760dc85031040720418fbb16336dce9b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Utils: Rename PathChooser::{f,setF}ileName() to {f,setF}ilePath()hjk2020-04-091-2/+2
| | | | | | | | | | It's returning a FilePath, so it's a better fit. Keep the old versions as inline function now to ease downstream migration. Change-Id: I535887928018f42b92895c8b0c82527f0d55e5ca Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: André Hartmann <aha_1980@gmx.de>
* Merge remote-tracking branch 'origin/4.11'Eike Ziller2020-01-091-9/+17
|\ | | | | | | Change-Id: I949f4f63abe12e11c4598c98295bfccc82e0ebdb
| * CMakePM: Fix license headerChristian Stenger2020-01-081-9/+17
| | | | | | | | | | | | | | QC uses GPL nowadays. Change-Id: I6229deb09fadb1f7b1b210ba17ac4d0f3858023d Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | Utils: Use FilePath for PathChooser::m_baseDirectoryhjk2019-12-191-1/+1
|/ | | | | | | ... and collapse the two accessor versions to one. Change-Id: I282753a0092601cff073684053ff914016452645 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* CMakeProjectManager: Do not convert PATHS to user outputCristian Adam2019-11-071-1/+1
| | | | | | | | | CMake works natively with / for paths, if we convert them to \ on Windows, and then give back to CMake, we end up having bad paths. Change-Id: I44da27ba4927ec5b83c8e381a8c65ca3fca3505b Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Avoid warning on empty expressionshjk2019-07-231-2/+2
| | | | | | | | For some reason, Q_UNUSED includes already a semicolon, adding one on the user side creates an additional empty statement. Change-Id: I9c5e8fac381345a60792cb75e2938fd53958d3b0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Utils: Rename FileName to FilePathhjk2019-05-281-2/+2
| | | | | | | | More in line with QFileInfo terminonlogy which appears to be best-of-breed within Qt. Change-Id: I1d051ff1c8363ebd4ee56376451df45216c4c9ab Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Utils: Purge asConstOrgad Shaneh2018-04-091-2/+1
| | | | | | | | Replace by qAsConst. Change-Id: I3301366f73c066c86f08df7188d70dc3b613c55c Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
* CMake: Improve delegates for CMake configurationTobias Hunger2017-09-191-35/+93
| | | | | Change-Id: Ib1d2bfca1b2faafd36c53f24c6649e73ee0af190 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* CMakeProjectManager: Support drop down selector for optionsAlexander Drozdov2016-10-101-0/+78
CMake provides "hack" for cmake-gui, that allows set options variants and select then from drop down list. Allows Qt Creator re-use this solution. See: - https://blog.kitware.com/constraining-values-with-comboboxes-in-cmake-cmake-gui/ - http://blog.bethcodes.com/cmake-tips-tricks-drop-down-list Drop down values can be added to option via: SET_PROPERTY(CACHE OptionName PROPERTY STRINGS Option1 Option2 Option3) This solution should not restrict to provide any other value, it provides only suggestion for user to select one of prdefined values. Change-Id: I8fc52155775f1e04979db8206bb42363df9359e8 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>