Commit Graph

44854 Commits

Author SHA1 Message Date
hjk
07332eecb3 QmlProfiler: Use StandardRunnable in LocalQmlProfilerRunner
Change-Id: I8c59f9dfe562717edd86453b0154b7f2811a06f3
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-01-28 08:08:19 +00:00
hjk
5a090230a1 Debugger: Use StandardRunnable in StartApplicationDialog
Change-Id: I5f8936d887c43ee644ad175d9d4c53857bc00436
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-01-28 07:04:04 +00:00
Christian Stenger
09bc4baf3c AutoTest: Fix source file construction on Windows
Task-number: QTCREATORBUG-15667
Change-Id: I4d0e81a39a5031403d77fb3e2179ed17451346b4
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-01-28 07:03:53 +00:00
Sergey Belyashov
82693c8abb Update Russian translation
Change-Id: I20b894139b8d21b3c90c018a4866f96b6c45ac33
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
2016-01-27 19:07:10 +00:00
hjk
f2012bca8f Analyzer: Remove explicit working directory storage in run control
Instead, use the one in its (Standard)Runnable.

The change is mechanical except to the fallback to the project directory
which was introduced in 8150209f to keep some compatibility with the previous
setup of the Android runner which created and copied the fallback value around
and ignored it in the end. Not producing the fallback value is less effort.

Change-Id: Ie04da570f0f9fbc1d048f2eacaed522f7253afa3
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-01-27 16:34:01 +00:00
Nikolai Kosjar
06a99af0f6 Revert "Clang: Fix text format for completion details" from 3.6
This reverts commit c5f70a3bad1ee2457741459cafb6419c67c417ad.

We will set the rich text unconditionally in a follow-up change to
simplify things.

Change-Id: I59aad8e33011ef68aa7c32ec80bb02edfd29c6a6
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2016-01-27 16:31:10 +00:00
hjk
61709e9266 Analyzer: Use a StandardRunnable instead of an AnalyzerRunnable
... with a lot potential to code consolidation.

Change-Id: I4d3a7fcc1cc6ae8763799f18cf9701695f387791
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-01-27 15:29:11 +00:00
Tobias Hunger
fa17e27b7f CMake: Delay initialization of CMakeTools
Do not run cmake 5 times during startup. Delay that as far as possible.

Also add a supportedGenerators() method while visiting the code anyway.

Fix up and simplify the other cmake help output parsers.

Change-Id: I6622d552ffe559bf099b4b278618676a045e350e
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-01-27 12:43:45 +00:00
Eike Ziller
acdfb09687 QmlJS: Use Utils::runAsync and add some more progress information
runAsync avoids the globally shared thread pool.
updateCppQmlTypes missed some kind of progress information.

Change-Id: I8739761326c2f2a5364c0c1552b3c43b00f1ff28
Reviewed-by: Marco Benelli <marco.benelli@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-01-27 12:27:59 +00:00
hjk
7be3eb85e1 RemoteLinux/Qnx: Use StandardRunnable
Change-Id: I73331985eb68065b5fb123ff4491888d824de766
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-01-27 11:20:12 +00:00
Nikolai Kosjar
bfa292cdc9 ClangStaticAnalyzer: Tests: Fix failing runner tests on Windows
Both runner tests fail on Windows at

	QVERIFY(st.expectStartedSignal());

because QProcess::started() is emitted before ClangStaticAnalyzerRunner::run()
returns and thus before QSignalSpy::wait() is reached.

Watch out for the signal manually before calling run().

Change-Id: Ia786bfc6c859a4a4b420aeccc7e7f7bb0b4c47c0
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-01-27 09:47:07 +00:00
Tobias Hunger
cfa9dd4c03 CMake: Use pragma once consistently
Change-Id: Id164dea5e7047b87c3d11c53ebd044d567129e9c
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-01-27 09:15:45 +00:00
Eike Ziller
a2e19ba1be QmlJS: Exchange unsafe meta calls with QTimer::singleShot
Change-Id: I5596c3f506f1fb873536c03ed5b8f5df88f5ea06
Reviewed-by: Marco Benelli <marco.benelli@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-01-27 08:24:14 +00:00
Orgad Shaneh
f26a4c2954 Git: Default to * file pattern in Grep
Change-Id: I5f763b7b2f8c0bc2373bf1151691b3e8b4cff757
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-01-27 08:19:24 +00:00
Orgad Shaneh
048a012d21 Utils: Minor cleanup in ShellCommandPage
Change-Id: I4991caf2b96ccbcfe3ef763370c68678cd2e1424
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-01-27 08:19:15 +00:00
Christian Stenger
9ff5786d53 AutoTest: Fix parsing of file/line information for gtest...
...this was wrong in cases where we have additional output before
this information.

Change-Id: I6f55c48815217da98078d40e5a0f1f4ce4ad8a77
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
2016-01-26 16:27:43 +00:00
hjk
50499079dc Valgrind: Fix test compilation
Change-Id: I1b64cab7326830cec86b9b5154e9efb6d0ea8569
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2016-01-26 15:20:41 +00:00
hjk
403fe30a30 RemoteLinux: Move portsUsedByDebugger() to DebuggerRunConfigurationAspect
Change-Id: I0add29c3c69c4ba59cea159f32ca74be58bcee59
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-01-26 14:54:35 +00:00
hjk
9a3b340c00 Valgrind: Use StandardRunnable in ValgrindRunner and ValgrindProcess
Change-Id: I17def50bbf6887b63d676fdb245064f1df2003de
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-01-26 14:27:00 +00:00
Orgad Shaneh
96a9f1011f Valgrind: Prevent division by zero
Change-Id: Idf695a99c2f8cf53b0d0e0268a848c58a85af3cb
Reviewed-by: hjk <hjk@theqtcompany.com>
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-01-26 14:16:01 +00:00
hjk
1f0594050f Qnx: Code cosmetics
Some Qt 5 connects, auto, namespaces, ...

Change-Id: I3e206d95715f988473c9b7c3d01658e6d4d925ae
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-01-26 12:44:25 +00:00
Orgad Shaneh
621c834023 AutoTest: Clear description on test start
Task-number: QTCREATORBUG-15668
Change-Id: I031941938f59e59e0e05d3284b12ef09993f6541
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-01-26 11:42:29 +00:00
hjk
1403cd7f43 ProjectExplorer: Use environment from Runnable
... instead of re-fetching it from the EnvironmentAspect.

Change-Id: Iab25d7d828ac3811eebc8bb149f53e61299e500e
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-01-26 11:23:14 +00:00
Eike Ziller
4659f2caca ShellCommand: Some tweaks of QtConcurrent usage
Use Utils::runAsync to avoid use of global thread pool. Move watcher
connect to constructor. Report "failure" of the command by internally
canceling.

Change-Id: Ib7616734176be2ad9356162724ca06cfd8821e52
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-01-26 10:27:09 +00:00
hjk
d35f4fb72d ProjectExplorer: Use StandardRunnable in LocalApplicationRunControl
Also un-export LocalApplicationRunControl.

Change-Id: Ide5dbb61035d9f648f517a9d89763803ac0c4d26
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-01-26 10:09:46 +00:00
hjk
9ae2ce7629 ProjectExplorer: Drop LocalApplicationRunConfiguration
The functionality can be provided by producing a suitable Runnable
in the derived classes directly.

Change-Id: I7b8e8fe33fffd2b00176b6cf6633eca4e152e466
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-01-26 10:09:29 +00:00
Topi Reinio
4ea8caccf2 Doc: Extending Qt Creator Manual: Fix documentation config
- Add missing sourcedir (../api) to get landing page and other
     documentation generated.
   - Remove invalid sourcedirs (Find and Locator plugin directories
     no longer exist).

Change-Id: I125e86702eaded08de342e103970281984f449d4
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
2016-01-26 09:29:27 +00:00
Leena Miettinen
2eaaed3428 Doc: update information about commercial features
Using the Auto test plugin or QML Profiler extensions
no longer requires a commercial lincense.

The ISO Icon Browser was missing from the list of commercial
features.

Change-Id: Ic40c8ae5bddea5424f2de57d8e2ece17588428ff
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-01-26 09:27:29 +00:00
Alessandro Portale
126d1b0811 TextEditor: Remove obsolete "customized.xml" feature
In case the qtcreator.ini has a TextEditor section without a defined
ColorScheme value, Qt Creator decides to create a new "styles/customized
%i.xml" and select that as scheme.
I assume that this was implemented way back then, as migration code when
selectable Color Schemes were introduced. These days, it makes
maintenance (and implementation of QTCREATORBUG-15229) more difficult.
Let's remove it.

Task-number: QTCREATORBUG-15649
Change-Id: I49102d02fa8e582a92f6e39faa8c7d3b58f531b3
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-01-26 09:25:42 +00:00
Eike Ziller
6ddd0e579f Coding style: Prefer "#pragma once" over header guards
It's not even "modern" anymore ;)

Change-Id: Id0074f58f6ae669e09168274eab4c3c4ef7359dc
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
2016-01-26 09:12:17 +00:00
Tobias Hunger
58ba91b924 IOutputParser: Cleanup and fix
Change-Id: I6ab47e44056c9af7def4e5eb301b1e64f6766c32
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-01-25 16:29:11 +00:00
Orgad Shaneh
6fee5a88f3 Git: Support Git Grep
Task-number: QTCREATORBUG-3556
Change-Id: Ieca1bdaa39281a2e085340f045e5a48b875f7967
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-01-25 14:43:00 +00:00
hjk
96a4458121 AndroidQmake: De-noise AndroidQmakeBuildConfiguration class
Change-Id: I8965fc054fd479105276422eae43a4df636f7ca8
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-01-25 14:12:58 +00:00
Fathi Boudra
82e0c2933a Use x-terminal-emulator on Debian based distributions
Brought from debian source package

Change-Id: Iaae2a35b5aff233f536ceee38555522dc9fd8527
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
2016-01-25 13:25:54 +00:00
Tobias Hunger
41ef1afa2c QMakeAndroid: Build- and warning fixes
Change-Id: I04b0849eeb2991b03892fcc97cb65a2f5ace5805
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-01-25 12:42:11 +00:00
Eike Ziller
4320505501 Merge "Merge remote-tracking branch 'origin/3.6'" 2016-01-25 12:21:36 +00:00
Eike Ziller
d18d7eaef6 Merge remote-tracking branch 'origin/3.6'
Change-Id: I4e1ec4054d7364057c63e63e293a246e64afdddb
2016-01-25 13:21:18 +01:00
Eike Ziller
a6f5548331 Git/Clean: Fix issues with submodules
- If the git config contained old entries for submodules that were
  removed (they are not cleaned from the config automatically),
  it would add submodules with empty "dir", which lead to infinite
  recursion

- When recursing into submodules, we need to prepend the paths from the
  git output with the relative path from the main repository

Change-Id: I0bc6a1973f4cdeb1c3f09c05cd7736c25471f72e
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-01-25 12:20:31 +00:00
Christian Kandeler
a081e8c96f qbs build: Fix autotest runner on Windows.
The tests need to find Creator's libraries and plugins at run-time.

Change-Id: Ided40e70693650a0099661dd961223c5b68da646
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2016-01-25 09:39:52 +00:00
Christian Kandeler
f068745868 Autotest plugin: Fix qbs build.
Change-Id: Iba3475730baed1051b3231a8d543322e205aae29
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-01-25 09:17:12 +00:00
Christian Kandeler
47b8ee09e2 QbsProjectManager: Remove "dry run" build option.
The way this option works is not IDE-compatible, since the build process
changes the build graph and relies on the changes being transient simply
by not storing the build graph afterwards. This is fine for the command-
line tool, but Qt Creator keeps the build graph open and subsequent
"real" builds will finish immediately even when nothing has actually
been built yet.
Perhaps it would be possible to do the implementation differently, but
having the "dry run" option in Qt Creator is not valuable enough to
justify that effort.

Change-Id: Ic99ddef63555f6029c5857d2cfd8dc48d8a72914
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Reviewed-by: Jake Petroules <jake.petroules@theqtcompany.com>
2016-01-25 08:56:02 +00:00
Thomas Hartmann
e3a3792fd6 Removing support for DebuggingHelpers
This patch removes infrastructure and ui for DebuggingHelpers
and specifically qmldumptool.

The qmldumptool was the last relevant DebuggingHelper and is only required
for Qt < 4.8.

Change-Id: I3767be0858e5eba16a33a3ab8436e95fc06a9e99
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-01-25 08:55:27 +00:00
Orgad Shaneh
edb55e1f66 Debugger: Suppress qWarning for debug messages
The following message was observed when debug session is done:

  Warning: STUB EXITED EXPECTEDLY (no active run control)

Change-Id: I21778dd70659a0fe4105c386e1e1693a8b81ac05
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-01-25 07:48:00 +00:00
hjk
6de4accea9 Analyzer: Re-use AnalyzerRunnable in StartRemote dialog interface
Change-Id: I0cea5232555cc950342c56e60cfc2cf099b06f2b
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-01-25 07:15:55 +00:00
Christian Stenger
5b9350baf6 Fix compile for Qt5.4
Introduced with f443c95dcc.

Change-Id: I6fcc2c429b90cb56a02c3c63f0788fcf0ab1df52
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2016-01-25 06:12:44 +00:00
Orgad Shaneh
6062d3953d AutoTest: Fix pass/fail parsing on Windows
Chop \r

Change-Id: Ibd1ce9025a681aefcdce0c01a842903fda8a8e30
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-01-25 06:00:10 +00:00
Orgad Shaneh
8850e163e3 AutoTest: Add an accelerator to menu entry
Change-Id: I8e94912fdbdf1f0dbd7366e96222d04f6c838586
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-01-25 05:59:09 +00:00
Orgad Shaneh
e3d4e1c825 AutoTest: Fix invalid escape sequence
Change-Id: I9cd09327a561eb8691e358d77a455714838397bb
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-01-25 05:58:48 +00:00
Thiago Macieira
f443c95dcc Adapt to QtGui changes that broke private API source compatibility
The public constructors in QTextCursor that were private API are no
longer public.

Task-number: QTCREATORBUG-15238
Change-Id: I3bc59670b62d4afaa645ffff1411b76029249840
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-01-22 23:45:08 +00:00
Ulf Hermann
938d1cd44b Avoid starting tools without projects
This leads to crashes when the tools expect RunConfigurations.

Change-Id: I4960e7d189d92b6e81d4e5c069634c9111405e72
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-01-22 17:56:42 +00:00