Commit Graph

43591 Commits

Author SHA1 Message Date
Daniel Teske
ac4b3f33d0 Android: Change pulling of app_process binary to not use readLink
As apparently Samsung devices don't have it. The new algorithm
is:
- If it is a 64 bit device
  - Either pull /system/bin/app_process64 (64bit process)
  - or pull /system/bin/app_process32 (32bit process)
- If it is a 32 bit device
  - First try /system/bin/app_process32
  - If that doesn't exist try /system/bin/app_process

The old code did a symlink resolution on one of app_process[32|64|],
but I believe the symlink resolution was only needed for a symlink
from app_process to app_process32, which is covered by this code.

Change-Id: Iedeeb247c3059931e1ddf6d01e8b2aab13156470
Task-number: QTCREATORBUG-15006
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
2015-09-25 13:28:30 +00:00
Alessandro Portale
dec37e6df4 QmlDesigner: QT_NO_CAST_FROM_ASCII
No need to be special in this regard.

Change-Id: If84ca4c84c1972171ffdc9ee25e426c454c39e6e
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2015-09-25 13:14:06 +00:00
Daniel Teske
b534b2b0b9 QMakeVersion: Fix QMakeVersion::equals
Broke in 8e171e0be0 just before 2.3.0

Change-Id: Ic4f4fe1d904c8a3146962e4276ae7e7bf4ed8895
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-09-25 13:07:28 +00:00
Daniel Teske
b48f6e6b2d BaseQtVersion: m_qmakeCommand doesn't need to be mutable
Seems to have been the case since forever, but I don't think
this was ever necessary.

Change-Id: Ieaca8d239ad5d0528d45597f6d1b2a437b422fd0
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-09-25 13:07:20 +00:00
Robert Loehning
b92c00bab6 Check in initialize if OpenGl context can be created
Change-Id: I224c2559c1e65cfc3b699e7ec7b56dee8308bd83
Task-number: QTCREATORBUG-15101
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-09-25 12:23:16 +00:00
Robert Loehning
734725ffc8 Welcome: Check in initialize if OpenGl context can be created
Task-number: QTCREATORBUG-15040
Change-Id: I8c78ac0a3b979c4ec8e088cd1be3c6aeb04ff339
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-09-25 12:23:02 +00:00
Eike Ziller
0ba4781bfc Merge remote-tracking branch 'origin/3.5'
Change-Id: I889b93611d1762121548fb71d1d3493e4adba313
2015-09-25 10:35:42 +02:00
hjk
f229f0dbe5 Debugger: Disable CLI use of gdbbridge.py
The detection seems to go wrong in some cases on RHEL which
are not reproducible locally.

Since the feature is not important for Qt Creator's own use,
disabling is safer than attempting to guess better.

Change-Id: I95fd56985d61b604a285e7573f8775b902bcc68c
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-09-25 07:12:30 +00:00
Daniel Teske
2bdf18fb7b ResourceNodes: Fix inverted check in renamePrefix
The inversion happened in  ea2bb656cd

Change-Id: I999fc46be00e60b91a8790053c585e95fbcb7d17
Task-number: QTCREATORBUG-15099
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-09-24 12:33:52 +00:00
hjk
905aa55543 Debugger: Reduce scope of usage of Python's importlib module
The module doesn't exist in Python 2.6, so we can't use it
unconditionally if 2.6 is to be supported again.

Task-number: QTCREATORBUG-15076
Change-Id: Ic91cdf451ce846d892cd914bf850a4fd4b18c488
(cherry picked from commit a7dd2ed4ce)
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-09-24 12:26:43 +00:00
Daniel Teske
a5952658b2 Add an option "Stop before build" for windows users
On windows, users frequently get compile errors because the application
binaries/libraries are locked while the application is still running.

A good solution would require actually knowing which builds output files
that are used by the currently running applications, and would
distinguish
between locally running applications and remote applications.

This solution in this patch is far simpler, it offers a option to
stop all runcontrols or stop all runcontrols from the project, that the
user
wants to build. Those options don't take into account whether stopping
those applications is actually needed and is global.

Change-Id: I75b0b6c450898bb29c1e4f9c18c3199aeed696fe
Task-number: QTCREATORBUG-13188
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-09-24 10:26:23 +00:00
Alessandro Portale
cd92b3cd1a Tools: Rewrite icons exporter shell script in python
After updating msysgit from 1.x to 2.x, the shell script stopped
working on Windows. Therefore I am rewriting this in Python, so
that it can again be run in the msysgit shell and additionally in
the normal Windows command line.

Tested with Python 2.7 and 3.4.

Change-Id: Iead0ac84f78c4f6f0b721f0d40075925b616b038
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2015-09-24 10:26:17 +00:00
Orgad Shaneh
514b7f4e74 IWizardFactory: Remove unneeded qualification
Change-Id: I1d5c12617c9bd465925e840c5c7fb7762b16d796
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-09-24 10:20:13 +00:00
Tobias Hunger
819438a37b ICore: Consistently use NewItemDialog to refer to File>New dialog
Change-Id: I28fba1e7cca3f9885d14c6e58d693046a4c0ea33
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-09-24 10:18:54 +00:00
Nikolai Kosjar
c14e73cdd6 CppTools: Fix comparing size for QTC_CPP_FILE_SIZE_LIMIT_MB
Change-Id: I7729fe944e38726d5c4692f6013e60b3f4fd8c26
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-09-24 09:03:02 +00:00
Orgad Shaneh
7cd21758d1 Changelog: Add 2 entries
Change-Id: I2953d3ca1dc7a3d7fe964e557c46047eaf50a179
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
2015-09-24 07:47:56 +00:00
hjk
a7dd2ed4ce Debugger: Reduce scope of usage of Python's importlib module
The module doesn't exist in Python 2.6, so we can't use it
unconditionally if 2.6 is to be supported again.

Task-number: QTCREATORBUG-15076
Change-Id: Ic91cdf451ce846d892cd914bf850a4fd4b18c488
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-09-24 06:43:01 +00:00
Christian Stenger
6b89f80e64 ProjectExplorer: Fix compile using Qt5.4.0 on Win
Broke with a8b6f30c17

Change-Id: Ie713f18189603b60296caac1c5a087691ed0dc18
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-09-24 04:50:08 +00:00
Orgad Shaneh
e5255a1f5c CppTools: Add a test for ObjC not replacing dot with arrow
Task-number: QTCREATORBUG-14583
Change-Id: Icffa9039215a841e200f20b83cda37d782b94e9a
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-09-23 17:30:52 +00:00
Orgad Shaneh
5b12c8d63a CppTools: Support ObjC in member access operator tests
Actual test is added in a follow-up commit.

Change-Id: I645d1e50d4ac9d281e31a0375f64fea849bf5e25
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-09-23 17:30:36 +00:00
Oswald Buddenhagen
b5c2cabca8 make fixnavi recognize \example as an alias for \page
examples are just pages as far as the markup is concerned.

Change-Id: I1ed2908f6f818e7d15f3514795f3d13d9b15875a
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
2015-09-23 17:22:34 +00:00
Marco Bubke
b711b3d6e7 Clang: Set diagnostic colors for text editor scrollbar
The colors are different from issus colors to give the user a better
impression.

Change-Id: I0f9bdae8d96434512851460d4eef05e94280ee8e
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2015-09-23 16:11:16 +00:00
Marco Bubke
0c53561c75 Clang: Refactor icon setting in ClangTextMark
Change-Id: Ie0c2185d83d3b8344c2f88467236c1eac3b07a6b
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2015-09-23 16:10:25 +00:00
Marco Bubke
a9193243b9 Clang: Don't show warnings for missing prototypes in C++
Change-Id: I895ec7424e04d1f0d465f008ee4a5b5ff76a4906
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-09-23 15:41:30 +00:00
hjk
b6e52b0c37 Android: Fix debugger startup with recent Android SDK
Android SDK Tools 24.x ship an adb that requires in the 'adb shell'
command an additional level of quotes for parameters with spaces
compared to previous versions. That broke the passing of the
gdbserver start command and consequently debugger startup.

Task-number: QTCREATORBUG-15032
Change-Id: I442355821641d4c6a632b50d1065c442736711aa
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-09-23 14:53:22 +00:00
Thorbjørn Lindeijer
9bf4cc61e0 TextEditor: Only use the last mouse position when updating links
Fixes building up of sluggishness when hovering text while keeping
Ctrl pressed.

To make sure link clicks are handled correctly, an immediate update
is forced in case of mouse press.

Task-number: QTCREATORBUG-12573
Task-number: QTCREATORBUG-9008
Change-Id: Ieb85d9f2a1e82167dd9a9245e4bc48766d71ae93
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-09-23 14:03:33 +00:00
Tobias Hunger
cd6452f242 Wizards: Use Qt5 style connect
... and do cleanups that are enabled by that change (e.g. remove
signal/slot macros)

Change-Id: I70c09ceb255398865c2b6fabf35ade8557116a08
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-09-23 13:28:32 +00:00
Tobias Hunger
a561e59a24 Utils::Wizard: Move hack out of the base class
Implement it instead where it is needed.

Change-Id: If7f76bcfa82705936b555a5ebfc221978c70e106
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-09-23 13:27:11 +00:00
Tobias Hunger
c0ae81f4f2 IWizardFactory: Shrink class, remove some useless code
Change-Id: I612cf1d2bc7ea215c49a751da9d15e0508d0b34d
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-09-23 13:26:50 +00:00
Jean Gressmann
378cd56d75 Permit the use of the QML debugger on non JS/QML files
Change-Id: I1574f553c937bd4759b20ca5f0d22582087800cb
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-09-23 11:54:20 +00:00
Cristian Adam
08b62bcfd9 CppTools: SwitchHeaderSource file name case sensitivity
Make sure that on Windows the corresponding header /source
file is searched using case insensitive comparisons.

Change-Id: I66b06cd8a7c46b78e8ff24e11803287630f3914b
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-09-23 11:39:11 +00:00
Nikolai Kosjar
1d9dd67fd3 Clang: Do not re-add files after QFileSystemWatcher::fileChanged()
It is pointless and will generate error messages like

    clangbackend.stderr: QInotifyFileSystemWatcherEngine::addPaths:
        inotify_add_watch failed: No such file or directory

for renamed or removed files.

Change-Id: I3ea14cc5f38526960d52ae7b41a270ef620a929c
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2015-09-23 11:11:11 +00:00
Eike Ziller
972731d42e ICore: Don't split context in contextChanged signal
This way the order of the context doesn't get lost between context from
the focus widget and additional contexts

Change-Id: I371c411a5d9c9f31ae1f8631a6ede4eda100b0c5
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-09-23 09:29:25 +00:00
Eike Ziller
11cafd198d Change log
Change-Id: I4d6e8f65bb278cff8d63d07e1e354d98c18e3d0e
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
2015-09-23 09:29:10 +00:00
Nikolai Kosjar
d46e5025e5 C++: Highlight multi-line raw string literals
Task-number: QTCREATORBUG-13094
Change-Id: I4e6b8c202677f4c1cd4df95d59130ba8379e72fe
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-09-23 07:22:13 +00:00
Nikolai Kosjar
3edd1e575e C++: Mini refactorings in Lexer
...that will reduce noise in a follow-up change.

Change-Id: I39253fa631019c6d3177d2f8b2c521ec85bfba4b
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-09-23 07:22:06 +00:00
Nikolai Kosjar
8eb30feb03 C++: Add basic tests for raw string literals
Change-Id: I9ca253a6a2296912eafe139ce53f4f9779097248
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-09-23 07:22:01 +00:00
Tobias Hunger
7ba22d38d1 QmlDesigner: Fix warning about missing override
Change-Id: Ie1bdb49a23d5b1b5cf7508271d4096453335b11e
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2015-09-23 06:17:55 +00:00
Eike Ziller
e5f3c55506 Static.pro: Remove unnecessary evals
Change-Id: I6ea0abbf12a122164c1a1ce8817067a69ed65f00
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
2015-09-22 12:16:16 +00:00
Eike Ziller
9dd84323df Use variables for install locations
Define variables in qtcreator.pri for the various
install locations, instead of hardcoding the paths
everywhere where they are needed.

Change-Id: Ia34de711a7f2be317272ede023e2a8b9cdcc30fe
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2015-09-22 12:16:08 +00:00
Tobias Hunger
ee42dcb66c Journald: Do not emit signals for kernel messages
Those have no _PID set, which we treated as 0. This is also
the PID we set when an application is finished. This leads to
journald messages showing up in the application output *after*
the application was finished.

Change-Id: I980199740a85c4e68221399eceb543affa12387f
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
Reviewed-by: Alexander Görtz <alexander.goertz@tu-dortmund.de>
2015-09-22 10:34:28 +00:00
Tobias Hunger
d5b4960916 EnvironmentKitInformation: Add tooltip to environment editor
Add a tooltip with basic usage hints.

Task-number: QTCREATORBUG-14808
Change-Id: Ibc416a0a173d36925e857ea1db06745fbd63f66b
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
2015-09-22 10:06:14 +00:00
Tobias Hunger
e5193fe209 JsonFieldPage: Sprinkle the code with auto
Change-Id: Ic8e65d352897bf5b47c8362936830266f55a233c
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Benjamin Zeller <benjamin.zeller@canonical.com>
2015-09-22 09:23:56 +00:00
Tobias Hunger
4b77ae0718 JsonWizard: Allow for custom widgets in the Field page
... instead of having a hard-coded list of widgets you can use.

Change-Id: Iedf7016412ce9d619fea5cdffe6dbf86beda92b0
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Benjamin Zeller <benjamin.zeller@canonical.com>
2015-09-22 09:22:46 +00:00
Tobias Hunger
443f133d3e JsonFieldPage: Export the class and PIMPL the Field class
Change-Id: Id40b12b80c6c02db70614da002c8a8e7f0ab98d9
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Benjamin Zeller <benjamin.zeller@canonical.com>
2015-09-22 09:22:33 +00:00
Tobias Hunger
84e7f8c0e6 JsonWizard: Split Fields out of fieldpage header
Change-Id: I9029b8da8d095216ec320a8e03ec5f3d4092dddc
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Benjamin Zeller <benjamin.zeller@canonical.com>
2015-09-22 09:22:26 +00:00
Tobias Hunger
05312bfeec Vcs: Simplify state detection code
Simplify handling of temporary files, clean up and simplify the code a bit,
remove "project nodes" which can not be open in an editor (and do not use
the '#'-syntax anymore).

Side effect is that files in git repositories in $TEMPDIR now work as
expected.

Task-number: QTCREATORBUG-15053
Change-Id: Ib5918301ec2f0ab5d0985edba8f6c1cc1aae3f0b
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-09-22 09:20:59 +00:00
Tobias Hunger
b38a954521 Old-style wizards: Handle line continuation in license templates
This is necessary to have the same template work in the old-style
wizards and the JSON wizard, which supports inserting \n, \t as well
as line continuation for everything.

Change-Id: I11c310998b92650003206484de8f1ecfc6000034
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-09-22 09:17:02 +00:00
Tobias Hunger
bd5becfe18 JsonWizard: Update wizards to make use of new features
Change-Id: Id8117ba92db46012b536c2af4e62f364631d949a
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-09-22 09:16:57 +00:00
Tobias Hunger
af7f098366 LicenseTemplate: Use macro expansion
Convert existing licensetemplate syntax to macro expansion. That
is way more powerful than what we used to have.

Do return the (converted) license template and do not try to fill
in information since that is not available when querying the
template.

Change-Id: Ia4f45ccf055772b21b0c2ce3c083cf49c45ae7d8
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-09-22 09:16:48 +00:00