summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | Clang: Use PCHs for indexingMarco Bubke2018-03-2275-251/+1139
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Increase requirement for building Qt Creator from Qt 5.6.2 to Qt 5.9Eike Ziller2018-03-223-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Qt 5.11 will be released and Qt 5.9 is the new LTS. Increasing the requirement allows us to remove some baggage and workarounds like Utils::asConst, special Q_OVERRIDE header, and deployment target adaptions on macOS, and simplifies pulling in proparser changes from Qt. Change-Id: I9faf99336d26dd20bd63e6904ae543c0f351aa4d Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Tobias Hunger <tobias.hunger@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>
* | Debugger: Fix enum dumperhjk2018-03-226-42/+30
| | | | | | | | | | | | | | Make the hex display work with LLDB, fix GDB and LLDB test. Change-Id: I529b5cdc908dbcba7270bc4574fa59a012fcacad 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>
* | BareMetal: Fix run configuration display name setuphjk2018-03-226-37/+28
| | | | | | | | | | | | Change-Id: I0ba784a4d775730277ec0b21aef649011f37b739 Reviewed-by: Alexander Drozdov <adrozdoff@gmail.com> Reviewed-by: David Schulz <david.schulz@qt.io>
* | TextEditor: Fix default context menuEike Ziller2018-03-222-15/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Text editor implementations that did not do anything special with invoking their context menu, including our plain text editor, only had Qt's default context menu, without Qt Creator's clipboard history and BOM actions. Make the default actions in our custom context menu more similar to Qt's default actions by adding Undo, Redo and Select All, and not hiding disabled actions, and use that by default in all text editor implementations. Change-Id: Idd5fb276dcd652223d96536dacde8110f9eb576f Reviewed-by: David Schulz <david.schulz@qt.io>
* | Be a bit more perl-like with regular expression replacementsEike Ziller2018-03-221-9/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since we now use QRegularExpression and state Perl compatibility. - & and \& expand to & - $<number> exapands to capture group at position <number> - $$ expands to $ - $& exapnds to whole match - \<number> and $<number> expand to nothing if <number> is greater than number of capture groups Task-number: QTCREATORBUG-9602 Task-number: QTCREATORBUG-15175 Change-Id: I17cea3239abaf130626f2bf224aabf0e9b1c6cef Reviewed-by: David Schulz <david.schulz@qt.io>
* | Plugins: Re-categorize plugins which are in "Qt Creator" categoryRazi Alavizadeh2018-03-2010-10/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | Category of DiffEditor, ImageViewer, Macros and UpdateInfo was removed, i.e., they were moved to "Utilities" category. Category of other plugins that were in "Qt Creator" category, changed to "Core". By this patch, forks of QtCreator don't need to change *.json.in files locally. Change-Id: I243c6b1831c0b880d32b2118db71f0b281590b7b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | FilePropertiesDialog: Show mime-type and default editorRazi Alavizadeh2018-03-204-32/+78
| | | | | | | | | | | | | | | | | | | | Added two new rows, Mime Type and Default Editor, to "File Properties" dialog. File properties dialog is a good place to show these information. Change-Id: I131b17a18679b1b94880b8f109fe166500ca34ef Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* | Restore extra editor windows when opening sessionEike Ziller2018-03-204-6/+68
| | | | | | | | | | | | Task-number: QTCREATORBUG-13840 Change-Id: Idf87d0fd2d0b20f8239487a1c7bf31ea63456d42 Reviewed-by: David Schulz <david.schulz@qt.io>
* | Clang: Add lastModified to the precompiled headerMarco Bubke2018-03-2013-44/+48
| | | | | | | | | | | | | | | | It is important to know then the PCH generation started, so we can compare the header file time stamps against it. Change-Id: Id8ee91e886c153d9d4a37cc0438c682f2098f7fa Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* | Clang: Check that follow symbol QFuture is not cancelledIvan Donchevskii2018-03-201-0/+2
| | | | | | | | | | | | | | We can't take QFuture result if it's cancelled. Change-Id: I493e083c0d35e753d1b2616caf2081f472393e34 Reviewed-by: David Schulz <david.schulz@qt.io>
* | CustomExecutable: Improve tool tip on working directoryEike Ziller2018-03-201-1/+0
| | | | | | | | | | | | | | | | | | | | Do not set a base path on the path chooser. There shouldn't be a base path since that effects the path chooser's expanded path, which is never used for the working directory. Task-number: QTCREATORBUG-13576 Change-Id: Ie7735dc726b442d97b2108e8d340d904c70aa5a6 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* | Utils: Watch file replacements with FileSystemWatcherUlf Hermann2018-03-201-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's quite common for other programs to remove and re-add a file in order to change it. QFileSystemWatcher does not track this, but silently drops the file to be watched. Add a directory watcher for each directory with files to be watched and if that triggers, examine if one of the files we are watching in that directory has been re-added. If so, generate a fileChanged() signal. This still doesn't track replacements of directories. If we want to track those, we could apply the same technique to directory watchers, but we'd have to recursively watch directories down to the file system root. Change-Id: I8a70b76bb34502dcfac390ba90e715918d7a5b4a Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Brook Cronin <brook.cronin@qt.io> Reviewed-by: hjk <hjk@qt.io>
* | Simplify DesktopQmakeRunConfiguration::updateTargetInformation() a bithjk2018-03-202-17/+5
| | | | | | | | | | | | | | No need for looking up buildTargetInfo twice. Change-Id: I730d7e827d9b5e81a2174ca763c3a89b24389742 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* | Search Results: Fix expand all button state at startupEike Ziller2018-03-201-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | It was enabled at startup even though it should only be enabled if actual search results are shown. Do not set the enabled state on the button, but on the local action instead. The button has the Command's action as its default action, and the state of that action can be overridden by the local action's state at context change. Change-Id: I045d022836b12375dc49d4ee0ffd4802d795db3b Reviewed-by: David Schulz <david.schulz@qt.io>
* | Drop QFileInfo::exists() check before trying to run an executablehjk2018-03-201-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | Physical existence of a file is not strictly needed for something being runnable, e.g. 'foo' can be used to start a process on windows, even when only 'foo.exe', but not 'foo' itself exists. On the other hand, the existence of the file is not sufficient either to run it, so the check was too weak and too strict at the same time. Change-Id: I4a41d2f5cbb0cb471023a8bc23628072b28a5984 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io>
* | Debugger: Make QList as movablehjk2018-03-201-1/+5
| | | | | | | | | | | | | | | | Apparently changed in qtbase dafa3618d23. Task-number: QTCREATORBUG-19812 Change-Id: I70f543c71cc2147cbd5ab33a070e1a35049f46a8 Reviewed-by: David Schulz <david.schulz@qt.io>
* | QmlDesigner: Fix compilation before it breakshjk2018-03-192-0/+3
| | | | | | | | | | | | | | | | Make #includes self-contained, anticipating breakage in the upcoming removal of projectexplorer/runconfiguration.h in qmakeproject.h Change-Id: Ia166ccb3c830c3cc6f50181690ba281d4a705de8 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | WinRtRunConfigFactory: Use base method to list run configshjk2018-03-195-29/+8
| | | | | | | | | | Change-Id: I444b676d522cea88f024d33d56ce407341c12274 Reviewed-by: David Schulz <david.schulz@qt.io>
* | CppTools: Remove processEvents call from follow symbolIvan Donchevskii2018-03-1922-128/+199
| | | | | | | | | | | | | | | | processEvents is a bad way of dealing with asynchronous requests. Use QFutureWatcher for that purpose. Change-Id: I3839cb9db80a6d391f6af1178e96986a325b7b99 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* | ProjectExplorer: Create clang-cl toolchain also for CIvan Donchevskii2018-03-191-3/+5
| | | | | | | | | | | | | | clang-cl can build both C and C++. Change-Id: I173b4e9e8f1726f328fd7af5782435566be5b932 Reviewed-by: David Schulz <david.schulz@qt.io>
* | ProjectExplorer: Add support for clang-cl based on MSVC2017Ivan Donchevskii2018-03-191-6/+35
| | | | | | | | | | | | | | | | Clang is compatible with MSVC2017 since 6.0 version. Task-number: QTCREATORBUG-20087 Change-Id: I5403790c02a7dc04a58f30078fc7abac5755826e Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* | Clang: Add combobox with tidy configuration optionsIvan Donchevskii2018-03-197-109/+323
| | | | | | | | | | | | | | | | | | The old way was not flexible enough. With these options it's possible to just use your config file or set tidy command line yourself. Change-Id: I1bace40986668dee5e1b30c9d03090a3fd22e253 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* | ProjectExplorer: Prevent crash on project closinghjk2018-03-191-3/+3
| | | | | | | | | | | | | | | | | | | | Introduced with e20d6200436d, currentProject will be null when a project gets closed. The previous code path had access to a locally cached and still valid pointer to the project that's about to be closed. Change-Id: I3260b4ed1ac325fc2be0e8bba934d7888b1d698c Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* | Merge remote-tracking branch 'origin/4.6'Eike Ziller2018-03-198-5/+37
|\ \ | |/ | | | | | | | | | | | | Conflicts: qbs/modules/qtc/qtc.qbs qtcreator.pri Change-Id: Ifd9524b0155067faf9d8a90858cc5f7da6b651bf
| * Synchronize autotest defines in qmake and qbs buildJoerg Bornemann2018-03-194-3/+14
| | | | | | | | | | | | | | | | | | | | | | Do not remove QT_USE_FAST_OPERATOR_PLUS and QT_USE_FAST_CONCATENATION in QtcAutotest, but in the two tests that won't build with it. In the qmake build the defines are not removed from json.pro, because this file does not include qttest.pri. Change-Id: I97d173528ca2a02bac1bfae30709a959e6b69375 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| * ProjectTree: Add missing registration of pre-existing projectsTobias Hunger2018-03-161-1/+3
| | | | | | | | | | | | | | | | | | Register pre-existing projects when opening a new Project View. This fixes missing parsing state on newly opened Project Views. Task-number: QTCREATORBUG-20058 Change-Id: I47cd4791c1b8eac7717a7ce2b35d7f35bba5826a Reviewed-by: hjk <hjk@qt.io>
| * Version bump to 4.6.0Eike Ziller2018-03-162-9/+9
| | | | | | | | | | Change-Id: Ibf3dd86a654080cb9b5ab2a4fd790f8f59879787 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
| * Fix scrolling in file system viewEike Ziller2018-03-161-0/+1
| | | | | | | | | | | | | | | | | | | | The style can set the scroll bar to scroll by item, which breaks the automatic scrolling that adapts for size changes of the bread crumbs. Force the tree view to allow pixel-exact scrolling. Task-number: QTCREATORBUG-19800 Change-Id: If61640a1b6e3b4a777269fb129bdc2689bad19c2 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * Merge remote-tracking branch 'origin/4.5' into 4.6Eike Ziller2018-03-161-0/+18
| |\ | | | | | | | | | Change-Id: I40a17204340e6fab18b720c3c3306a6a239abf99
| | * Add changes file for 4.5.24.5Eike Ziller2018-03-141-0/+18
| | | | | | | | | | | | | | | Change-Id: I66fd1f5b1ece8ea7c1dc0f8f14d36d5f77b69f8c Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* | | Nim: Fix typoRazi Alavizadeh2018-03-192-3/+3
| | | | | | | | | | | | | | | | | | | | | Fix a typo: Rename matchMultiLineCommendEnd() to matchMultiLineCommentEnd() Change-Id: I2c1a5280c8abb05b9f76d0d8cce138d8a40ad014 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | | Use angle on WindowsThomas Hartmann2018-03-191-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Many OpenGL drivers are still very unstable and we see many issues. Task-number: QTCREATORBUG-20067 Change-Id: Ifc1d5b2666f9cc69154032c3c4534cd96194110c Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | | Enable Clang code model by defaultEike Ziller2018-03-161-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It has been around for a long time now, many e.g. windows specific issues have been fixed, and we concentrate our development effort on it. Many bugs in the built-in model stay unfixed, and we'll definitely not support modern C++ there, which leads to many bug reports that are closed with "works in clang code model". Let's switch that around. Task-number: QTCREATORBUG-19297 Change-Id: I59ec9621ad76590db8ec33f9658af6d103c9da93 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* | | CMake: Some cosmetics to move closer to default stylehjk2018-03-162-16/+9
| | | | | | | | | | | | | | | | | | Change-Id: If2c36eda6157e5dd78abf4f25029ecfd153e228a Reviewed-by: pawelrutka <prutka13@gmail.com> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* | | Qmake: Remove now-unused QmakeProject::hasApplicationProFilehjk2018-03-162-7/+0
| | | | | | | | | | | | | | | Change-Id: Ie309468a124497c0aafa3911b5bd6939a9adcb3d Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* | | CMake: Compile fixhjk2018-03-161-1/+2
| | | | | | | | | | | | | | | | | | Change-Id: I3f9d07490ab98ec1f5e0d0acd9def2d02010ea12 Reviewed-by: pawelrutka <prutka13@gmail.com> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* | | TargetSetupPage: Work for projects without BuildConfigurationTobias Hunger2018-03-164-51/+64
| | | | | | | | | | | | | | | Change-Id: Ie145bc3c87f01326a25e75f5c80a4d05da58bf6b Reviewed-by: hjk <hjk@qt.io>
* | | AutoTest: Add possibility to trigger test run from sourcePawel Rutka2018-03-1610-18/+132
| | | | | | | | | | | | | | | Change-Id: Iceed69747de64d76f34451d41f719c8dbdd81e44 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | | Add Specific settings page to CMakePLugin and create checkable dialog box ↵Pawel Rutka2018-03-1611-17/+443
| | | | | | | | | | | | | | | | | | | | | | | | | | | for user after add new file action Change-Id: If5702764fa81f2fdda3ef59780b217e47643b030 Reviewed-by: pawelrutka <prutka13@gmail.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* | | Merge "Merge remote-tracking branch 'origin/4.6'"Eike Ziller2018-03-1660-1318/+2513
|\ \ \
| * \ \ Merge remote-tracking branch 'origin/4.6'Eike Ziller2018-03-1660-1318/+2513
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/plugins/android/androiddeployqtstep.cpp src/plugins/cmakeprojectmanager/cmakerunconfiguration.cpp src/plugins/qmakeprojectmanager/wizards/testwizard.cpp src/plugins/qtsupport/exampleslistmodel.cpp src/plugins/qtsupport/gettingstartedwelcomepage.cpp Change-Id: I126823f5f60613509520c07f52be7bc9d4f4367c
| | * | Squish: Update tst_rename_fileRobert Loehning2018-03-151-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Creator only selects the filename now, the extension will be left unchanged by default. Task-number: QTCREATORBUG-20057 Change-Id: I66bbbb5b95e1d487c2087efa596a87a240721e44 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| | * | Fix image border for examples browserEike Ziller2018-03-151-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It was made smaller for the tutorials to fit the new aspect ratio for their images, but we may not do that for the examples. Fixup for 7d834729065668 Task-number: QTCREATORBUG-20078 Change-Id: I556536a7e299e8f675332cd7450ece5fca6fab0a Reviewed-by: Christian Stenger <christian.stenger@qt.io>