Commit Graph

46254 Commits

Author SHA1 Message Date
Christian Stenger
c2a7ad6b41 AutoTest: Fix creation of target file path for Qbs projects
Task-number: QTCREATORBUG-16323
Change-Id: I3ac59d830c098e9e7fe0d6f7dc75078f339adb6d
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-05-23 07:11:45 +00:00
Victor Heng
a4e96636e3 Doc: Fix indentation in JSON wizard 'Label' example
Change-Id: I306fa9a6e973260a65947cd5d78aed1e48ad1030
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-05-22 21:35:43 +00:00
Andre Hartmann
a5720ca8af SVN: Add constants for file change state
Change-Id: Ie65a9b8f614856d3877d094910221d0150c26c49
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-05-22 13:46:07 +00:00
Christian Stenger
5ec1faa64f AutoTest: Provide additional test project...
...to also test combination of Qbs using Google Test.

Change-Id: I4a5d32a32bfaadd0dfaaa4884b58d2ac1a952bd3
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-05-20 19:23:07 +00:00
Vikas Pachdha
399b93966a Fixed the issue where Android build SDK was not populated anymore
Task-number: QTCREATORBUG-16280
Change-Id: I35e174e8c9dca2475e2c7c8c858c17ad7e6141f1
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-05-20 13:07:41 +00:00
Tobias Hunger
f6bf3344d6 CMake: Do not store kit cmake configuration in BuildConfiguration
Change-Id: Ia45c03f42083af0871b12351c98092a2e7887158
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-05-20 13:05:35 +00:00
Tobias Hunger
0d262e3a6b CMake: Do leave the project configuration alone on reparses
This keeps user-overrides made via other tools visible in Creator.

Change-Id: Ice07bebb2b82f29ecae83e442bc2090af7f2ee06
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-05-20 13:05:27 +00:00
David Schulz
30719398b9 CppEditor: Use MatchingText instead of CppAutoCompleter.
Change-Id: Ice517c21e47a50c56fac9d1513bf70b59593cf01
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-05-20 12:47:16 +00:00
David Schulz
42ed3b44c8 C++: optimize paragraph insertion.
Do not check tokens which are returning the default return value.
Do not check for tokens when a previous condition excludes the other
token types.

Change-Id: Id97aed9d6342c6c12e9b26acdd0a8c4b0bca0868
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-05-20 12:46:57 +00:00
David Schulz
1d1f450081 Editor: Simplify autocompleter.
Change-Id: I7e0d4a083862941401518b80a4a988aeac154f97
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-05-20 12:46:34 +00:00
David Schulz
b482a6158c Remove duplicated code from c++ and glsl completer.
Change-Id: Ibda04771fceffef6344f6a6128d77dd8192379ca
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-05-20 12:35:10 +00:00
David Schulz
61be239795 CppEditor: Simplify insert matching characters.
Change-Id: Ib3a94d016b615d71b1635ebe13a87575b8dc12c5
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-05-20 12:35:07 +00:00
Andre Hartmann
3a78b610d7 VCS: Colorize unmerged files in submit editor
So far, conflicted files were displayed like added ones.

Now they are marked obvious, as they disable the commit button.

Task-number: QTCREATORBUG-16297
Change-Id: Iedf834408a747c4fe5f2133790c5fb81e7fea265
Reviewed-by: Hugues Delorme <delorme.hugues@fougue.pro>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-05-20 12:15:53 +00:00
Tobias Hunger
b910b36458 CMake: Also treat "yes" as true for boolean settings
Change-Id: I78426ec5b6b2cf0a1d4cca26202632b27e2036e9
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-05-20 11:55:19 +00:00
Tobias Hunger
fd761cd790 CMake: Warn if kit settings are overridden by the project
Change-Id: I8f01b267f27617d6561124d173ac2e5ae5b9f4d6
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-05-20 11:52:17 +00:00
Tobias Hunger
5100454222 CMake: Make it easier to get the expanded value of a CMake configuration
Change-Id: If289c48ef4ec2815e8bd12e08b990d1dc809c524
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-05-20 11:51:23 +00:00
hjk
67f9a26208 Merge AnalyzerRunControl::logMessage and RunControl::appendMessage
The tools' ability to hook into processing of the output is
retained by making the function virtual.

Also remove the unusual overload of the RunControl::appendMessage
slot and the signal of the same name by renaming the signal.

Change-Id: If3c3cc2dd9c933169dc30b16e3165c9b3cf1440e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-05-20 10:52:26 +00:00
Tim Jenssen
6512227302 QmlDesigner: merge QmlWarningDialog and DocumentWarningWidget
- fixed cases where the user got the one and the other
    dialog
  - not only the first error is shown, the user can browse

Task-number: QTCREATORBUG-15772
Change-Id: I27786b0e4f9c987646a69d8d7d9ff33e3702587a
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-05-20 10:29:16 +00:00
Takumi ASAKI
5f45ed1c7b Clang: tr()-Fixes
Do not use QObject::tr().

Change-Id: I369eb9a57cc0d37a16fe0c11d766f22405a9eef7
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-05-20 10:21:14 +00:00
Takumi ASAKI
fb9ab99c47 ClangStaticAnalyzer: tr()-Fixes
Do not use QObject::tr().

Change-Id: Id3631a8e90bc821377a8b3b7e0aae22b355274d3
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2016-05-20 10:20:05 +00:00
Vlad Seryakov
af56457ab6 Add support for new javascript methods to QML/JS outline
Extened AST visitor for outline, declaration and locator to include
Javascript methods, prototype functions with formal parameters for
better readability.

Change-Id: Ifbb2b157699c929412196f356b0c28ae0564f866
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
2016-05-20 10:07:58 +00:00
hjk
4320aeea18 ProjectExplorer: Move Runnable/Connection model into class
Somewhat better encapsulation.

Removes the "false" sharing of Concept implementations, and takes
the opportunity to change the operator==() into a 'canReUseOutputPane'
function to be explicit about its only use.

This doesn't solve the change in output pane reuse behavior yet,
but provides the base to put the required logic into canReUseOutputPane,
as opposed to abusing the general equality concept.

Change-Id: Id9e4e6b8601c5fcf40a252fb423c2c4c2b74ddb6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-05-20 10:05:41 +00:00
Eike Ziller
9b1e2cb48e Add script to create a "dev" package, and allow building against it
Collects all the needed data from a source and build directory,
which then can be used instead of a source directory in combination
with an installed Qt Creator, to build plugins.

On Windows and OS X the plugin can still only built in the same
mode (release or debug) as the used Qt Creator install.

Change-Id: I21119cc0681f1a5f657c969f5d1e7a23d69aedfe
Reviewed-by: Marco Benelli <marco.benelli@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-05-20 09:59:35 +00:00
Orgad Shaneh
a16bee8bc2 QmlPuppet: Add missing braces
Detected by GCC6

Change-Id: I62ad2da87477251b6abbf8f5c33c6a392787fb41
Reviewed-by: Nikita Baryshnikov <nib952051@gmail.com>
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-05-20 09:06:47 +00:00
Andre Hartmann
9efdfde088 Git: Adapt argument append style
All surrounding lines use operator<<(), so be consistent.

Change-Id: I9b301d0d00a17f0281142dd2c67c43bd7f2a680d
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-05-20 08:07:26 +00:00
Nikita Baryshnikov
a8e57e38a5 QmlDesigner: Fix indentation in PropertyEditorView
Change-Id: I00996b151ffbbce8f518636b7c7bd2db1e32b21c
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-05-20 07:27:08 +00:00
Cristian Adam
30db0202a0 Perforce: fixed invalid setTopLevel calls
When using P4CONFIG one can user multiple p4 workspaces.

For every workspace one needs to have a p4config.txt file,
which contains the P4CLIENT, P4USER, P4PORT variable values.

Qt Creator will query on various directories for p4 configuration.
"p4 client" command will give an error if a p4config.txt file is
not present. p4 will try to connect to localhost when P4PORT is
not set and give and error, but it will take a long time to
timeout.

This timeout gives the impression that P4 does a lot of work and
Qt Creator will sometimes freeze.

The solution to this timeout is to set P4PORT and P4USER. In
this case "p4 client" will give back the same generic "Root:"
variable e.g. c:\p4, which will be seen as a valid path and
PerforcePlugin::setTopLevel will be called and thus setting the
path of the current workspace, which is not valid.

Fortunately in this case "Client:" and "Host:" variables in the
output given by the "p4 client" have the same value. "Client:"
will probably never have the same value as the "Host:" value,
thus making it safe to ignore these invalid "p4 client" calls.

Change-Id: Iafb2640cccd7bd10c455d33ea9d36c5eae2e2951
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-05-19 15:00:35 +00:00
Christian Stenger
be44c8b207 AutoTest: Fix compile on Win
Change-Id: Idd789df837a5b961faafe2753a67c1fb6c20a1d9
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-05-19 14:57:17 +00:00
Orgad Shaneh
82903ba124 Git: Do not append extraOptions twice in blame
Change-Id: I4e3bb13b597ee4a84848e70269d5618e0a41835a
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-05-19 13:58:04 +00:00
Orgad Shaneh
04eb012267 Git: Show date and time in branches dialog
This helps discovering recently active branches.

Change-Id: Ic82e1257c2a3407149e62768ddf2fc25c1a54b6b
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-05-19 13:39:59 +00:00
Tobias Hunger
2be4d2643a MSVC: Fix Microsoft Visual Cpp Build Tools
Backport of bc4a24db00
from master branch for 4.0.1

Change-Id: I5db3d0dda0b92c1ed26655f39df05d9667bfbd04
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-05-19 13:38:32 +00:00
hjk
a06e04c88a ProjectExplorer: Inline targetsettingswidget.ui
in preparation for experiments with the target selector bar.

This also exposes hard-coded colors to real code, making it
more accessible to Utis::Theme styling.

Change-Id: I14f16b82d074b86a51f176eb948c93b48779368f
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-05-19 13:30:10 +00:00
Christian Stenger
70394b29af AutoTest: Make delegate independent from sub-classes...
...of TestTreeItem.

Change-Id: Ieacaeff64dced5e2a4dd3bd3a853cfb1081f5146
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-05-19 12:10:48 +00:00
Christian Stenger
f429b95b0e AutoTest: Separate test configurations
Change-Id: I573b703b4f9ec246cf429d2602b6dc0b8174b50f
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-05-19 12:10:38 +00:00
Tim Jenssen
cf9d1d5f8e Debugger: modernize ConsoleItem editor connect
Change-Id: Iac2fb696779e02c2fe5296c4f9981c20d21bb3a8
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-05-19 11:16:00 +00:00
Tim Jenssen
f54dcc4c81 Qnx: modernize editor connect
Change-Id: I8fe1c8906b7d7b9adda78e5aabf99232bee3ffab
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-05-19 11:15:52 +00:00
Alessandro Portale
646bf84c60 Wizards: Add an application wizard for QtQuick.Controls.2
Change-Id: I516a0b016d57d997624a449ec58e56e3af3f265f
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-05-19 10:59:17 +00:00
Victor Heng
11ef0db2fd QmlJS: Keep pragma directive when reformatting QML files
Change-Id: I1f11e95565a90e4fc7b908c03d49f6abbd37b8be
Reviewed-by: Marco Benelli <marco.benelli@qt.io>
2016-05-19 09:55:11 +00:00
hjk
10ca24347f Android: Minor code cosmetics
Connects, namespaces, includes, ...

Change-Id: I066a03e528df0e485f8ac473db94f17175277fb4
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
2016-05-19 08:58:40 +00:00
Jonathan Liu
52b34611dd Debugger: Remove unreferenced QString arg
Change-Id: I6c7fd01d6bc8cee526fe1f566f9fae551246af80
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-05-19 08:15:19 +00:00
Thiago Macieira
411bc70df0 Re-align code that was misaligned, triggering GCC 6 warning
propertyeditorview.cpp:191:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
propertyeditorview.cpp:201:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’

Change-Id: Ie9fd7afe060b4e4a8052fffd144fe3e908d3d18e
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-05-19 08:04:40 +00:00
David Schulz
0aca5808cb Debugger: Fix creator crash on spontanous debugger exit.
Task-number: QTCREATORBUG-16233
Change-Id: I27b9ab17243463924dc410b3b5ffb0795ef3e33c
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-05-19 05:00:07 +00:00
Eike Ziller
10a4b6b752 OS X: Fix build with Qbs
Change-Id: Ic125eba1ceacf3582fffdadd992a46910f6347cc
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
2016-05-18 15:53:23 +00:00
Jake Petroules
1c04cce4d7 Remove unnecessary /FS flag in qbs property provider.
The current version of qbs handles this automatically.

Change-Id: I81905335fd3366198164436e7125944ad8a3d304
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-05-18 15:31:59 +00:00
Orgad Shaneh
b790ba245a QmlDesigner: Remove unused source files
Logger component and an unused header.

Change-Id: I3e92a4ea3c13eee4bef2a1e452a51509eeab2b17
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-05-18 14:31:40 +00:00
Orgad Shaneh
3734cd65a7 Qbs: Use wildcards for images in Utils
Change-Id: I6e77c6664d5eab41581ed9e357b8cc72b20273b0
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-05-18 14:15:08 +00:00
Ulf Hermann
d667b25f94 Timeline: Remove shadows and rounded corners from details windows
Change-Id: Ibbeb087b61cda1b66e9d4d894c01e24144c2d26c
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-05-18 13:18:34 +00:00
Nikolai Kosjar
a592f9b37a Clang: Fix accepting absolute path clang executable
Commit 506fc40a31 broke running the analyzer with
absolute paths.

If the clang executable name is provided, the ".exe" suffix is not needed since
we get the absolute path with Utils::Environment::searchInPath(). However, for
absolute path we need to ensure the presence of the suffix in order to point to
an actually existing file.

Also, compare case insensitive.

Task-number: QTCREATORBUG-16234
Change-Id: I9f39386c099cc544297239eca56a95c2e7430555
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-05-18 12:07:45 +00:00
hjk
bebdad0df1 Utils: Adapt to QChar changes.
Less warnings.

Change-Id: I435abb1f39d179be10e4d0446b352f2ff7636437
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-05-18 11:13:30 +00:00
Christian Stenger
0496473c55 AutoTest: More separation of test tree item and model
Change-Id: Icb096a1af749e74a3f47bc5235a4c0f0c2ce6023
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-05-18 11:13:20 +00:00