Commit Graph

44349 Commits

Author SHA1 Message Date
Tim Jenssen
d4fe89a9dd Clang: test if the ipcClientProxy is set before sending an alive message
A crash can be happen if the back end is slow like a debug build on
windows.

Change-Id: I7352ef2732d29ac60bb0c6d9906c10b7ebefa262
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2016-08-31 10:07:51 +00:00
Tim Jenssen
fd556c85d0 Sessions: refactor SessionModel::data
no behavior change

Change-Id: Ib41af6b6b193dc88c02cdef44e8e46aac70d7dcd
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-08-31 09:03:35 +00:00
Tim Jenssen
9121299138 Sessions: move sessionmodel to an extra file
Change-Id: I96084e925ce6a47533f9c87a988ceb0834fe4037
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-08-31 09:00:58 +00:00
Nikolai Kosjar
83ea1f4deb CppTools: Add UI for file size limit of indexer
Task-number: QTCREATORBUG-16712
Change-Id: I92db8cbcac9669cbd5e4ee5f7ef6f613797c753a
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-08-31 07:47:27 +00:00
David Schulz
6c00095181 Cdb: Modernize cdb extension
Change-Id: I18b0c60108ffda6cd46db637c9de93eded7f8469
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-08-31 06:38:30 +00:00
David Schulz
89ff2c1db5 Editor: Collect indentation for a list of text blocks
Allows the indenter to reuse code formatter structures.

Task-number: QTCREATORBUG-16420
Change-Id: Ie906d7fdcb50798da02ef5b750fb03ae752aadc1
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-08-31 05:33:56 +00:00
Christian Stenger
ca3bcd811e Debugger: Provide way to process debuggee output further
Output coming from the debuggee was limited to be printed inside
the DebuggerLog and the Application Output pane, but the output
might be useful to process differently or even additionally to
the default logging.
Provide functionality to be able to add an output processor.

Change-Id: I715b90b28c64d3cf95bcc2a047a5aba1a56d1058
Reviewed-by: hjk <hjk@qt.io>
2016-08-31 04:39:16 +00:00
Christian Kandeler
b97bc4016f qbs build: Fix more warnings on Windows
Change-Id: I2104d2889cff0fd6a2473e1e141936bb781041a9
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
2016-08-30 13:57:15 +00:00
hjk
9ae90a102b Debugger: Do not use remote working dir for local processes
Task-number: QTCREATORBUG-16211
Change-Id: I55866bfb64bffb601afcafceb45934ac50b1c686
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-08-30 10:48:17 +00:00
Robert Loehning
1074b08176 ModelEditor: Fix translations in templates
Change-Id: I176bcc60d70609c9623000aaa9cceb33454ad2c5
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Jochen Becher <jochen_becher@gmx.de>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-08-30 09:40:38 +00:00
Eike Ziller
365c1b7889 Fix empty locator results for search index
Make sure that we do not cache incomplete result lists when the search
is canceled (e.g. because the user typed another character).

Task-number: QTCREATORBUG-16753
Change-Id: I5a8f7ab54bed236ccd318841d95a3a4aa4106df0
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-08-30 08:25:17 +00:00
Orgad Shaneh
0696482e67 Autotest: Add missing tr for classes with translatable text
Change-Id: I5c63e98931d4ef9f8db8df820b13f66156dfd03e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-08-30 07:17:37 +00:00
Christian Kandeler
54b2599632 Update qbs submodule
To HEAD of 1.6 branch

Change-Id: I05311515c7ecd0e626bd525e170d34d4d0f2b43c
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
2016-08-29 15:46:25 +00:00
Tobias Hunger
2e284db28d CMake: Add tooltip to autorun cmake checkbox
Task-number: QTCREATORBUG-16778
Change-Id: I94cdb9058943774007b406e29f5ca52251b5ab59
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2016-08-29 12:45:09 +00:00
Tobias Hunger
c0d1c0c587 CMake: Make Autorun CMake checkbox translateable
Change-Id: Ia2c5094e08efa8dffc9a7a843a65d825e3e95ff0
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2016-08-29 12:45:05 +00:00
Tobias Hunger
b8c83c45ac ProjectExplorer: Use Guard in favor of setIsUpdating
Change-Id: I4f8448205fe0f90d0b8554f0911e66aa74cbe9b5
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-08-29 12:44:51 +00:00
Tobias Hunger
34c8a5d592 QmakeProjectImporter: Code cosmetics
Change-Id: I2929ff11d7cecadb0cfdcfc0ebe27f581c052ba5
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-08-29 12:44:46 +00:00
Tobias Hunger
d2a7fa00eb Qmake: Make makesteps work in DeployConfiguration again
Task-number: QTCREATORBUG-16795
Change-Id: I0772114a82dfd7d41002dc91e3ae5702434b952d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-08-29 11:33:53 +00:00
Ulf Hermann
06b2ff604a QmlProfiler: Move output parser into LocalQmlProfilerRunner
In the general case we don't want the QmlProfilerRunControl to parse
the QML debug port from the application output. As for most platforms
the ports are mapped via some remote connection mechanism the parsed
port is almost certainly wrong.

In the case of local connections, however, the port is actually
correct, so we keep the output parser in the LocalQmlProfilerRunner.

Change-Id: Ifdaae85196d8b034e67bc2ba0b8c05be980b62e5
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2016-08-29 08:39:40 +00:00
BogDan Vatra
1ca42e24cb Android: Make avd name extraction even more robust
The console output changed even more and now it add one more "OK", in
order to get the right avd name we should stop searching at last "OK".

Task-number: QTCREATORBUG-16783
Change-Id: I2b69763bba740b739e3573fdfae6b6ac9ed16e95
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
2016-08-29 08:37:08 +00:00
Christian Kandeler
a7a48cabd1 PythonEditor: Fix qbs build
Change-Id: I9a3f5e541158466bbfbc74a0ab32cc815585b1cd
Reviewed-by: hjk <hjk@qt.io>
2016-08-26 15:39:52 +00:00
Tobias Hunger
4c0dec4ecd IBuildConfiguration: More const
Mark member function const.

Change-Id: I0ebdeec625ea5c6d315d5e73793f7acb6f927b39
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-08-26 13:14:01 +00:00
Tobias Hunger
4fb2932726 Nim: Remove unnecessary NimBuildInfo
Change-Id: Ie67d41081ffa3f1b732d38aed83d812c5a712493
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Filippo Cucchetto <filippocucchetto@gmail.com>
2016-08-26 13:13:44 +00:00
Ulf Hermann
72cca4855d Debugger: Have main window handle mode change separately
On shutdown the DebuggerMainWindow might not be alive anymore. By
connecting the signal handler to the window, rather than the plugin we
avoid dereferencing null pointers in that case.

Change-Id: I6421eebc6b1b76f176b31eafeb039d91edd3f0b3
Reviewed-by: hjk <hjk@qt.io>
2016-08-26 11:52:23 +00:00
hjk
56a098598f PythonEditor: Modernize/Streamline
Remove virtual, add override, add = delete, remove QLatin1*,
flatten filesystem hierarchy, remove unneeded 'inline',
use initializer list, etc.

Change-Id: I0a95d806d73ca1a33cfd1ba85c2664d9ebc32690
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-08-26 08:20:22 +00:00
Marco Benelli
19a9eac46e QmlJs: circular dependencies handling
Task-number: QTCREATORBUG-16585
Change-Id: Ia1e01f1314cd4022d59dc768752baaa367fe250a
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
2016-08-26 07:34:56 +00:00
Robert Loehning
edb0da7552 QmlProfiler: Use numerous form
Change-Id: I6430c934fa0d5a629a9bb973e4720a38ec183f9c
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2016-08-25 16:35:15 +00:00
Nikolai Kosjar
a8039d9ce2 ClangStaticAnalyzer: Simplify testing various kits
The already available ClangStaticAnalyzerUnitTests uses the automatically set
up "Desktop" kit to run the analyzer. This is fine for tests that are run in
the build environment of Qt Creator. However, testing different kits on the
same machine means to build Qt Creator itself with those kits, which is not
practical.

The new ClangStaticAnalyzerSessionTests will open the predefined session
"ClangStaticAnalyzerPreconfiguredSession" and for each project and each target
it will run the analyzer. If there is no such session, the test will be
skipped.

To manually preconfigure the desired session:

  1. ./qtcreator -settingspath /custom/path
  2. Set up the desired kits.
  3. Create a session with the name ClangStaticAnalyzerPreconfiguredSession and
     load the desired test projects.

To run the test:
  ./qtcreator -settingspath /custom/path -test ClangStaticAnalyzer,testPreconfiguredSession

Change-Id: I0f027353854088d3acf8acecc16c74e9f0516e7d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2016-08-25 14:30:31 +00:00
David Schulz
07706a9a8e BinEditor: Do not call openImpl without a file name
Task-number: QTCREATORBUG-16751
Change-Id: I64133932b405707f4d7e1e2213e1ddf73cbcc387
Reviewed-by: hjk <hjk@qt.io>
2016-08-25 12:32:40 +00:00
David Schulz
149f084b11 Editor: Use correct pointer in guard
Task-number: QTCREATORBUG-16253
Change-Id: Ie046af69c37784c1a42cc693971b42baaef2f6ff
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-08-25 12:30:44 +00:00
David Schulz
15ecdd1e23 Editor: Close proposal widget when text is pasted
Already worked with the shortcut defined in the settings, but not with
the standard shortcuts defined by QKeySequence.

Task-number: QTCREATORBUG-16586
Change-Id: I4dc02e29ee5d273c3bfc9de28f52e90cffc2397c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-08-25 12:30:06 +00:00
Eike Ziller
fef76f0284 Fix that opening advanced search could make output pane smaller
Height is set to 0 when the pane is hidden, so we have to check the
nonMaximizedSize instead (and only if the pane is not maximized already.

Task-number: QTCREATORBUG-15986
Change-Id: Ic2a08c300a7e311b59c4597d8043041f68a4c1ff
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-08-25 12:07:45 +00:00
Tobias Hunger
c44e5826e7 CMake: Handle files being in multiple targets when parsing cbp files
Change-Id: Ic85a7318e91e8a10a48c8433f22947fb71071832
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-08-25 11:35:54 +00:00
Tobias Hunger
53747b76dd CMake: Do not process UtilityType build targets
Those produce no direct artifacts, so there is no need to check those

Change-Id: Ic10720c1f3c3a7b602c45b870bfd39604754ddee
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-08-25 11:35:46 +00:00
Tobias Hunger
bda9bf6755 CMake: Do not map all unknown build target types to "ExecutableType"
There is UtilityType now, so use that if there is no executable being
generated.

Change-Id: I9e8d512077b8352ec056b49c8db03644482b8fbc
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-08-25 11:35:37 +00:00
Eike Ziller
72991fe9f8 Merge remote-tracking branch 'origin/4.1'
Conflicts:
	src/tools/clangbackend/ipcsource/projectpart.cpp

Change-Id: I2975328ae0398f70ef4403bd6cebdc80d24379c9
2016-08-25 12:18:57 +02:00
Robert Loehning
22a5af6204 Remove stray white spaces
Change-Id: Ibc5d61a170cdcc333f7ec5d3061b053d33a06f9d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2016-08-24 16:28:48 +00:00
David Schulz
525317d5a4 Clang: Fix compile warnings
Change-Id: Ie8f3f2a8c08855b555d59dbf4ac6ac8b18fe70f6
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-08-24 12:55:02 +00:00
Robert Loehning
4966ddb059 Qmake: Add missing dot
Change-Id: Ic7d8ca0c77737354d145f5d35fc3cb76717f96dd
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2016-08-24 12:00:04 +00:00
Vikas Pachdha
23c36076da Handling minimum required Android API level for Qt 5.7
The build breaks now with a clear warning if the minimum API level set is less than the minimum required by the kit.
The device dialog also used to show incorrect devices on the first compile cycle in case of the missing manifest file. Now
stock manifest file is used from the kit to analyze the minumun API level for the devices

Task-number: QTCREATORBUG-16740
Change-Id: Icd4d8209dad870cba5f99af1dd700830517f9294
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
2016-08-24 11:59:13 +00:00
Orgad Shaneh
f9a44fc486 Debugger: Fix working directory when debugging
The debugger is not executed in the working directory configured for the
run configuration, but in the directory configured in the kit. We have to
cd to the inferior's working directory before execution.

This was broken by 588443b2.

Change-Id: Ib25a82c0cb6e4d1269a2e3fd4bf1f71893005cfa
Reviewed-by: hjk <hjk@qt.io>
2016-08-24 07:16:48 +00:00
Alessandro Portale
358617a06f Todo: Use "toolbar" style icons in the toolbar
For consistency reasons (see "Debugger Console" tool bar), we should use
the *_TOOLBAR icon variants for toolbars. On the other hand, we should
use the icons without *_TOOLBAR for non-toolbar icos (todo list view
items).

Change-Id: I17e7408488112e527c166019341b570ba0f88f10
Reviewed-by: Serhii Moroz <frost.asm@gmail.com>
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-08-24 07:10:28 +00:00
Orgad Shaneh
fcff6fde73 Replace class with typename in forward declarations
`class` confuses lupdate. See QTBUG-55478.

Change-Id: I003eb33203185219ddb75bacc141e17ed240e820
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-08-24 06:50:14 +00:00
Orgad Shaneh
cb5c03ea41 Cmake: Remove redundant qualification
Confuses lupdate... See QTBUG-55480.

Change-Id: I09061af2052a269fa519fc6521939f234b7292d7
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-08-24 06:27:44 +00:00
hjk
99604c369f Cmake: Compile fix after 59bab5e0
cmakesnippetprovider.cpp:40:23: error: could not convert ‘(const char*)(&
CMakeProjectManager::Constants::CMAKE_SNIPPETS_GROUP_ID)’ from ‘const char*’ to ‘QString’
     return Constants::CMAKE_SNIPPETS_GROUP_ID;

Change-Id: Ica98b3851e4f4165e692a8eb276e040904ecba75
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-08-23 21:46:23 +00:00
Orgad Shaneh
b48e588d84 TextEditor: Fix translatable string
CountingLabel doesn't have tr. Use BaseFileFind's instead.

Change-Id: I184319e72a2d1d9bb579bae4e7a013aebeb2755f
Reviewed-by: hjk <hjk@qt.io>
2016-08-23 21:45:34 +00:00
hjk
f7e7fc4e29 Nim: Inline NimBuildInfo into nimbuildconfigurationfactory.cpp
It's only used there. Less code, less disk space.

This code is likely to be copied over and over into future language
plugins.
We cannot afford to spend 1 MB of disk space per build for every 12
lines
of trivial code, so remove this precedent.

Before:

1006824 ./.obj/debug-shared/nimbuildinfo.o
1509784 ./.obj/debug-shared/nimbuildconfigurationfactory.o

After:

1520840 ./.obj/debug-shared/nimbuildconfigurationfactory.o

Change-Id: I8e82b73e50595089d270e52b34cf8bd80ec7e965
Reviewed-by: Filippo Cucchetto <filippocucchetto@gmail.com>
Reviewed-by: hjk <hjk@qt.io>
2016-08-23 16:35:17 +00:00
Robert Loehning
2847e248e6 QmlProfiler: Use numerous form
Change-Id: I93f58bb50933e44b350e8bca3d99c922c7a66237
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2016-08-23 16:31:24 +00:00
Tobias Hunger
ed5adb286a KeywordCompletion: Do not forget half the completions
Broken with my recent commit to this file. Sorry.

Change-Id: I2fef1c01e33c9ea5ddf3fb3bd92401e3dc360c83
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-08-23 14:04:28 +00:00
Ulf Hermann
abcdadd40e ModeManager: Don't set the mode if we are already in the right one
Setting the mode means resetting all of the UI and repainting the
whole window. This can be painfully slow if the window contains some
large graphical objects, like QML profiler trace.

Change-Id: I64835de49e482826a54e3a844d59bc747ca38370
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-08-23 13:30:59 +00:00