Commit Graph

27317 Commits

Author SHA1 Message Date
Orgad Shaneh
8b67ae7395 Git: Write error to error stream in executeSyncStash
Change-Id: I36c70fc3df5958b7bb5378e2529a451c497d6632
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-01-23 15:11:03 +01:00
Friedemann Kleint
3bdf33a732 QNX: Fix compilation with Qt 5.
Change-Id: Ic0a4c0e2e66c52f8acb2a86b656cbc2ca3d0a4bf
Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
2013-01-23 15:07:21 +01:00
Orgad Shaneh
246f8e9aaf Git: Fix indentation in ensureStash()
Change-Id: I5243fce895ae21a2b07cb9e0d98a60d69f848b10
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-01-23 15:05:27 +01:00
Orgad Shaneh
daef1fbb88 Git: Use stash pop instead of apply...
... when the stash should be removed on successful pop

Change-Id: I39b2c01b0a518d3c70bcb8dc898191cca6d3e84d
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-01-23 14:59:24 +01:00
Orgad Shaneh
53443616e5 Git: Fix pull
regression from 40eecd87c9

Change-Id: Ibbf4082f9949ca25d22d7ba707281ae6652249ce
Reviewed-by: Petar Perisin <petar.perisin@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-01-23 14:57:27 +01:00
Orgad Shaneh
64018aed8a VCS: Highlight log with diff
Change-Id: I46abd51e5764571138c54df81cc3adbeadb26840
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-01-23 14:55:02 +01:00
Marco Bubke
8d9710c074 Refactoring document handling
The document handling in the qml designer was complicated source
code, which was initially intended for a non creator application.
To integrate new views it has to be changed and cleaned up. This
is the first major step in that direction.

Change-Id: Ie26f0aad7a03946d18bdb4c0759b246c5439d922
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
2013-01-23 14:53:28 +01:00
Mehdi Fekari
a4455f3711 Qnx: Do not override IP user input value
Change-Id: I3a697cf1392e1ce13310e2af1c3e7d7af1fdf79d
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-01-23 14:53:21 +01:00
Fawzi Mohamed
f0e4df5826 qmljs/parser: update to latest qt5 parser
fix error semicolon insertion of loops, strict mode
Change-Id: I311733ffb34269d1cee7e576d05af78893b2bcbb
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
2013-01-23 14:47:26 +01:00
Orgad Shaneh
111872591e Qnx: Add missing dependency
BarDescriptor editor uses TextEditor objects

Change-Id: I9b8cf7be8cec54f01fbaa41da210496258d8a9df
Reviewed-by: Tobias Nätterlund <tobias.naetterlund@kdab.com>
Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
2013-01-23 14:42:04 +01:00
Francois Ferrand
83dff048cf Highlight macro definitions like other uses.
Change-Id: I5a0852e5c1e154b52d712f1dfcfe2fc04e0eb9fb
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
2013-01-23 14:39:05 +01:00
Francois Ferrand
f128a92485 Highlight references to macro under cursor.
Uses to be done only for symbols, implement for macros as well.

Change-Id: I5403527cc8b423e7051c3ce470e2f40ad65e65d5
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
2013-01-23 14:36:59 +01:00
Nikolai Kosjar
8c3794f9d1 C++: Add star binding to TypePrettyPrinter
Now we can specify if we want to print a whitespace before and/or after
'*'/'&' when printing pointer and reference types.

Task-number: QTCREATORBUG-6169

Change-Id: Ida1b035aa4fd79be9108934b75f236db9f7238af
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
2013-01-23 14:30:39 +01:00
Tobias Hunger
b6a9d58f69 Git: Fix issues in the branch dialog
* Split part/next/last into a 'part' node and a 'next/last' node
  instead of 'part/next' and 'last' node. This is closer to what git does.

* Fix some model-issues along the way;)

* Unhighlight remote checked-out branches again once they are no longer
  the current one.

* Remove stale nodes after removing a branch. When removing 'first/next'
  kind of branches, do not keep a empty 'first' in the tree.

Task-number: QTCREATORBUG-8518

Change-Id: Ia5650540aa58354aaab513199c8622392bdbd37f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Petar Perisin <petar.perisin@gmail.com>
2013-01-23 14:11:47 +01:00
Robert Loehning
3898effa68 debugger: compile fix for MSVC in self test
Change-Id: I44304538e18775833a995a50d6b696d666083baa
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-01-23 14:03:16 +01:00
Friedemann Kleint
ec2076c755 Fix lupdate warnings.
Change-Id: Idef345e12223cf6695ea5af8ee7fa1e51c72be0f
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-01-23 10:51:54 +01:00
Friedemann Kleint
e7aded4052 Fix tr()-usage in fakevim.
Change-Id: I21b2fcbe6b638b0b07341c23aac6028607de4fdf
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-01-23 10:49:14 +01:00
hjk
c08da42685 Debugger: fix loading of dumpers when attaching to running process
This was a recent regression trigger by delaying the dumper loading.

Change-Id: Ief9ad8ab21728ba8f1ad743e8b9a410655c47ae1
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-01-23 10:47:46 +01:00
hjk
c74835d519 Tooltip: Remove TipFactory
It's not really used as such.

Change-Id: Ia748cdb5273d661dfea9f8f39a17a872d3ee4de6
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: David Schulz <david.schulz@digia.com>
2013-01-23 10:47:27 +01:00
Orgad Shaneh
66985fa8d6 VCS: Use #ifdef WITH_TESTS instead of #if
Change-Id: I8e2003111d620c0f1708c97e6a02cbc921b031d9
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2013-01-22 21:56:18 +01:00
Robert Loehning
ef3647ad43 debugger: Updated self test
Change-Id: Id9eeb62ff336843ce196dfebc771f03ae22d3cbc
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-01-22 17:49:58 +01:00
Eike Ziller
cec327bd4a Close variable chooser when pressing escape.
Even if the variable chooser currently doesn't have focus.

Task-number: QTCREATORBUG-7155
Change-Id: Ie3a7527e13dd6c3f37c1abe86a596753d2b8e286
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
2013-01-22 17:48:19 +01:00
Tobias Nätterlund
ed69c5f9c9 QNX: Add editor for Bar descriptor file
Change-Id: I7ad9bb9448ef467eea353d361b72474fe1b8c8f7
Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
2013-01-22 16:14:46 +01:00
Jarek Kobus
d3286c2ce0 Add some methods which will be needed by diff editor
Change-Id: Iae85e123a5b72e85b8b55359267bc1b2810a640b
Reviewed-by: David Schulz <david.schulz@digia.com>
2013-01-22 16:05:15 +01:00
Orgad Shaneh
3b66b11ac4 VCS: Add diff pattern tests for CVS and Mercurial
* Fix Mercurial pattern
* Make fileNameFromDiffSpecification protected again (it was made
  public for running tests, but they are now run from VCSBaseEditor)
* Remove DiffHighlighter::filePattern(). Not used anymore.

Change-Id: Ifc99f761f0ab96cc79f1d018e3f3c8cf4603da10
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-01-22 13:38:01 +01:00
Przemyslaw Gorszkowski
23844410fd C++ editor: support nested class of enclosing template
Fixing:
* highlighting
* tooltips
* find usage
* selecting

Task-number: QTCREATORBUG-8245
Change-Id: I6e900799e43126706125b7e424567fca2b2c223e
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2013-01-22 11:35:25 +01:00
David Schulz
bc137f36a7 Editor: Removed useless local variable.
No need to create local variables for pointers
which are used just once.

Change-Id: If917689019ac1319b9f9d3aee8fa15ec5a34d751
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2013-01-21 15:37:42 +01:00
Kai Koehne
a1ef043bfb QmlProject: Detect import type from mainFile
Detect the default import (QtQuick 1.x vs QtQuick 2.x) from main
file, and use it to restrict kits + select the right runtime.

Task-number: QTCREATORBUG-8358
Change-Id: Ib8cfd3eb989953f607fee6043c43e588f798c774
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-01-21 15:20:37 +01:00
Tobias Hunger
459d471c2f Allow for disabled nodes in Projects view
Change-Id: I8b9a2666c8efdc5981adfe6a3a032884a6e50d2a
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-01-21 13:40:03 +01:00
Daniel Teske
1edce87173 Readd Android specific code for Qt Quick 2 template
I tested that it works.

Change-Id: I01387c302c48f3ba9244ba40099f1dead970fb33
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
Reviewed-by: BogDan Vatra <bogdan@kde.org>
2013-01-21 13:04:07 +01:00
Orgad Shaneh
7b39f41c05 VCS: Refactor fileNameFromDiffSpecification
Use diff file pattern to match file name. Avoid duplication.

Include unit tests for Git

Change-Id: Ib68a08368270a27976a3e16bdd1cb219a52b8889
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-01-21 12:19:55 +01:00
Christian Kandeler
57ee50d52f Utils: Use the canonical way of adding the UnixUtils files.
The way this is currently written makes it look at first glance like
they are added in the non-Windows case only.

Change-Id: I9f8dfe47bec910273afc36227d65551cf548b23f
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
2013-01-21 11:55:36 +01:00
Orgad Shaneh
e3017dff5f Git: Show change details in a text edit instead of a tooltip
Change-Id: Iefaf860da291ef700593b6c41cbe14592d152c1a
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-01-21 11:30:55 +01:00
BogDan Vatra
57738988f2 Remove useless warning dialog.
Redirect the errors to the application output window.

Change-Id: I927fae72a53314d0200ffbd13c68900d15259cf9
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-01-21 11:25:08 +01:00
Orgad Shaneh
f504ce8b8e Fix qbs build on Windows
Change-Id: I8eea80e0639ca25d234ec36b72ed1cd653fcbae5
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
2013-01-21 11:22:55 +01:00
Petar Perisin
65aef73ec4 Git: Added Revert and cherry-pick
Change-Id: Ic8ba7434e79b12eca680a67c2845c82915dc0088
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-01-21 10:41:01 +01:00
Mehdi Fekari
8f4da818c8 Qnx: Set default device host IP for physical device
Change-Id: I54fa8af84df8853c32adde1b94bc6096930e29ba
Reviewed-by: Tobias Nätterlund <tobias.naetterlund@kdab.com>
Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
2013-01-21 07:47:14 +01:00
Rafael Roquetto
5942b48e82 [BlackBerry] Move NDK settings to its own category
Also rename the associated files accordingly.

Change-Id: Ibc0ca2c9840733968dafb6d790220d4d59f4a419
Reviewed-by: Mehdi Fekari <mfekari@rim.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-01-19 00:00:25 +01:00
Mehdi Fekari
1860ace6b4 Qnx: Fix the sysroot path value on BB10 generated kits
Change-Id: Ie83e303a88a9e9f7e5a28ad91a6654624091e8ed
Reviewed-by: Tobias Nätterlund <tobias.naetterlund@kdab.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-01-18 22:51:54 +01:00
Friedemann Kleint
23b7dc5b5c CDB: Dump QStringRef.
Extend QString dumper to be able to dump a substring.

Change-Id: I1f64e441980a7c2c295f40317b2b187cfebcd7ea
Reviewed-by: hjk <qthjk@ovi.com>
2013-01-18 16:49:08 +01:00
hjk
7fafeaa513 CommandLocator: use Id instead of QString.
There seems to be still disagreement in the code what the
individual parameters are meant for.

Change-Id: I9c51e6ee9cc8fd1a55d202b8131027de1ef812a0
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
2013-01-18 15:56:23 +01:00
Eskil Abrahamsen Blomfeldt
51273ab864 Deploy Qt Quick 2 imports to device as well
Qt Quick 2 imports are installed to $QTDIR/qml instead of
$QTDIR/imports. We have to make sure they are available
on the device in order to use Qt Quick.

Change-Id: Iaa3e429f6706a5e200d5a1672b63059ddf39e770
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
2013-01-18 15:52:29 +01:00
hjk
baffa492d9 Core: simplify ILocator interface
Use data members instead of virtual functions for id, displayName and
priority, use Core::Id, not QStrings for id, de-pimpl CommandLocator.

Change-Id: Id8b41f184cb995138b2d76c923d6d3ae02b7e3f5
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: hjk <qthjk@ovi.com>
2013-01-18 15:51:13 +01:00
hjk
e7003283a5 Kits: update Core::Id usage to new interface
Change-Id: I653827e8a11e56975e1b2cb1b791e9ea9408f54c
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Reviewed-by: hjk <qthjk@ovi.com>
2013-01-18 15:50:30 +01:00
Erik Verbruggen
dada2614d5 C++: add include-guard tracking.
Track the typical #ifndef/#define/#endif usage in header files to see if
the macro is an include guard. If so, store it in the Document. No
behavioural change, just recording the name.

This can be used in the future to track if a file needs to be re-parsed
when a macro changes: if it was used in the file, and not defined in it
nor being the include-guard, a file should be re-preprocessed and
re-parsed.

It can also be used to check if two files have the same include guard.

Change-Id: I2715f529997a7b24a11bdbc6150652e2669f1a46
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2013-01-18 14:58:07 +01:00
Francois Ferrand
4c43655cec C++: fix macro calls with comment before arguments
When in 'keep comments' mode, the preprocessor does not properly handle macro calls with
comments between the macro name and the opening parenthesis: "FOO /*something to say*/
(45)".

Change-Id: I6fe733242e4d2ccff2985d17399d0a084917415a
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
2013-01-18 14:56:47 +01:00
hjk
f7470d3230 DeviceSupport: use new Core::Id interface
Change-Id: I83fb5933e7feca7d402a288122839d34c9d0f709
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
2013-01-18 14:17:39 +01:00
Fawzi Mohamed
54bb06435a tests: fix compilation with osx/clang, avoid implicit conversion
- osx clang does not support sending a newly created string to
   an ostream, converting it to c_str
 - avoid std::string(QBytearray), as that skips length (I suppose)

Change-Id: I3712df9d5e4a6f96420a8f2bf59c3bec9286b788
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
2013-01-18 14:02:03 +01:00
Orgad Shaneh
725ecc5f91 VCS: Refactor createDiffHighlighter
All plugins do the same...

Change-Id: I21e5a1d7507292add91199a3db75df74165b63b1
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-01-18 12:43:22 +01:00
hjk
6dd8726a16 Debugger: use Id::{from,to}Setting when appropriate
Change-Id: I7b6d68d9c141c485ec27d6fc45f54ee2911b7349
Reviewed-by: hjk <qthjk@ovi.com>
2013-01-18 12:33:27 +01:00