summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* qmljs: remove remaining references to QtQuick1Marco Benelli2018-04-0314-80/+13
| | | | | | | | This patch removes all references to QtQuick1 in qml library, plugin, designer, profiler and tests. Change-Id: Ie286fad96060299caae3ef328330597cf53e90d3 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Designer: Use PluginManager getObjectByName instead of getObjectByClassNamehjk2018-04-032-1/+2
| | | | | | | | | There was only one user ever of getObjectByClassName, and has never been more than one object here. So the more common function does the trick, too. Change-Id: I9df09127d476be4ddab466f8a709a2b383a76b97 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Merge remote-tracking branch 'origin/4.6'Eike Ziller2018-03-316-17/+34
|\ | | | | | | | | | | | | | | Conflicts: qbs/modules/qtc/qtc.qbs qtcreator.pri Change-Id: I3b2d81462b2dfb9753863c87c79ffbbf8d536aac
| * Locator/JavaScript: Fix min/max with more than 2 argumentsEike Ziller2018-03-291-2/+2
| | | | | | | | | | | | | | | | | | Pass a variable amount of arguments along Task-number: QTCREATORBUG-20167 Change-Id: I3643aca8c18cba14beb8d625b62f45aa4b39d2a4 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: André Hartmann <aha_1980@gmx.de>
| * Add stdcpp NDK paths to soLibSearchPathBogDan Vatra2018-03-294-14/+29
| | | | | | | | | | | | | | | | It's useful when the application uses std::abort & co to get a useful callstack. Change-Id: I805478333bac3eba21db158df52942599a80c088 Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
| * QmlDesigner: fix crash on exitTim Jenssen2018-03-281-1/+3
| | | | | | | | | | Change-Id: I2e72699dd3f49c917a28d724753e27701a930fac Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* | Clang: Fix destructorsMarco Bubke2018-03-292-1/+3
| | | | | | | | | | | | Change-Id: I95164b195b912068496d5c8de0fe09cf88678916 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* | CMake: Use new ExecutableAspecthjk2018-03-294-128/+49
| | | | | | | | | | Change-Id: Ic880351802c52b61c53c6730d23dfe3f124ebc44 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* | ProjectExplorer: Introduce and use a ExecutableAspecthjk2018-03-292-0/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... to hold the label with the executable's name in the RunConfiguration widgets. This basically follows suit on {WorkingDirectory,Arguments}Aspect, allowing for some centralized handling of decorations on invalid names etc. Implementation is even simpler as this is read-only and not saved in settings envisioned use cases. Change-Id: I20c5c19e5f19ba8367afc0d04ed2ac3681e6491d Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* | Add Context Help to text editor context menuEike Ziller2018-03-295-22/+55
| | | | | | | | | | | | | | | | | | | | | | For this make the default context menu for the text editor extensible and add the context help item from the help plugin, which now has an optional dependency on the text editor to ensure correct loading order if both are present. Task-number: QTCREATORBUG-55 Change-Id: I378a491ba3700e65fc262bdb10c8ead5ad62cb33 Reviewed-by: David Schulz <david.schulz@qt.io>
* | Fix that clearing shortcut in settings did no longer workEike Ziller2018-03-291-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This broke in 8d1a592d1637b52e539695afdef7f5564f6d723b We should ask the validator of a fancy line edit if an entry is valid, also if the line edit is empty and shows a placeholder text, even if we then do not mark the place holder with the error color, etc. In case of the shortcut settings, the validator has side effects that are important. Change-Id: I41c0d98ed3c6e9e68df4484a47c108b00ddbbfe7 Reviewed-by: David Schulz <david.schulz@qt.io>
* | Shortcut settings: Simplify code that extracts shortcut itemEike Ziller2018-03-291-17/+18
| | | | | | | | | | Change-Id: Ib9e6c11ea26c09837629ac2ef1c1dff0def1a9dd Reviewed-by: David Schulz <david.schulz@qt.io>
* | Clang: Honor directories for the file nameMarco Bubke2018-03-284-19/+88
| | | | | | | | | | | | | | | | | | | | The file name id must be unique for very entry, so the directory id must be incorporated too. Now there is always one unique integer id for every file path. The directory id is there to access and compare the directory much faster but not provide any data to the uniqueness of the id. Change-Id: I0f9a2ca70bc9dda0ce32ebc45eb7b082821eb909 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* | Clang: Don't dereference nullptrRobert Loehning2018-03-281-3/+5
| | | | | | | | | | Change-Id: Ib36c2d18fd01684cad45042b9f1a6901a028b345 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* | Project: Use std::unique_ptr for root project nodeTobias Hunger2018-03-281-11/+7
| | | | | | | | | | Change-Id: Ice101fa57c5ee09a58dc6c99f6716fa4919ade59 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | Clang: Fix build with QTC_NO_CLANG_LIBTOOLINGNikolai Kosjar2018-03-281-3/+3
| | | | | | | | | | Change-Id: I8b3f4db10c43fc1620b765933915e3c4fd0a594a Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* | Merge remote-tracking branch 'origin/4.6'Eike Ziller2018-03-285-10/+15
|\ \ | |/ | | | | | | | | | | Conflicts: src/plugins/projectexplorer/msvctoolchain.cpp Change-Id: If2116aa2dbfdb9d07088595e791f8fa706b39e00
| * Update qbs submodulev4.6.0Joerg Bornemann2018-03-271-0/+0
| | | | | | | | | | | | | | To HEAD of 1.11 branch. Change-Id: Ie70fa4113c1af7ba3c75c4618ded9711d3dcdaa7 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
| * Clang-cl: Fix restoration of clang-cl compilerAndy Shaw2018-03-262-6/+12
| | | | | | | | | | | | | | | | compilerCommand was not restored, so isValid failed. Task-number: QTCREATORBUG-19255 Change-Id: Idc65aaf2eaad348f05cdf4dfd057bbd10c6c4e4c Reviewed-by: David Schulz <david.schulz@qt.io>
| * GenericProject: Fix adding several makestepsTobias Hunger2018-03-231-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | Fix adding several makesteps to generic projects again. The problem used to be that the constructor called by "Step" set a buildTarget of "" via the delegation to GenericMakeStep's constructor and then added "all" explicitly. So it was attempting to build two targets, with the empty target being a syntax error. Task-number: QTCREATORBUG-20108 Change-Id: I7382a1fa8b8b5869e6be11367e27d6a786f6aa74 Reviewed-by: hjk <hjk@qt.io>
| * Clang: Check that local renaming QFuture is not cancelledIvan Donchevskii2018-03-201-0/+2
| | | | | | | | | | | | | | | | We can't take QFuture result if it's cancelled. Task-number: QTCREATORBUG-20008 Change-Id: I781746cf1d638627bb5992efa23d94111908f6d0 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* | Clang: Process SymbolKind and SymbolTags with the indexerMarco Bubke2018-03-275-49/+77
| | | | | | | | | | | | | | | | We add the infrastructure to compute the SymbolKind and SymbolTags in the indexer. Later we have to add more for templates, virtual functions etc.. Change-Id: I9203c5cfbfffed3065337292010de5fce5736453 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* | Clang: Improve access to caching structureMarco Bubke2018-03-271-8/+11
| | | | | | | | | | | | | | | | The clang file id is counted from zero, so it better to use a vector instead of a hash with all the overhead. Change-Id: Iaf201898e9e16005d196b5b49065f15f9d3d2dfa Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* | Clang: Use the clang indexer for indexingMarco Bubke2018-03-2711-190/+247
| | | | | | | | | | | | | | | | It is not removing so much code but will makes somethings easier in the future. We added the SymbolType::Definition too. Change-Id: I4e106b8518e6bfed0c6a4aa6be61c4a5fe5f8bef Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* | Clang: Fix initial tidy settings tabIvan Donchevskii2018-03-272-1/+2
| | | | | | | | | | | | | | When no settings exist it has to be disabled. Change-Id: I1cb8368edf182fa616930f5718323c8e03a0e649 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* | ClangSupport: Fix qbs build after incomplete refactoringJoerg Bornemann2018-03-275-175/+0
| | | | | | | | | | | | | | | | | | Remove files that are not supposed to be built anymore. These were removed from the .pro file, but the .qbs file picks them up, because it uses wildcards. Change-Id: I457044147153baadcc223ff7e9d6b5497dd80fc0 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* | QmlProject: Use new helper function to create run configuration widgetshjk2018-03-273-22/+3
| | | | | | | | | | Change-Id: I471fe60d25bb3d8ca3ebf2d2abe8e725bc7daa56 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* | AutoTests: Fix build after ClangStaticAnalyzer plugin renameIvan Donchevskii2018-03-272-5/+5
| | | | | | | | | | | | Change-Id: Ic34633f98e6c3c1b73389802429f3011e87b301e Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* | iOS: Use base method to list run configurationshjk2018-03-274-23/+6
| | | | | | | | | | | | | | The base method is good enough nowadays. Change-Id: I1affc678a2168d002ed8f627a56f172e30c1c0be Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
* | Android: Use base method to list run configurationshjk2018-03-274-26/+7
| | | | | | | | | | | | | | The base method is good enough nowadays. Change-Id: I8e7e9acbade239ff0dce4ac594b62d23cc5522cb Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
* | Clang: Remove old CPP codeMarco Bubke2018-03-263-42/+0
| | | | | | | | | | | | | | | | It was there to suppress warnings but this is now done with compiler arguments. Change-Id: I62edae9c115c09aa07601547159c04e038943a9b Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* | Clang: Improve interfacesMarco Bubke2018-03-2652-316/+186
| | | | | | | | | | | | | | | | | | | | The interfaces should never used to handle ownership. So it is now using protected destructors. Copy operations are forbidden too. https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#c35-a-base-class-destructor-should-be-either-public-and-virtual-or-protected-and-nonvirtual Change-Id: Ib0b60a73a7ec130973b5cb0095cc5b2f10fa0758 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* | Fix that menus didn't show ampersands in files namesEike Ziller2018-03-267-11/+27
| | | | | | | | | | | | | | | | | | | | And instead interpreted the ampersand + following character as an accelerator key. Task-number: QTCREATORBUG-17817 Change-Id: I327239499ce56e75fd12f2df5be60d4b04913acd Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* | ClangStaticAnalyzer: Rename plugin to ClangToolsIvan Donchevskii2018-03-2664-97/+97
| | | | | | | | | | | | | | | | | | ClangStaticAnalyzer is only one of the tools that we can use and it will stay inside ClangTools plugin. Change-Id: I74278e3fd12b792ab127d352db05d856c964968c Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* | Icons: Remove transition helperArnold Dumas2018-03-231-15/+1
| | | | | | | | | | Change-Id: Iff8b3d50cc212ec5f40b494e455e36909fee0c80 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | iOS: Fix compilation before it breakshjk2018-03-231-5/+9
| | | | | | | | | | | | | | | | Make #includes self-contained, anticipating breakage in the upcoming removal of projectexplorer/runconfiguration.h in qmakeproject.h Change-Id: I7e7bc6224cde3f350d1880a97953e0e94ac5a80a Reviewed-by: hjk <hjk@qt.io>
* | Clang: Rebuild overview model tree when token data is updatedIvan Donchevskii2018-03-235-1/+22
| | | | | | | | | | | | | | | | In release builds overview model tree is built earlier then the job with token information is completed. Change-Id: I1a563551e813996001fb97924ac441e2b7d599b9 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | CMake: Remove icon from QRC fileTobias Hunger2018-03-231-1/+0
| | | | | | | | | | Change-Id: Idf0187858b7617d52f8d91b2b2d6febe1ea93bca Reviewed-by: hjk <hjk@qt.io>
* | CMake: Move CMake project settings page into Build & RunTobias Hunger2018-03-232-3/+3
| | | | | | | | | | | | Change-Id: I51d482aa0187e4fc501d6c82f506c9874ffc6551 Reviewed-by: Nikita Baryshnikov <nib952051@gmail.com> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | CMake: Make cmake build step available to all build step listsTobias Hunger2018-03-231-1/+0
| | | | | | | | | | | | | | | | | | | | | | "cmake --build ." is useful to build, clean and deploy, so offer it everywhere. This fixes soft asserts as a side effect when loading cmake projects with existing "cmake --build . --target=clean" in their clean steps. Change-Id: I39e5866f6012b9ea1153da324e4abd1cd25fea92 Reviewed-by: hjk <hjk@qt.io>
* | CMake: Remove code that is obsolete since QtC 3.7Tobias Hunger2018-03-231-9/+4
| | | | | | | | | | | | | | Saved data has changed in QtCreator 3.7, remove compatibility code. Change-Id: I27e1f163f905b5f8fd105f3cdeaf047777a1c06c Reviewed-by: hjk <hjk@qt.io>
* | PythonEditor: Simplify PythonRunConfigurationWidgethjk2018-03-231-30/+14
| | | | | | | | | | | | | | | | Use new wrapWidget() convenience function and don't use members for locally used items. Change-Id: Ia063501a124a56d0ade82dbc17d1087b11d4a88e Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | fix qbs buildDavid Schulz2018-03-221-0/+5
| | | | | | | | | | | | | | broken by 190c5083b7fe449ee1848ff8173931e6eb269ae5 Change-Id: I28b509c91e3cc4e80c4dde1748bc92415929a46d Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* | Clang: Use PCHs for indexingMarco Bubke2018-03-2248-136/+637
| | | | | | | | | | | | | | | | | | | | | | | | As generating the AST is quite expensive it would be very useful to cache the not changed include. So we generate PCHs for include outside of a project part. With this change this PCHs are used by the indexer. For that they are save to the symbol database by the PCH manager and when fetched by the symbol indexer. Change-Id: I7a5b07cfb32d72d50dc52d2b108cd41727a7bfc7 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* | ProjectExplorer: Add kit environment flag to force MSVC English outputIvan Donchevskii2018-03-222-3/+49
| | | | | | | | | | | | | | | | Enabled only on Windows. Task-number: QTCREATORBUG-316 Change-Id: I69fb92f2eafa089b51e91390bc3099982465c246 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* | OutputPaneManager: Use a structure for related pieceshjk2018-03-223-152/+127
| | | | | | | | | | | | | | | | | | One vector with things handled together can be better that keeping four vectors in sync. Change-Id: I47865a5a2147a3795a3c820aa2676fb9611cab25 Reviewed-by: Nikita Baryshnikov <nib952051@gmail.com> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | Consolidate some run configuration widget boilerplatehjk2018-03-226-40/+18
| | | | | | | | | | | | | | | | | | | | | | This removes the outermost layer of widget-vbox and moves some common code into a helper function. The pattern repeats (with variations) a few more times, that's left for later patches. Change-Id: I8c98229cf41d03d5330c896ec9fa0965bfc65602 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* | Core: Fix warnings about writable constant Q_PROPERTIESTobias Hunger2018-03-222-2/+2
| | | | | | | | | | Change-Id: I556663a23af33e09fc141c019b76745a88852ca1 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | Debugger: Remove the RebuildBreakpointModel command flagshjk2018-03-224-36/+9
| | | | | | | | | | | | | | | | | | | | This was useful to trigger collective attemptBreakpointSync() in the gdb engine when gdb did not yet track pending breakpoints by itself. That's not needed anymore. Change-Id: I8afd2955070504c6bd6ae6c028b3f006b6eb4d7c Reviewed-by: David Schulz <david.schulz@qt.io>
* | BareMetal: Use now-standard WorkingDirectoryAspecthjk2018-03-225-82/+11
| | | | | | | | | | | | | | | | Simplifies run configuration implementation. Change-Id: Ia5a2f01de70ed8a54b26c4288ee3e2b375c2c59c Reviewed-by: Alexander Drozdov <adrozdoff@gmail.com> Reviewed-by: David Schulz <david.schulz@qt.io>