Commit Graph

31174 Commits

Author SHA1 Message Date
Oswald Buddenhagen
fd74944d9e don't allow overloading of built-in functions
the functions are not versioned or scoped, so user-defined overloads would
mess up qmake's own feature files. it seems safer to break user projects
than to allow the user to break qmake.

Change-Id: I020a2e6416bbb6e2fd2ece339629d848c00c8398
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
(cherry picked from qtbase/849f1f9efda601bcfd3760256205a2014e0bc936)
2013-05-17 14:52:28 +02:00
Oswald Buddenhagen
6a0a13f601 remove the entirely insane whitespace compression
it was merely an artifact of using QString::simplified() on the
unparsed (!) project code. there is no reason why anyone should actually
rely on it, so just remove it.

Change-Id: If9b957c4b1263f3990a2331f8851bb1c06154ea8
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
(cherry picked from qtbase/c3c4f1eb5301a4fda17a9a48012df45f9a0ee7a3)
2013-05-17 14:52:23 +02:00
Oswald Buddenhagen
b154c3255b remove support for non-lowercased $$eXpaNd() functions
we have been warning about such functions for a while now, now execute.
the qmake language is (generally) case-sensitive, so this wasn't all
that useful anyway.

Change-Id: I1388ac2d5a1104389aeb3347e739a0d5e69e138d
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
(cherry picked from qtbase/b04192d94b9fb680f99ae38ff008919c0ad371ea)
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
2013-05-17 14:52:13 +02:00
Oswald Buddenhagen
aa2508ba41 Fix qmake's pro file cache to interact correctly with write_file
When writing a file with write_file() we have to inform the pro file parser
cache to discard the file if it's existent in the cache, to ensure that
calling include() after write_file() always works.

Change-Id: I7d09269a57de55ca30b0e11dd40770de9f919f64
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
(cherry picked from qtbase/f45d6414ad6ef1d75f049a61411cd954bcae29c3)
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-05-17 14:52:06 +02:00
Oswald Buddenhagen
a64eac0a74 don't send output of $$join() and $$sprintf() through split_value_list()
in the case of sprintf it's surprising, in the case of join it's
anti-thetical.

Change-Id: I4eb7e56d31ac6ed68adf852f1a19b33554d38eb4
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
(cherry picked from qtbase/ae94bf2b7a6373def9239ae5f54b143e1f6ffe09)
2013-05-17 14:51:22 +02:00
Oswald Buddenhagen
bb64e06a05 clean paths of found files in prepareProject()
any of the directories may be the root, which would lead to double slashes
in the constructed filenames.

Change-Id: I053e167a19b795b40e780fc29db356c7f24d286a
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
(cherry picked from qtbase/97be79012cd39d1d0e7748d5c500d86c3becc258)
2013-05-17 14:51:11 +02:00
Oswald Buddenhagen
9e17199e68 make split_value_list() mostly sane
don't count parentheses, don't nest quotes, don't create empty elements.
the backslash still escapes only quotes (and itself) - $$list() (one of
the main users of this function) is commonly used with (windows) path
lists, so letting it escape anything would make a royal mess.

Change-Id: I29252fbe14fd6d28217450ec41cf8acfb2e30681
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
(cherry picked from qtbase/6c22b9b3e86d1617665f7b81b105c032f43c6d72)
(cherry picked from qtbase/a5c2ab47867a558d6f8f62126fb8e4f2777cfe06)
2013-05-17 14:51:03 +02:00
Oswald Buddenhagen
98fe30e297 permit returning from files
this allows skipping an entire feature file if a condition is not
fulfilled, without putting the whole body inside a conditional.

Change-Id: I84fe9c94dda58c794fb52c3f163b40563b0db30a
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
(cherry picked from qtbase/525eb337670f61078383c20ad9be274dcf2d0928)
2013-05-17 14:50:57 +02:00
Oswald Buddenhagen
aafd267bca remove pointless initialization of qmakespec
we have proper fallback paths further down the line.

Change-Id: I3648cc985d21bbec4c2c24e179830db4467af210
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
(cherry picked from qtbase/0dedf8c3403923b963c51eb65d9cbe838d5ba0d4)
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-05-17 14:50:47 +02:00
Tor Arne Vestbø
ee052e66c8 Update feature paths on assignment to QMAKE_PLATFORM
Instead of after parsing the makespecs, were we assumed QMAKE_PLATFORM
had been set by the makespec and did an explicit update.

Allows loading platform specific features from within a makespec after
updating QMAKE_PLATFORM.

Change-Id: I0eb3b7fb88ce48b00a384850c5d87223c06234d7
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
(cherry picked from qtbase/4dd29248cd43ff730f7432b51a443b72fad3523d)
2013-05-17 14:50:21 +02:00
Oswald Buddenhagen
4a3012dd3f remove automatic splitting from $$() expansions
$$(FOO) would automatically split the contents of the environment
variable at whitespace (and interpret quoting inside it). the way to
prevent the splitting (but not the quote interpretation) would be using
"$$(FOO)".

this behavior is entirely unexpected and thus an incredibly effective
source of quoting problems - according to a grep over the whole qt
sources, there isn't a single case where things were done right. in qt
creator, well over half the cases are wrong.

also, the "feature" seems entirely pointless: nobody uses spaces as
separators in environment variables.

consequently, simply remove it, even in a patch release. i'm postulating
that nobody will complain.

Change-Id: I9ed3df1b0d1ef602acd78ceb118611d294561da6
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
(cherry picked from qtbase/566d28316dd73bfe4a8ea34839989ee9df7e3895)
2013-05-17 14:49:59 +02:00
Daniel Teske
4bb73adad6 sdktool: Add operations: Fix adding to a empty map, check the right map
Change-Id: Iddcf85d3a19bed28baa9bd4c5f964c370f8c9c42
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-05-17 12:33:58 +02:00
David Schulz
0f4ccda0a1 Debugger: Fix disabled breakpoints on start up in cdbengine.
Task-number: QTCREATORBUG-9295

Change-Id: Ib9694b2dda9f4a53508fa126f720b8eed1a0200c
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
2013-05-17 12:15:34 +02:00
Orgad Shaneh
3723bc12d4 Git: Set HOME variable by default on Windows
Change-Id: Ib780f794acfc58753b139174ea3ea90bee542a38
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-05-17 11:43:45 +02:00
Orgad Shaneh
74a512892a Git: Use Git process environment for Gerrit plugin processes
Change-Id: Iab0124d3aeed189c5ffd900c02ce6b87293b9c79
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-05-17 11:42:14 +02:00
Orgad Shaneh
a846605870 Environment: Support absolute file path without extension on Windows
Change-Id: I86045a4cd8a279ed0ee08730a6e8da2672884b09
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
2013-05-17 10:01:07 +02:00
Orgad Shaneh
b1d7d806c0 Fix some compiler warnings
* Unused variables in release build
* Comparison of bool to int

Change-Id: I1ac9b1051b26ae0655d4ff6b92d216926a4785da
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-05-17 08:13:18 +02:00
hjk
51593a1229 Debugger: Make dumper tests startable with LLDB
Change-Id: Iaf6cf18c47b21cf196b641c44fc2475d4f382ba2
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-05-16 17:50:30 +02:00
Kai Koehne
6c928b3305 Deploy also platforminputcontext plugins
This is required at least with Qt 5.1 / Linux.

Task-number: QTCREATORBUG-8471
Change-Id: I7342193ef40fcc1a3e523d787c7521d6e810cd61
Reviewed-by: Gatis Paeglis <gatis.paeglis@digia.com>
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
2013-05-16 16:36:31 +02:00
Leena Miettinen
90833a4717 UI text: fix capitalization for Qt Designer Plugins
Change-Id: I421d445d0ee5052af2e08d0e33fbfe773c059c10
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
2013-05-16 16:11:27 +02:00
David Schulz
106d55daca Debugger: Fix handle process stop.
Change-Id: I9f6658b294d0e252cbcbffa713fa8e126cf6ae07
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
2013-05-16 15:22:45 +02:00
hjk
1fb090e426 Debugger: Don't hard code LLDB path on Linux
Change-Id: I7454f710d6ba57e9f6929cbdcfcbf269cf1f43c0
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-05-16 15:11:55 +02:00
hjk
dbae389029 Debugger: Use different environment variable to override in test
Makes debugging debugger tests easier.

Change-Id: I394862dabfd4f3577b01045b94419b4028ca15ba
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-05-16 15:11:13 +02:00
Eskil Abrahamsen Blomfeldt
688740cf80 Remove managed subdirectories in assets when deploying to Android
We need to make sure there aren't left-over subdirectories in the
assets/ folder when you have used the bundling mechanism for
deployment.

To make this easier, we fix a bug where a missing slash
would cause multiple libraryPrefix() directories with different
suffixes under assets/ instead of just a single one containing
everything managed by creator. When the slash is added we can
simply remove the whole "assets/" + libraryPrefix() directory
recursively.

Task-number: QTCREATORBUG-9294
Change-Id: Ie24b55680d247df458bc70bbc15abdce51605627
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-05-16 14:54:38 +02:00
Eskil Abrahamsen Blomfeldt
342d65f7a2 Make it possible for a module to specify bundling single files
To make sure libQt5QuickParticles.so is loaded for Qt Quick
applications, we need to be able to specify bundling
specific files, not just subdirectories.

Task-number: QTCREATORBUG-9299
Change-Id: I743ee5ea714355ba6398378f4f54b6ede64d4c85
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-05-16 14:54:28 +02:00
Leena Miettinen
bc9bb4b93c UI text: fix VCS related strings
Fix capitalization and punctuation and a typo.

Change-Id: Ie974594878aad6dec558516b2d31b202e8c732d4
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
2013-05-16 14:33:32 +02:00
Robert Loehning
1f62d7c90d Normalized connect()s
Change-Id: I82e891a73724cdfa0db8c84e9daeb72e00e87029
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-05-16 13:55:14 +02:00
Christian Stenger
ee9ec5a4d0 Squish: Correct shebang locations
Change-Id: I5af2abaff10dc4095d6cf35350068ca08742b6ab
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
2013-05-16 09:24:07 +02:00
Petar Perisin
84520b37e7 Git - fetch from all remotes in repository
Change-Id: I024e6905ad9ef246bf30b898c654ba99e73b42e9
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2013-05-15 19:53:05 +02:00
Tobias Hunger
2dc7b28896 Qbs: Add QbsRunConfiguration
Change-Id: Ibb5791e10ee2e08ef824fb0bad3d3f4769ee2adb
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-05-15 17:17:17 +02:00
Tobias Hunger
9cfa79a132 Fix capitilization
Change-Id: I844ffd9e0ed7df5637a1562b9ef6d137aa039ba9
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-05-15 17:16:36 +02:00
Erik Verbruggen
72ad68e913 C++: show function declarations in the locator.
When searching for functions/methods in the locator, also show function
and method declarations.

Task-number: QTCREATORBUG-8862
Change-Id: Ie86bfe82403d79a903d769860a472e2a20a2b9d0
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2013-05-15 16:55:54 +02:00
hjk
df22d163fb Debugger: Use backend-agnostic readRawMemory
Change-Id: Iacc95753b85f87b7ece903d9c5b89570714d0d17
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-05-15 16:30:16 +02:00
Friedemann Kleint
b2c80665e8 Android compile fixes for Qt 4.
Change-Id: I4620a0b8ff29dbb8a0d93f2fc90cc7984f49ed92
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-05-15 16:27:48 +02:00
Tobias Hunger
14b2a3507d Diffeditor: Fix strings
Change-Id: Id5f11af0c6b7c6f3a4c3c65d108b8c0dd1ba2663
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-05-15 16:27:07 +02:00
hjk
1bbca3069c Debugger: Make readRawMemory uniformly accessible from Dumper object
Change-Id: I404753691943005984fe36978a14f7dadfc8ac26
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-05-15 16:27:05 +02:00
jkobus
97a86c50dc Basic integration of diff editor inside git plugin
Change-Id: I7675fc1d994020f94f42f6bd7b4f75aa29e6edf6
Reviewed-by: David Schulz <david.schulz@digia.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-05-15 16:24:38 +02:00
Daniel Teske
60b1aaeae4 Android: Implement a "editor" for android manifest files
Change-Id: I18c00ab452db21e5aa1ae3ad2eff465cfeff54b6
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
2013-05-15 16:16:55 +02:00
hjk
5fc565153b Remove outdated Mobile App Wizard
Change-Id: Ifc5076021a7ef4f49e3dc9048d40becfa5080edd
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-05-15 16:16:39 +02:00
Daniel Teske
c5c2407297 Android: Keep the permissions sorted
The order does not matter but this makes it easier for the user to find
his permission.

Change-Id: Iecb1082c3a67e002df6b0d384a3e02d45673d717
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-05-15 16:15:15 +02:00
Tobias Hunger
0146be396d Qbs: Prevent some warnings on the console
Make sure the different paths are not empty to avoid warnings about
them being so.

Change-Id: I9ac08bb30a87e1b77c2b98c58c502eb41be36c1b
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-05-15 16:15:13 +02:00
Tobias Hunger
0ce0a053e6 RC: Make sure a configured RC is active after opening a project
Select the RC a bit more sensibly:
 * Try to find a RC with the same name as the project first
 * If that fails: Take the first RC in the project

Change-Id: I7bb70826259a203c383eadc8dc9c3ac07f53fd6b
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-05-15 16:15:05 +02:00
hjk
c60b19394b Debugger: Merge dumper.py into gbridge.py
Change-Id: I73975bbab25fed0fed426a057a5fbd482dd3670a
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-05-15 16:14:55 +02:00
hjk
ee716248b5 Debugger: Make std::string dumper work with LLDB
Change-Id: Id4d6e5819e3e64cea0a730f3e488e4640134848e
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-05-15 16:14:27 +02:00
hjk
e5855becbb Debugger: Replace std::string::_Rep lookup with hardcoded value
LLDB crashes on it...

Change-Id: Icd4f0ac2b6297c490fa17dc9bb90012326e25e26
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-05-15 16:13:55 +02:00
David Schulz
8adbabad6c Debugger: Parse stack after checking for Wow64 subsystem.
Change-Id: I831b7a6b260f847b23c7a840f561dd72925441d7
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
2013-05-15 15:45:09 +02:00
Marco Bubke
d349e23a3e QmlDesigner: Use bounding rectangle instead of painted rectangle
Otherwise text items are to small.

Change-Id: Icafbebba6fcc749d0a5a1f5c0bf1dc05bf9f3474
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-05-15 15:36:13 +02:00
Marco Bubke
d1fa28e7a3 QmlDesigner: Change isPositioner in isLayoutable to catch layouts too
Change-Id: Ic6b68a57095dc94df62278666c4c3cb150eb374e
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-05-15 15:35:26 +02:00
Friedemann Kleint
74a2bfb975 Fix signedness warning in cdbsymbolpathlisteditor.cpp.
Change-Id: I1e48e454c980fcf35433bf7ed3f4365c3fdb3ddc
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-05-15 15:33:19 +02:00
Thomas Hartmann
b4da98a34e QmlDesigner: fix icons
These are very old icons that still use color.
I changed them into black and white.

Change-Id: I066f45bc2dcb3170c9d01ce58ff0345be046a8d5
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-05-15 15:29:34 +02:00