aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/toolchainoptionspage.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Core/Utils: Migrate further to Utils::Idhjk2020-07-061-9/+9
| | | | | | | | The coreplugin/id.h header is kept for downstream for now. Change-Id: I8c44590f7b988b3770ecdc177c40783e12353e66 (cherry picked from commit 430a33dcd9ac80ddb848e41f8f059102857c88aa) Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Fix lupdate issuesEike Ziller2020-03-181-1/+1
| | | | | Change-Id: I26f08ae82354c178f6d26f9138796328b50bfba8 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* ProjectExplorer: Apply new pattern to ToolChainOptionPagehjk2020-01-171-21/+3
| | | | | Change-Id: I6d1d636e658bbe8189e28558e913cb35bc22cd5f Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* More Utils::toSet/toListhjk2019-07-041-1/+1
| | | | | | | ... and unrelated cosmetic changes. Change-Id: I591b17fd5289831e701b683f8fb47816efd1fa67 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* PE: Fix tool tip of invalid toolchainChristian Stenger2019-07-021-1/+1
| | | | | Change-Id: I1b0c387217fbd766b867266d7af3036b6a25d9c3 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* ProjectExplorer: Fix remove button state in toolchain widgetChristian Kandeler2019-05-271-1/+1
| | | | | | | | The non-deletable toolchains are the ones coming from the SDK. Amends 3969a007c2. Change-Id: I9586e2311378417c72c2eb6b55e6d5e29c65fba3 Reviewed-by: hjk <hjk@qt.io>
* ProjectExplorer: Use ToolChainFactories to clone ToolChainshjk2019-05-161-0/+3
| | | | | | | | Centrally. Change-Id: Ie832c5ad0eb282192440d9d4d058d082d9513cc2 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* ProjectExplorer: Drop Detection argument from ToolChain constructorhjk2019-05-101-1/+4
| | | | | | | | | | | | | This was used wildly inconsistently. Use a setter instead in circumstances where the context is reasonably clear. The assumption is that this will always be done at some time in all code paths. Use a new 'Uninitialized' value to avoid triggering the first update. Change-Id: I82c38cb9da3ccdbd8fbae8beefcbfa0e559ff794 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* ProjectExplorer: Remove ToolChain::canClone()hjk2019-05-101-1/+1
| | | | | | | Was returning true in all cases. Change-Id: Iafbafbf44a0b631b83e768c75f963e1bb7821a25 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* ProjectExplorer: Simplify ToolChainFactory::create() signaturehjk2019-05-091-1/+3
| | | | | Change-Id: I9d579898387609fa7374f43633711a978bb36d93 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* ProjectExplorer: Avoid nullptr accessChristian Stenger2019-04-161-1/+1
| | | | | | | | | | | The path chooser for the compiler command is initialized only for manually defined compilers. Skip the call to apply() on the options page when processing auto-detected toolchains to avoid a crash. Change-Id: Ib795d233f0372ef74e42b323544b0bbd95c27646 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Merge remote-tracking branch 'origin/4.9'Eike Ziller2019-04-121-2/+2
|\ | | | | | | Change-Id: I95c56cc9371959f96afde3677fc82481f36f66c8
| * ProjectExplorer: Fix runtime warning in toolchains settings pageChristian Kandeler2019-04-091-2/+2
| | | | | | | | | | | | | | | | | | We used to get the following when marking a first or second level entry: QStackedWidget::setCurrentWidget: widget 0x0 not contained in stack Change-Id: I2af19bbd767a218171cdaeb5e9bf4a3bf3db15dc Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | ProjectExplorer: Fix typoOrgad Shaneh2019-04-111-1/+1
| | | | | | | | | | | | | | This amends commit 6cb2e71c38fb7e1b784a1d9f9196d03a4574f0ae. Change-Id: Ib87c948ef4a3b1e1edb909c3099e95e0943f0388 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | ProjectExplorer: Add "Remove All" button to toolchains pageChristian Kandeler2019-04-091-0/+17
| | | | | | | | | | | | | | Removes all toolchains that do not come from the SDK. Change-Id: I2d638209160c8bf84d548cef83bebb85223cc70f Reviewed-by: hjk <hjk@qt.io>
* | ProjectExplorer: Add "Re-detect" button to toolchains pageChristian Kandeler2019-04-091-8/+63
| | | | | | | | | | | | | | | | | | | | This allows to take changed detection settings or added/removed compilers into account without restarting Qt Creator. It is also the only way to get rid of formerly auto-detected compilers that would not get detected anymore with the current settings. Change-Id: I3d8a7659e24fa5d55d1fb17864386cf19d3e2533 Reviewed-by: hjk <hjk@qt.io>
* | ProjectExplorer: Do not set up x64 compilers as x86 toolchains by defaultChristian Kandeler2019-04-091-1/+52
| | | | | | | | | | | | | | | | | | That blows up the toolchain list on Unix systems, and is usually not what users want. Those who do can opt in. Fixes: QTCREATORBUG-20044 Change-Id: I6a4ef26ff5f0aaddc660cccf59283c6e8c4bdb64 Reviewed-by: hjk <hjk@qt.io>
* | ProjectExplorer: Do not auto-remove manually added toolchainsChristian Kandeler2019-04-021-2/+6
|/ | | | | | Fixes: QTCREATORBUG-22128 Change-Id: I73dff369542b6918bcb96fb7d028822e5aed2062 Reviewed-by: hjk <hjk@qt.io>
* ProjectExplorer: Fix memory leaks in tree modelsIvan Donchevskii2018-08-211-10/+14
| | | | | | | | | | | | Fix widgets being leaked by the ToolChainOptionsPage. This page created widgets and stored them in the tree node and never deleted them. The fix is to put all the widgets into one QStackedWidget, so that this will clean up once the page is destroyed. Change-Id: Ic02824a4c52771d8962dc594176077c2e139fb84 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* ProjectExplorer: ModernizeAlessandro Portale2018-07-161-1/+1
| | | | | | | | | | | | | | modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using modernize-use-default-member-init modernize-use-equals-default modernize-use-transparent-functors Change-Id: Iebed22caa2e733d292f334e956e3d16b844e14e3 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Clean up options page category display name and icon set upEike Ziller2018-04-231-3/+0
| | | | | | | | | | | | | | In cases where plugins extend an existing settings category of a plugin that they depend on anyhow, they do not need to specify the translated display name and icon for that category. Some options pages were already not setting the icon, but still the translated name, which makes even less sense. Clean up this mess, only setting display name and icon if that is necessary. Change-Id: I8bc9d0c51b11d48f1d847337838704d663e70b45 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* ProjectExplorer: Make the Options/Kits Category icon themableAlessandro Portale2018-02-281-1/+2
| | | | | Change-Id: I70c3fffd11b217937d6a85e88da1de688031b8e0 Reviewed-by: hjk <hjk@qt.io>
* ProjectExplorer: Create and populate 'Kits' settings categoryhjk2018-01-241-3/+3
| | | | | | | | | | | | | | Kits are a central concept and structure in anything build and run related in Creator, their organization is crucial for the functionality of Creator and deserve to be emphasized over other, often more cosmetic settings. This is the first step of two, the second step would be moving the Device (list) page also in this category, possibly after some reorganization in the Device category. Change-Id: I4abc89472d0575c691fc9e5051397833126e5456 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* De-emphasize PluginManager::getObjects<Type>()hjk2017-12-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... by additionally keeping local (currently non-owning) pools per "interesting" type. Current situation: - The global object pool does not scale well for looking up objects, as iteration plus qobject_cast typically iterates over all pooled objects. - User code that can use typed results from the object pool need to have access to the full type definition anyway, i.e. depend on the plugin of the target class anyway. The patch here solves the scaling problem is to have local type-specific pools to which objects register in their constructors and deregister in their destructors. This patch here does *not* change the ownership model of the pooled objects, however, it opens the possibility to change the ownership model per type (e.g. by not putting things into the global pool at all anymore and make the local pool 'owning') and the intent is to handle that in later patchs. Even without the follow-up patches this here is a performance improvement for the cases that access the local pools instead the global one, i.e. "practically all". Change-Id: Ib11a42df2c4ecf5e1155534730083a520dd1995b Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Remove spaces in initializer listsTim Jenssen2017-02-221-1/+1
| | | | | | | Format initializer lists code style like. Change-Id: Ib82c235e4ba7dc75ee96a7abc0c47eff7b0a9013 Reviewed-by: hjk <hjk@qt.io>
* Utils: Introduce TreeItem::{begin,end}hjk2017-02-081-1/+1
| | | | | | | | | | | ... and use this to reduce the number of explicit uses of m_children. Despite of being shorter code by itself it is a step towards having an explicit LeafItem object that doesn't explicitly store a(n empty) vector of child nodes. Change-Id: If8db85e2f1134dd1578a78d31235bf57a28f863a Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* ProjectExplorer: Added support for registering custom languagesFilippo Cucchetto2017-01-231-15/+15
| | | | | Change-Id: I728a2ed1ef7d9f44d7c2b59d27d6e23444cd3bb5 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* ProjectExplorer: Remove unused membersTobias Hunger2016-12-051-3/+0
| | | | | Change-Id: Ie0076278ed30c70d4731dd67d1f58635d46153ab Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Core: Make IOptionsPage::categoryIcon a Utils::IconAlessandro Portale2016-09-201-1/+1
| | | | | | | This is necessary for themable + HighDPI icons in the options dialog. Change-Id: I8e3ff87a24591af40bb76b39cd970443d7678fae Reviewed-by: hjk <hjk@qt.io>
* TreeModel: Move some base TreeItem code out-of-linehjk2016-08-031-2/+2
| | | | | | | Avoid code explosion. Change-Id: I7d239a4560e90b68cc4991341adf940a98776254 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Utils: Streamline TreeModel APIhjk2016-07-271-2/+2
| | | | | | | | | | | | | | The LeveledTreeModel case is general enough to cover the UniformTreeModel case, so merge them and rename to TreeModel. The former TreeModel is now BaseTreeModel. BaseTreeModels should not be instantiated directly, a tree model with non-uniform basic items is available as TreeModel<>. Done-with: Eike Ziller <eike.ziller@qt.io> Change-Id: I64a65617ab68c0cde39cf65f4bc092ef808ee6fb Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* ToolChain: Create toolchains for different languagesTobias Hunger2016-07-141-25/+32
| | | | | | | | Enable creation of toolchains for different languages and wire up the logic in the ToolChain Options Page. Change-Id: I9fbd95607d30cc1aa10f73d6532338f07f3e2b4e Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
* ToolChainOptionsPage: Enabling adding toolchains for different languagesTobias Hunger2016-07-141-4/+21
| | | | | Change-Id: I7e0984c6229c8583433a9efe0063337a18c5f716 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
* ToolChainOptionsPage: Handle toolchain languagesTobias Hunger2016-07-141-23/+53
| | | | | | | | Properly display toolchain languages in the tree view of the tool chains options page. Change-Id: I27cb42cd2c5bf0cd7be8da921b94d8da10110841 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
* TreeModel: Consolidate child()/childAt() and rowCount()/childCount()hjk2016-07-071-1/+1
| | | | | | | | We never used the possibility to overload the virtual child() and rowCount() functions, it's unlikely to be needed in future. Change-Id: I7ebdf4dfc70bb0bcadea9ef3fb88f16632a95696 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* TreeModel: Introduce a destroyItem() convenience functionhjk2016-07-061-1/+1
| | | | | | | Shorthand for delete takeItem(...). Change-Id: Icb7b60e5c19aa0d21650eefff65f7eb55e9f90b0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* TreeModel: Add a StaticTreeItem(QString) convenience constructorhjk2016-06-171-2/+2
| | | | | | | | | Covers the common case and hopefully avoids the recurring MSVC problem with initializer lists in this location. Change-Id: I1b2bbb083f9fc86af3b51b8f52615fb70c832b95 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
* msvc2013 can not handle 1 item initializer listsTim Jenssen2016-06-151-3/+3
| | | | | | Change-Id: I44b3c3888f15a6b68ddaed2777b90cf4057792b1 Reviewed-by: hjk <hjk@theqtcompany.com> Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
* TreeModel: Introduce a StaticTreeItemhjk2016-06-151-2/+2
| | | | | | | | This splits out the case of static string displays from the TreeItem base class, making the base more lightweight. Change-Id: If1f442011ec60094399a41b65d9b5015f432f82e Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* ProjectExplorer: Use LeveledTreeModel for ToolChainModelhjk2016-06-101-3/+3
| | | | | | | | More typesafety. This also reveals recently introduced mis-counting of levels. Change-Id: I8d90bab57c7122ca08ec2980f4a35fd80db802b3 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* TreeModel: Rework tree iterationhjk2016-05-121-10/+7
| | | | | | | | | | Use function objects to apply directly during a depth-first walk of the tree instead of faking a flat container of tree nodes. Less code, and allows even some non-const operations. Change-Id: I804ab11df358fe937b40809cbcb772e6f3ff8dc5 Reviewed-by: David Schulz <david.schulz@theqtcompany.com> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Projectexplorer: Modernize codebaseTobias Hunger2016-04-151-8/+8
| | | | | | Change-Id: I4793b58aa77bcd46af99f8b843c0f7439cdc9269 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com> Reviewed-by: Vikas Pachdha <vikas.pachdha@theqtcompany.com>
* ProjectExplorer: Use Qt5-style connectsOrgad Shaneh2016-02-011-1/+2
| | | | | | | The heavy lifting was done by clazy. Change-Id: I619db09a79760186b72e7662490ed1205155c1a7 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Update License according to agreement with Free Qt FoundationTobias Hunger2016-01-191-17/+12
| | | | | | | * Update files in src/plugins Change-Id: Ia5d77fad7d19d4bb3498e78661982f68729adb22 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* TreeModel: takeItem should return the itemEike Ziller2015-06-101-2/+1
| | | | | | | | The usual Qt API for "takeXyz()" methods is to return the item that was "taken". Change-Id: Ie144051801487a301b3f13e2857735b65f58150b Reviewed-by: hjk <hjk@theqtcompany.com>
* TreeModel: More API cleanuphjk2015-04-221-4/+4
| | | | | | | | | | | - introduce topLevelItemCount (similar to QTreeWidget) - squash untypedTreeLevelItems() - rename removeItems() to clear() - rename removeItem() to takeItem() - rename treeLevelItems<> to itemsAtLevel<> Change-Id: I0f1bb4110f7687b20da3d92e3d943858645a9fa2 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* TreeModel: API cleanuphjk2015-04-221-2/+2
| | | | | | | | | - rename index{From->For}Item - rename item{From->For}Index - remove ununsed setColumnCount Change-Id: I1cce9657e476dd1e8ffa9f7cdb2e646fab6884ab Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* Fix missing of some translationsSergey Belyashov2015-03-241-16/+16
| | | | | | | Task-number: QTCREATORBUG-13649 Change-Id: I69f78b3b8d2366003bfce81a2afba0068e716d22 Reviewed-by: hjk <hjk@theqtcompany.com> Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* Merge commit '3c85058694ee2e41658d17f524fb48f0b187d2fe'Eike Ziller2015-02-121-6/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/libs/utils/tooltip/tipcontents.cpp src/libs/utils/tooltip/tipcontents.h src/plugins/android/androiddeployqtstep.cpp src/plugins/baremetal/baremetalconstants.h src/plugins/baremetal/baremetaldevice.cpp src/plugins/baremetal/baremetaldevice.h src/plugins/baremetal/baremetaldeviceconfigurationwidget.cpp src/plugins/baremetal/baremetaldeviceconfigurationwidget.h src/plugins/baremetal/baremetaldeviceconfigurationwizard.cpp src/plugins/baremetal/baremetaldeviceconfigurationwizardpages.cpp src/plugins/baremetal/baremetaldeviceconfigurationwizardpages.h src/plugins/baremetal/baremetalplugin.cpp src/plugins/baremetal/baremetalplugin.h src/plugins/baremetal/baremetalruncontrolfactory.cpp src/plugins/baremetal/baremetalruncontrolfactory.h src/plugins/cppeditor/cppcodemodelinspectordialog.cpp src/plugins/cppeditor/cppdoxygen_test.cpp src/plugins/cppeditor/cppdoxygen_test.h src/plugins/debugger/breakpointmarker.cpp src/plugins/debugger/debuggeritemmodel.cpp src/plugins/debugger/debuggeritemmodel.h src/plugins/debugger/loadcoredialog.cpp src/plugins/genericprojectmanager/cppmodelmanagerhelper.cpp src/plugins/projectexplorer/addnewmodel.cpp src/plugins/projectexplorer/addnewmodel.h src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp src/plugins/qmlprofiler/abstracttimelinemodel.cpp src/plugins/qmlprofiler/abstracttimelinemodel.h src/plugins/qmlprofiler/notesmodel.cpp src/plugins/qmlprofiler/qml/CategoryLabel.qml src/plugins/qmlprofiler/qml/MainView.qml src/plugins/qmlprofiler/qml/Overview.js src/plugins/qmlprofiler/qml/Overview.qml src/plugins/qmlprofiler/qml/TimeDisplay.qml src/plugins/qmlprofiler/qml/TimeMarks.qml src/plugins/qmlprofiler/qmlprofilertimelinemodelproxy.cpp src/plugins/qmlprofiler/sortedtimelinemodel.cpp src/plugins/qmlprofiler/sortedtimelinemodel.h src/plugins/qmlprofiler/timelinemodelaggregator.cpp src/plugins/qmlprofiler/timelinemodelaggregator.h src/plugins/qmlprofiler/timelinerenderer.cpp src/plugins/qmlprofiler/timelinerenderer.h src/plugins/qmlprojectmanager/QmlProjectManager.json.in src/plugins/texteditor/findinfiles.cpp src/plugins/vcsbase/vcsconfigurationpage.cpp src/shared/qbs src/shared/scriptwrapper/interface_wrap_helpers.h src/shared/scriptwrapper/wrap_helpers.h tests/auto/qmlprofiler/abstracttimelinemodel/tst_abstracttimelinemodel.cpp tests/system/suite_debugger/tst_debug_empty_main/test.py tests/system/suite_debugger/tst_qml_js_console/test.py tests/system/suite_debugger/tst_qml_locals/test.py Change-Id: I67540b648f8b162496f4aa606b04d50c7c9125c6
| * Update LicenseEike Ziller2015-01-161-6/+6
| | | | | | | | | | Change-Id: I711d5fb475ef814a1dc9d2822740e827f3f67125 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>