Commit Graph

55976 Commits

Author SHA1 Message Date
Sergey Belyashov
8353a6ed20 Improve Russian translation
Change-Id: Ib632fb9f5efe97a1913f9a0c09512b6b99ef2b6e
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
2018-08-03 14:27:09 +00:00
Christian Kandeler
f6f8bc5d95 Update qbs submodule
To HEAD of 1.12 branch.

Change-Id: I44bf654eb81a30f44055b366c21dca10fded37c4
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2018-08-03 09:06:31 +00:00
Robert Loehning
da21353276 Squish: Don't explicitly pass default to createNewQtQuickApplication
Change-Id: I006c6cad0e972006475ad488b9a71def09de0dbb
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-08-02 11:48:37 +00:00
Robert Loehning
e8acb75115 Squish: Refactor selecting configured Kits in project
The design of the Projects mode changed several times. We wrote lots of
workarounds to keep even more old code alive because we never had the time
for a proper refactoring. This time is now.

Leads to more stable code with far less variables flying around.

Task-number: QTCREATORBUG-20265
Change-Id: I29e5956ea3279cdb1d6da61bf5b461666de436bc
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-08-02 11:48:14 +00:00
Christian Stenger
01aafd8021 Squish: Redo readFile()
Change-Id: Ife8f951aa8fc86403197318b55db725ed3259336
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2018-08-01 05:33:24 +00:00
Robert Loehning
6d7eb57e75 Squish: Test pasting with pastebin.com
Yes, there are only ten pastes per IP per day. But doesn't that mean that
nobody can rely on it being availabe anyway? So it's better to use some
of those ten pastes for testing instead of not testing pasting at all.

Change-Id: I45362e5ab0c3eb43f1ddd18d4be39474e26c8460
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-07-31 10:02:18 +00:00
Robert Loehning
8c0042da40 Squish: Use sections for services in tst_codepasting
Change-Id: If97331e3a18f44ca82ad81c7609dc3162caf5254
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-07-31 10:01:51 +00:00
Robert Loehning
7cc5376f0d Squish: Fix handling of server issues in tst_codepasting
Change-Id: I35d8dbeb11be104a1af2956125a29c4606c7e050
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-07-30 13:04:31 +00:00
Christian Stenger
3f97874ca1 Squish: Fix tests after revert
The patch that removed Qt4 completely from the widget app wizard
has been reverted.
Adjusting the tests now.

Change-Id: I0af1eb2102caa22022658d1189794c7757c7628f
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2018-07-27 08:40:08 +00:00
Robert Loehning
210a873efb Squish: Forward qbs' warnings about deprecated features
Change-Id: Ib99713b95d010acf4b49065ad7e20862e59476d1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-07-26 13:05:06 +00:00
hjk
5787ecb025 Revert "Wizards: Drop support for Qt4 for widgets application"
This reverts commit 1a6522b47c
which leaves people wondering about their kit setups.

Creating a project that possibly does not compile due to the
use of C++11's nullptr in the generated code is lesser evil.

Apart from that this potential mis-compilation does not
happen in practice on e.g. Ubuntu 18.04 with system Qt 4
and system compiler.

Change-Id: Iaa90f225d5317dc48428aa2d3fcf3ec051ef2018
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-07-26 11:18:06 +00:00
Andre Hartmann
8e8598f2a3 Coding Style: Update null pointer description to C++11
Task-number: QTCREATORBUG-20852
Change-Id: I150b8e815e137fee333b71d3b05c3a4d2a0038ba
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-07-26 10:11:03 +00:00
Tobias Hunger
cc25aa4caf Environment: Do not leave stray ':' in LD_LIBRARY_PATH
A empty path segment in LD_LIBRARY_PATH is *not* ignored and treated
as '.' IIRC.

So make sure to not leave a ':' in first place of LD_LIBRARY_PATH or set
an empty LD_LIBRARY_PATH on Linux.

Change-Id: I99ec2e333c6c0205334daf14ac6a2373c6e465ad
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2018-07-26 09:30:51 +00:00
hjk
7f6c48e017 Debugger: Do not start the mixed engine on Attach to QML Server
Task-number: QTCREATORBUG-20168
Change-Id: I6af3bf7f0f9ed2316d1382383a7889f55a16dea1
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-07-26 07:07:43 +00:00
Robert Loehning
6bf5e71c43 Update German translation
Change-Id: I681c854023a6ccb338751844afda8b37aff36318
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-07-25 08:55:48 +00:00
David Schulz
8fb73bb278 ProjectExplorer: fix msvc toolchain detection for Windows SDK 7.x
Cancel processing the environment diff only if the setenv scripts return
a non zero exit code. Just checking the presence of standard error
output seems to be a to aggressive error checking in this case.

Task-number: QTCREATORBUG-18328
Change-Id: I9243932cd5721cfbfec5a980a2fab6e69f4c31c7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-07-25 08:47:58 +00:00
Orgad Shaneh
d1b77f2c79 Clang: Suppress "unreferenced formal parameter" warnings on MSVC
They are triggered a lot in Clang headers.

Change-Id: I31f31a4f52e269d773cf1b41ad52f279ee368c2e
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-07-25 07:57:15 +00:00
Christian Kandeler
ef37452cfc QbsProjectManager: Fix qbs build against external qbs
Change-Id: Iccc0b340498e363fa6c8df39bd0949f55bddd77a
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2018-07-20 08:26:00 +00:00
Leena Miettinen
ac674bac03 Doc: Describe newly supported Qt Quick Controls 2
Support for several controls has been added to the Library in the
Design mode.

Change-Id: I9822f7379991eea3b32f47574e3c3548445d538d
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2018-07-19 14:00:48 +00:00
Ulf Hermann
957d7d83ff Debugger: Fix breakpoint disabling and enabling in for QML
As QML currently does not expose a command to atomically enable or
disable a breakpoint, we need to remove and re-insert it. The previous
code scheduled the removal through a timer, and depending on if the
timer hit before the insertion or after, the operation was successful or
not.

As the QML engine doesn't have to be in a specific state to insert and
remove breakpoints, we can just directly send the messages instead and
therefore be certain that they arrive in the right order.

Task-number: QTCREATORBUG-20795
Change-Id: If69797b2c75e1107ad552f88e709e1580b4164db
Reviewed-by: hjk <hjk@qt.io>
2018-07-19 13:49:51 +00:00
scootergrisen
9b36fb24ef Update danish (da) translation for Qt Creator 4.7
Change-Id: Ia9e7f40283fe3f257fe288df6a8ca1bb02a68de0
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
2018-07-19 13:26:02 +00:00
Eike Ziller
efdf4fcbc4 Version bump to 4.7.1
Change-Id: I428ed0c2643193caec1e6a0f47eff8f55df55ef2
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-07-18 13:54:16 +00:00
hjk
e2144db165 Debugger: Pass native gdb.Value to native gdb pretty printers
Task-number: QTCREATORBUG-20770
Change-Id: I6ea92faf0c9314c50da05356fa9004f87124111a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-07-17 09:10:03 +00:00
Orgad Shaneh
dedbb40f57 Remove copying settings from Nokia directory
Change-Id: I550b62ab74505f72eee5c8daba206f80dd5a3a34
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
v4.7.0
2018-07-16 13:13:05 +00:00
Ulf Hermann
d1d4d0cdcd Qml Profiler: Do toggle extended statistics when option is checked
Task-number: QTCREATORBUG-20778
Change-Id: I3390241c25ab7a87329bc8b20c49c32cf4c02944
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-07-16 09:41:54 +00:00
Orgad Shaneh
6019f8f40e BinEditor: Fix "Find Next" for a single char
Change-Id: If35807230969d3620a3a9018af8d2c21236cd58d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-07-16 07:56:05 +00:00
Eike Ziller
4ea3dcd701 Update changelog for 4.7.0
Change-Id: I90aef93f9794393002be830e4279ed28f9a3fcef
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2018-07-13 13:44:07 +00:00
Leena Miettinen
8daca461c2 Doc: Add 3rd-party libraries to Acknowledgements
Reformat parts of the existing text.

Task-number: QTCREATORBUG-20682
Change-Id: I019146d3861fe57258ba0ddc84ed3ed576128da9
Reviewed-by: Xing Xiong
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-07-13 12:35:45 +00:00
Tobias Hunger
a92f39ec35 ProjectExplorer: Make Collapse All action for project tree work
Creator registers a "Collapse All" action for the Project tree. Make
this work again.

Task-number: QTCREATORBUG-20771
Change-Id: I49f1c8a97c4eb22ef6f7f703eefdfe46c3c0a035
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-07-13 11:31:18 +00:00
Orgad Shaneh
10fc3595a3 Clang: Suppress class-memaccess warnings for GCC8
They appear a lot in Clang headers. Until this is fixed in Clang, suppress
them.

Change-Id: I5292ae442089aec3f52ba846ee21e0bd9e61d0cb
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-07-13 06:21:28 +00:00
Robert Loehning
69f75036ab Squish: Remove unneeded function call
Change-Id: I3fb85bc69086501dada922b45ef353e34030e0db
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-07-12 14:31:34 +00:00
Robert Loehning
7e3cdbe548 Squish: Remove unused variables
Change-Id: I24d8ecbe7e7208a20d0f27f62d5b8f488d2a240a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-07-12 14:31:18 +00:00
Ulf Hermann
d7733bafe1 Tracing: Don't rebuild flame graph if there is nothing to see
If the root size is 0, none of the nodes will be visible. Don't create
them in the first place.

Task-number: QTCREATORBUG-20772
Change-Id: I9595daece2d17fe8202b322ffafd361d6fa422fa
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-07-12 12:53:23 +00:00
Christian Stenger
3a4592609c AutoTest: Handle direct usage of quick_test_main
If users need to register additional QML types before Qt5.12
they need to bend the Quick tests magic a bit and use
quick_test_main or quick_test_main_with_setup directly.
The plugin supports something similar for QTest::qExec, so
allow this for Quick tests as well.

Task-number: QTCREATORBUG-20746
Change-Id: I672f8410914c6cc77abc901998f419dda35755ae
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-07-12 11:26:07 +00:00
Eike Ziller
0471fc0f46 Fix assert when filtering examples / tutorials
The examples are put throw two proxy models. The first one implements
the sorting and filtering, the second one transforms the list into a
grid.

The grid proxy model was based on QIdentityProxyModel, which is wrong
because that explicitly states that it should be used when the structure
of the model stays the same.
Even QAbstractProxyModel works under the assumption that all items in
the proxy model correspond to an item in the source model, which is not
true for a N*M grid.

Just implement the proxy model "by hand", making sure that all items
that cannot be mapped to the source are handles correctly as "empty"
items.

Task-number: QTCREATORBUG-20641
Change-Id: Id08b77bb7157b893b9d0d73dc006db98d90032b7
Reviewed-by: hjk <hjk@qt.io>
2018-07-12 10:16:26 +00:00
Tobias Hunger
293e711739 ProjectModel: Fix crash when updating parsing state of project
Fix crash when updating the parsing state of a project during the time
between the project being removed from the session and the time when
the project is actually destroyed.

Change-Id: I54bf4793626497315fe588ebb68474b880de2984
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-07-12 09:57:49 +00:00
Tobias Hunger
e6cfe06dfc CMake: Fix building on current executable target
Task-number: QTCREATORBUG-20763
Change-Id: Ie25c0993c1c2051de3f6a15fca56b56caaa04b00
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-07-12 09:57:20 +00:00
Andre Hartmann
2b45a44ee1 FileProperties: Use native separators for file path
Change-Id: I66c9f62b0c48165f5160d117ad3f0cf5e84f686b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-07-12 09:09:10 +00:00
Eike Ziller
93434cf5d1 Fix that Qt Quick Designer did not request Design mode creation
If you turned off Designer and ScxmlEditor plugins, you'd not get Design
mode even if you have Qt Quick Designer.

Fix-up of 299da01332

Change-Id: Ib3a269db9630af09c36968435ca0b0d998cc1709
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2018-07-12 08:51:34 +00:00
Christian Kandeler
c4cc4219cd Update qbs submodule
To HEAD of 1.12 branch.

Change-Id: I3b0115655d3f3735730250a06b96805bc343dee8
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2018-07-12 08:32:40 +00:00
Leena Miettinen
41493d24f0 Doc: Replace title with HTML filename as value of \contentspage
To make links work if the title changes.

Change-Id: Icf516e74c68efc3b26689aaec27f28ee7ae51ce3
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2018-07-12 08:27:01 +00:00
Christian Stenger
f80aa2c6f7 AutoTest: Fix handling of cpp files for Quick tests
Modifying C++ files of Quick tests had been ignored as they
normally have little impact.
But nevertheless this behavior is wrong and could lead to
unexpected behavior later on if no complete rescan had been
done and even with a rescan there could have been some
cached artifacts.
Fix this by tracking the paths of the C++ files that hold
the main() or the respective macro to be able to handle
changes of these files correctly as well.

Task-number: QTCREATORBUG-20746
Change-Id: Iec860aa63ffd167511efdbf63a6ffa369f094edf
Reviewed-by: David Schulz <david.schulz@qt.io>
2018-07-11 13:18:04 +00:00
Leena Miettinen
f18d2ded9b Doc: Move information about Qt Quick Controls to "Creating Components"
Move the topic up in the hierarchy. Will remove "Creating Screens" in
a follow-up commit.

Change-Id: I0de2bdc4706ab0cce13f5772006126b291e76b97
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2018-07-11 12:24:44 +00:00
David Schulz
a30e9e0f9a ProjectExplorer: only add Tasks from the main thread
If something fails while extracting the build env from msvc vavars
scripts we want to add task hub entries to inform the user about a most
probably unusable toolchain. As the msvc toolchain detection is threaded
nowadays and the TaskHub is not thread safe we need to propagate the
error message to the main thread before adding the Task entries.

Change-Id: I5c67d3b8d58b22ea895afb6f22ee73f19fa52f17
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-07-11 12:15:46 +00:00
Orgad Shaneh
6b701ec6f0 Utils: Follow symlinks in Environment::isSameExecutable
If qmake uses /usr/bin/gcc and the kit is configured to use /usr/bin/gcc-7,
and both reference the same executable, there is no reason to warn.

Change-Id: Ida79fccb97cffb682c1d85d7fa8888d85bf7d6a4
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2018-07-11 12:15:08 +00:00
Leena Miettinen
33998917c6 Doc: Move information about states to "Adding States"
Now that the states have their own topic, all information
about using states should be found there.

Change-Id: Iab1d17aeca9774e3e4bd3e50c776862aa4697a47
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2018-07-11 11:04:09 +00:00
Leena Miettinen
b5686f7f1b Doc: Describe Navigator and Properties in separate topics
To modularize the Qt Quick Designer docs.

Change-Id: Ia0ef0dbd07344375a7f145af16fe949e7807d55f
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2018-07-11 11:03:55 +00:00
Robert Loehning
e0f8779168 Squish: Update suite_WELP
This is a follow-up to 744279.

Change-Id: I24485972b3a292952c653f2cfab1af198578fcc4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-07-11 09:25:15 +00:00
Eike Ziller
626c08aaa5 Merge "Merge remote-tracking branch 'origin/4.6' into 4.7" into 4.7 2018-07-11 06:27:31 +00:00
David Schulz
28a03360d6 Debugger: add instruction to build python enabled dumper for cdb
Like for the llvm code model additional 3rd party installation is
required to build the python enabled dumper on Windows. Adding minimum
version of Python and the name of the environment variable pointing to
the Python installation to the README.md.

Change-Id: I0cad39a57e4726083fcd44bde8b4c990cbd1ab03
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-07-11 05:45:49 +00:00