Commit Graph

49391 Commits

Author SHA1 Message Date
Thomas Hartmann
07911f50bb QmlDesigner: Polish expression editor for when condition
The editor is taking the complete states editor now.
This avoids certain issues with the scrollbar.

Change-Id: Idfa53a4751ccff10449001fd7a47acb4fc2f6fce
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-01-11 13:51:15 +00:00
Tim Jenssen
f7170e3c53 MSVC: add stderr report from call vcvars.bat
Change-Id: I58e6f877d94dffa4d7a57c3bc289005abf2938bb
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-01-11 12:59:10 +00:00
Tobias Hunger
41c1abab7e MSVC: Improve error handling
By not silently failing when the vcvars.bat file is not found. Instead attempt
to run it and report the error message when it fails.

Change-Id: Ib97dbe17f8fb5529e549ef6c5d132a8571c10c33
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-01-11 12:40:53 +00:00
Tobias Hunger
c318f7b2a0 MSVC: Replace while loop with for loop
This is easier to read.

Change-Id: I2c116951fbb232b0d3493fc2190f783081c8f42b
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-01-11 12:40:36 +00:00
Tobias Hunger
471373d1a7 MSVC: WS only change
Change-Id: I11d72a83b27c03977975c3f74ec57995610ded13
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-01-11 12:40:21 +00:00
Tobias Hunger
5c0430bbb7 MSVC: Use more const for method parameters
Make it clearer what can actually change when calling methods.

Change-Id: I801344cfc7b0a85918ef61e19a72eb31ba090736
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-01-11 12:40:11 +00:00
BogDan Vatra
3080d0d9e7 Make the output window readonly, but still keyboard friendly
There is no point to change the application output content most
probably it was enable to allow text selection using the keyboard.

  This change is needed to enable output filters, which can't use the
existing content from the output windows because they might be already
filtered.

Change-Id: Ia272143a3a0b085544ee9cd550a4ad4800e3f4dd
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2017-01-11 12:27:06 +00:00
hjk
b15a0eb93a Nim: Move icon overlay registration to extensionInitialized()
Change-Id: Ie6149805fb8258bbe55a162a3ee4bbfbbc442c77
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-01-11 10:39:55 +00:00
hjk
0b36c75ee0 MimeDatabase: Add some startup phase tracking
... to warn about situations where Mime types are registered too
late (i.e. after Plugin::initialize() or used too early (i.e. before
Plugin::extensionsInitialized())

Change-Id: I22681e94bfdd508e954bb3457b834ec3ad1f0fee
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-01-11 10:39:36 +00:00
Christian Kandeler
4dfbcecaa2 QmlDesigner: Fix qbs build
Change-Id: Ia074ac698dc116b7c7e2e2f8523c224d492cd6e3
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-01-11 10:08:01 +00:00
Christian Stenger
0161b3238e AutoTest: Fix sweepChildren()
Introducing support for inheritance broke some old functionality
which in fact was just over engineered.
Remove additional code which will be automatically handled and does
not need to get handled by special logic which could be now wrong.

Change-Id: I05a063c41dc0f8f644d0807fc5497de9c4461246
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-01-11 09:47:57 +00:00
Thomas Hartmann
1770438732 QmlDesigner: Reserve enough space for scrollbar if states are collapsed
Change-Id: I7bccb4328a846516fbe841e3f57e18fb967f6d2d
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-01-11 09:10:31 +00:00
Friedemann Kleint
664195c1ec QtVersionItem: Remove unused field toolchainId
Saves some iterations over the toolchains when opening
the QtOptionsPage.

Change-Id: I0d5d0fc7f501b201d6baacdbfc330c1287c4bc5c
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-01-11 09:10:20 +00:00
Christian Stenger
f375f197d1 AutoTest: Add test for derived Qt tests
Change-Id: I8c61c08ff9b0653c02d262fb9010940e41e178af
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-01-11 09:02:09 +00:00
Eike Ziller
b1f1ccb32e Merge remote-tracking branch 'origin/4.2'
Conflicts:
	src/plugins/android/androidbuildapkstep.cpp
	src/plugins/genericprojectmanager/genericproject.cpp

Change-Id: I3484b668f9323ed0c05de99f8dfed07c9e65ab98
2017-01-11 09:29:37 +01:00
Tim Jenssen
fa84524c0c QmlDesigner: rename RewriterError -> DocumentMessage
Change-Id: I8cbb1b8b83ec10c33e416de96a09281208be8773
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2017-01-10 16:22:23 +00:00
Thomas Hartmann
759db2b7b6 QmlDesigner: Polish error handling for integrated text editor
The integrated text editor requires a couple of fixes and features
in the error handling.

The errors are now handled by the model and not the document management
anymore.
The text editor does not get disabled if there is an error. Instead
we show the error in a status bar.
The form editor is blocked if there is a QML an error and we show the
error message inside the form editor.

Change-Id: I4bfb9b33b09e444ec1de31dd531ce83b32cbcf88
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-01-10 15:58:36 +00:00
Jarek Kobus
8b67458a95 Prefix editor's uniqueId with plugin name
In this way we minimize the chance of
generating non-unique id.

Change-Id: Idd177c5a4b44b17a58c2a944ec77b9517e91964e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-01-10 15:14:19 +00:00
Oswald Buddenhagen
a8230eb6c1 do not report the .pro file itself in ProFileReader::includeFiles()
it's pointless, as no consumer has a legitimate need for it - the
project file is the root of all traversals, and is known by other means.

amends 4148b05e0.

Change-Id: I4df69727e37151b0ecbcd88b2f5ef6e55712172f
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-01-10 14:49:33 +00:00
Tobias Hunger
624339ea70 qmake: fix missing OTHER_FILES in project tree
... in subdirs projects which actually have any subdirs.

that would happen via this mechanism in QmakeProFileNode::evaluate():
first, IncludedPriFile nodes with proFile = null are created for the
subdirs. subsequently, this tree is enriched by transforming the
reader's included files. that loop iterates over all already created
nodes and tries to match them against included files. at nesting level
one, this would now run into the nodes created for the subdirs. the code
failed to skip over these nodes, and would thus create a bogus node for
the .pro file (as it has the parent null in the mapping of included
files). this node would not be included into the tree due to the loop
prevention in QmakeProFileNode::applyEvaluate() (it obviously had the
same file path as its parent), but at the same time it would catch the
files meant for the root node due to defeating the fallback in
QmakePriFileNode::extractSources().

Task-number: QTCREATORBUG-17473
Change-Id: Ice9f667345148be42297cc21ff0a73058f27cc38
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-01-10 14:49:07 +00:00
Vikas Pachdha
acb07875b7 Android: Fix workflow issues in package signing password dialogs
Task-number: QTCREATORBUG-17545
Change-Id: Ide0c322a50455997c7b8fb2350dbdef1d76257c9
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-01-10 11:30:47 +00:00
Vikas Pachdha
1e73c52dd5 Fix compile warning
COMMAND_TIMEOUT is not needed and will not be emitted

Change-Id: Id89aaa8c0b774a962e7a4e813a5b3d3e6a37524d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-01-10 11:30:16 +00:00
Vikas Pachdha
6c83981ee6 iOS: Use kill system call instead of shell command
Change-Id: Ic1d327ca2ed83ee91f78434cc1974ec247751483
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-01-10 11:30:06 +00:00
Ulf Hermann
eaba6ff660 QmlProfiler: Fix pixmapcachemodel test
Since the cache size is not given for individual file events anymore,
the test should only check it for the events in row 1.

Change-Id: Idfc7ec90ab8da214f4eedce36dd3b84fb00ed553
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-01-10 10:09:01 +00:00
Ulf Hermann
7477411d71 QmlProfiler: Calculate the model ID in the flame graph model test
... instead of guessing it. This is more robust.

Change-Id: I4855b78da23cb1caefa3a7a95bfa60c5733b32c5
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2017-01-10 10:07:02 +00:00
Friedemann Kleint
c14a24dca1 README.md: Fix slash in LLVM command
Change-Id: I0d69148e1b246ec90365d489b11e1954d0485576
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2017-01-10 10:03:51 +00:00
Vikas Pachdha
54677f4985 iOS: Capture console output of launched app on iOS simulator
Task-number: QTCREATORBUG-17483
Change-Id: Id18c51e20cf8b396fc610918610f04d39ead28b0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-01-10 09:34:31 +00:00
Christian Stenger
92db5afba4 AutoTest: Handle re-implemented test functions appropriate
If a derived test case implements the same private slot as one of
its base classes one of these information got lost as both were
using the same key to store the information at.
Additionally take care of what is possible and sensible when using
QtTest and deriving test cases from others.

Task-number: QTCREATORBUG-17522
Change-Id: I0d2a47c820d5eb002f8bdd851a07a4774e9838f0
Reviewed-by: David Schulz <david.schulz@qt.io>
2017-01-10 05:39:05 +00:00
Tim Jenssen
e0c4f87e6e QmlDesigner: use const without static in namespaces
Change-Id: Ie608e6f2d733c015b315d16ad58b159de4a72d75
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2017-01-09 16:01:47 +00:00
Nikolai Kosjar
fe0a091802 C++: Fix use-after-free crash when handling auto expressions
The Control of the Document "exprDoc" in ResolveExpression::visit(
SimpleNameAST*ast) owns names that are passed on further as part of the
LookupItems. However, the life time of that Document and thus the
Control ends in that function.

Fix by using the appropriate Control object.

Task-number: QTCREATORBUG-16731
Change-Id: I5a7af0a67613fff79f7e07865801585c13bb9b45
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2017-01-09 15:38:33 +00:00
Eike Ziller
d3f725f39d QtQuick Wizards: Update available Qt versions
Change-Id: I0546cfd965a450a9844b42a2c5e869dbb3447063
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2017-01-09 14:26:58 +00:00
Kavindra Palaraja
ca507f2fe3 Change "Executing in" to "Running in"
While I understand that the term "execute" is techically accurate, to
execute has many meanings, not all of them are positive. Execute can
also mean to kill someone. We should try to have more geopolitically
neutral terms in an IDE like QtCreator since it is used all over the world.

Change-Id: Icd6742865afa7a4469764e38eee961d7a96c7d5f
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2017-01-09 13:48:45 +00:00
Marco Bubke
0011d81817 Utils: Activate copy constructor and assignment
The move only patter is quite powerful but has the drawback that some
STL algorithms get quite complicated. For short string or const references
should be not difference to a move. So we activate them for all cases.

Change-Id: I959c13796e69c45f31bb0ecbbe64a70d39961e3f
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-01-09 13:45:08 +00:00
Marco Bubke
8624e3c97d Clang: Remove unused files
Change-Id: If100138459665a11812ed5977ca15b79c0836b93
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-01-09 13:21:33 +00:00
Marco Bubke
023e1fa610 Utils: Add PathString to improve memory usage for longer paths
Change-Id: I90bca7eddfc4823406f1320a7f6e7836d53c3425
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-01-09 13:21:08 +00:00
Marco Bubke
a2642f253a Utils: Add io support for all BasicSmallStrings
Change-Id: I4c37d0f5940f9424175db7dbf4d6b057f8ced9ef
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-01-09 13:21:03 +00:00
Marco Bubke
9186a49603 Utils: Add conversion operator to QStringList to BasicSmallStringVector
Change-Id: I32b7df9ff2e08e6e998a6d9efbf721bd7eeca28b
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-01-09 13:20:55 +00:00
Marco Bubke
07ee542a14 Utils: Activate copy constructor for BasicSmallStringVector
Change-Id: I8716c4533274578d01762657dd430796ac21afaa
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-01-09 13:20:49 +00:00
Marco Bubke
8acacf5d42 Utils: Add a constructor for std::vector<SmallString>
Change-Id: I1ce11bfbf14d9fda975c2d1ca27ae9d7b8e40bc7
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-01-09 13:20:45 +00:00
Marco Bubke
7b6e671809 Utils: Change of less operator for SmallString
Comparing file paths can be quite expensive because the start very likely
with the same string. Sorting for size and only compare the string is less
expensive. For many algorithm we need a sort order, so making the less
operator cheaper is quite desirable.

Change-Id: I33e7abc7a65264e80376f445f8b6dcada0625ab9
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-01-09 13:20:40 +00:00
Marco Bubke
8088923f2f Utils: Add SmallStringView constructor to BasicSmallString
Change-Id: Ib8b92f9d39f342680f62433f8cc67d2adf1f6eb2
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-01-09 13:20:29 +00:00
Tim Jenssen
c191672013 Utils: Change UNIT_TEST_PUBLIC in unitttest_public
Change-Id: If60f24e3b055d543ba7864d4eb7e8287721d1012
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-01-09 13:20:17 +00:00
Leena Miettinen
16c2b73061 Qt Quick Designer: Fix typos in and capitalization of UI text
Change-Id: Ida8dee65d34d033eca14e666aa7f1a8a93498061
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-01-09 13:09:13 +00:00
Anthony Heading
0735253139 Fix off-by-one error which stops qtchooser finding qmake
At startup,  qtcreator prints an error:

% qtcreator
"The command \"/qmake\" could not be started."

This appears to be because of an off-by-one error in
BuildableHelperLibrary::qtChooserToQmakePath(const QString &path) which
parses the output of a call to "qtchooser -print-env" to extract the
value of the QTTOOLDIR variable.  The code attempts to move past the
prefix string to find the end quote, but by moving one too few
characters it finds the starting quote instead, resulting in a zero
length string result.

Change-Id: I74368f10a81eda2286ae735bdc595c0f92e4e665
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-01-09 12:42:25 +00:00
Eike Ziller
7f8aa3a7be Make some plugins hidden by default
Hide core plugin, hello world plugin, and plugins that only provide the
base for other plugins.

Change-Id: I7f4a29a265d760b2a759122be153c7f06bd40bd2
Reviewed-by: hjk <hjk@qt.io>
2017-01-09 12:25:13 +00:00
Eike Ziller
284fa63be2 Support 'hidden' plugins
Plugins can be hidden in the "About Plugins" view by default. Users can
still make them all visible, but the default view can be made less noisy
by hiding plugins that only exist as a base for other plugins.
Plugins that can not run on the current platform are hidden by default
as well.

Change-Id: Iaf2f751c4ea4b3afc605bbbea6611eea042e62c7
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2017-01-09 12:25:08 +00:00
Robert Loehning
4d79ffb8f3 Squish: Replace progressBarWait() in tst_debug_empty_main
The progress bar already disappears while we're still in Projects mode.

Change-Id: I7dcf24d1d423eba3057868c4323b2054c99d19f1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2017-01-09 11:56:18 +00:00
Jarek Kobus
b29513aa5b Display "Waiting for data" properly
Display "Waiting for data" instead of "No differences" when creating new
instance of an editor for the same document (e.g. by splitting the view)
during document reload.

Change-Id: If254006de3914ad4416c7405874e8cbea57ddd8d
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-01-09 10:49:13 +00:00
Ulf Hermann
58f754bb66 To-Do: save the settings only if they've been "apply"d
The colors don't play very well with the theme support. We want to
switch the colors according to the current theme if the user doesn't
care for them. Not saving the default colors achieves that.

Change-Id: Idafc13e561d33736eb21b26944756291449594b5
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-01-09 09:58:16 +00:00
Thomas Hartmann
b872a38040 QmlDesigner: Some cleanup
Change-Id: If1369124ca694bd5313213625636cf39a14af247
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-01-06 15:26:25 +00:00