Commit Graph

61529 Commits

Author SHA1 Message Date
Christian Stenger
c23fe4f403 AutoTest: Remove wrong todos
These todos have been resolved already or turned out
to be wrong / not necessary.

Change-Id: Iefa46bd8144834a60fbb9d523ac73d3372d4a6b6
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-06-07 06:40:52 +00:00
Christian Stenger
6b124b580e AutoTest: Add support for decorator fixture
Boost tests and suites can have the fixture decorator.
Detect this and reflect it on the test tree view.

Change-Id: I16e0ddefcdc433647aa41810040d9d7cd0c4bf2d
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-06-07 06:40:39 +00:00
Christian Stenger
77902649a8 AutoTest: Use reporting summary from Boost UTF
Handle all combinations of LogFormat and ReportFormat
correctly and be able to summarize the test result
correctly by reporting the correct number of Passes,
Fails and Skips.

Change-Id: I47e6fefa2bb2cbb7a25f2ed474a3bb2da1e1e769
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-06-07 06:40:11 +00:00
Christian Stenger
12038dd012 AutoTest: Enhance reporting passes and fails
Depending on the report and log level of Boost UTF
the number of test passes and fails might be wrong.
Circumvent by providing a way to report a summary.

Change-Id: I6d2cb7674550f10a0263e08d21cce42569f3d7a8
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-06-07 06:39:52 +00:00
hjk
5942b82490 Add support for Boot2Qt
A plugin for communication with Boot2Qt devices.

Task-number: QTCREATORBUG-21808
Change-Id: I61f4a9451c2fe8ff4e1108e07db2e72e8c613c43
Reviewed-by: Kari Oikarinen <kari.oikarinen@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-06-07 06:22:45 +00:00
David Schulz
6fd355b84b TextEditor: force rehighlight of next block if state changed
If the user state of a block changes while it gets highlighted
the next block will be rehighlighted too. Currently we store the
indentation depth in the block user state. So in order to store the
indentation depth _and_ the information whether the next block needs
to be rehighlighted we bit shift the indentation depth via the
brace depth helper functions from TextDocumentLayaout. And we cannot
store the struct KSyntaxHighlighting::State in the block user state (int)
directly to indicate that the next block also needs a rehighlight so we
toggle just the last bit of the user state.

Fixes: QTCREATORBUG-22290
Change-Id: I632f4416a725dc5fa1667bcab34fb2701294c9b8
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-06-07 05:20:36 +00:00
Thomas Hartmann
7459afaf3c QmlDesigner: Remove print
Change-Id: Iadf0a1343974eb034ecca1e5b64b90b4a525849f
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-06-06 15:56:57 +00:00
Thomas Hartmann
641cc7ee06 QmlDesigner: Use new controls in TargetComboBox
Change-Id: I8f65e673843c119de1f910b7e2c4d35fccfd8a94
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-06-06 15:56:33 +00:00
Thomas Hartmann
cd42ebb840 QmlDesigner: Use new controls in UrlChooser
Change-Id: I07e6110f4e2d2c7458860db0432fb58afacf7015
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-06-06 15:56:21 +00:00
Thomas Hartmann
9f0a0cd8c6 QmlDesigner: Add wrapper pattern to DoubleSpinBox
This is unfortunately required for step size.
We need real in the API while QQC2 has int.

Change-Id: I162c13a3edc24c34271a1dbf8e19f55b9fe2d034
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-06-06 15:27:00 +00:00
Christian Kandeler
0c74f6cc21 ProjectExplorer: Add "build for current run config" menu entry
This lets users build the executable corresponding to the currently
active run configuration. It's functionally equivalent to locating the
corresponding node in the project tree and choosing "Build" from the
context menu.

Fixes: QTCREATORBUG-22403
Change-Id: Ic2b729c7ce17f1ad944dc06746bb9d6db90b6c61
Reviewed-by: hjk <hjk@qt.io>
2019-06-06 15:05:56 +00:00
Tobias Hunger
9e50d47b5c CMake: Use unique_ptr to manage builddirreader
Change-Id: I1acac29bdfa4dfaaf79835636c3e3a4484e8183c
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-06-06 14:34:18 +00:00
Tobias Hunger
aad9828dca CMake: Detect fileapi in cmake
Detect whether cmake supports fileapi or not. This is based on the
version number since cmake upstream does not want to add a flag into
the capabilities output:-/

Change-Id: I036adf65cbd1b171f0f98a7c86230a7ca33fff32
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-06-06 14:33:17 +00:00
Tobias Hunger
6a3ec1928c CMake: Remove needless tests
These tests were done just before calling these methods.

Change-Id: If9801609ff8b1c18d8cc6b446e80a998abc2a5cf
Reviewed-by: hjk <hjk@qt.io>
2019-06-06 14:13:42 +00:00
Thomas Hartmann
6b82dd201f QmlDesigner: Fix QML warning
Change-Id: Ic5fae60c8efb9009c310d558f3dc9629822a40f7
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-06-06 14:01:47 +00:00
Thomas Hartmann
fed8f7745c QmlDesigner: Fix hasSlider: in SpinBox
This property exists for compatibility reasons.

Change-Id: I25a4454da953f0b7165e1ef5aeeba28e9ab1087a
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-06-06 14:01:30 +00:00
Thomas Hartmann
422553ca2f QmlDesigner: Add ExtendedFunctionLogic to qmldir
Change-Id: I6888ecba5994f42a6f7c3d0b878b4c26a6cf35d0
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-06-06 13:08:59 +00:00
Thomas Hartmann
1435d43f20 QmlDesigner: Add sliderIndicatorVisible to SpinBox
Change-Id: I6a136b537a755a63350514ce2e2d5d42f93c503b
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-06-06 13:08:47 +00:00
Thomas Hartmann
68a6c5dfd9 QmlDesigner: Use sliderIndicatorVisible for some properties
Change-Id: I5827bd15c42f65f23f8b47a0f110c37311d26631
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-06-06 13:08:29 +00:00
Thomas Hartmann
98f6c55653 QmlDesigner: Set proper closePolicy for Menu
This is required for macOS.

Change-Id: Ib0631583104a46a3828529ac4a64adbe7cbfd774
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-06-06 13:08:10 +00:00
Thomas Hartmann
b6703b989d QmlDesigner: Remove focus when clicking outside
Change-Id: I400401c547461cfca22f7af026cf9c33704e8f6a
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-06-06 13:07:57 +00:00
Thomas Hartmann
4edfa4c740 QmlDesigner: Use new controls for FontComboBox
Change-Id: I72946b4adb8e160c05191da0c96011881cd09543
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-06-06 13:07:43 +00:00
Thomas Hartmann
726c51eb8c QmlDesigner: Use onCompressedValueModified
Change-Id: I7ebe5a8db4b78ac086d0301f6d6d84fb99c83cda
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-06-06 13:05:37 +00:00
Thomas Hartmann
d9b8213856 QmlDesigner: Use new controls for font section
Change-Id: I53041a989f71f990c6051b87d84631c3e94a0f34
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-06-06 13:05:17 +00:00
Thomas Hartmann
fc711ed66f QmlDesigner: Implement DoubleSpinBox with new controls
Change-Id: Icf42b8633df2f9b35bafe92a3fde4cdbb03cbf72
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-06-06 12:58:40 +00:00
Thomas Hartmann
14ede3af6f QmlDesigner: Use new controls for GradientPropertySpinBox
Change-Id: I30175e89f375cd6dc56a255d195c1788aa873577
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-06-06 12:58:25 +00:00
Thomas Hartmann
52ddea91ee QmlDesigner: Add missing properties to LineEdit and ComboBox
Change-Id: I7e9a9159aa75973f04a660a16c2d00aa294ab944
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-06-06 12:57:47 +00:00
Thomas Hartmann
cf1be67264 QmlDesigner: Use lambdas for transactions
Using lambdas we do not have to repeat the try catch block all
over again.
This also avoids sublte mistakes when catching the exception.

Change-Id: I514fa9b64f43ef08fdc27bf702ec2b173ab1dfd6
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-06-06 12:56:34 +00:00
Thomas Hartmann
e5dde74b9f QmlDesigner: Work around layout issue
Layout.fillWidth: true does not work without an explicit size.

Change-Id: I4308016febddef1735d6e5261ac5bc989496bac9
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-06-06 12:56:23 +00:00
hjk
611e1ea837 Utils: Encourage marking of raw command line parameters
Change-Id: Id66ac07732c66ab8c1232fe1f58042de8a61abb0
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-06 12:22:47 +00:00
Leena Miettinen
21663b543a Doc: Update info about kit settings
Change-Id: Ibe69c8930d0f311cd4da8249ecd2ab715d2d51d3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-06 11:20:56 +00:00
Leena Miettinen
728398b033 Doc: Describe keeping source files open when closing projects
This was made optional upon user request.

Task-number: QTCREATORBUG-22198
Change-Id: Ie7db4199a0eab665ee29961281cd387a2dc4b3b4
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-06-06 11:20:30 +00:00
Tobias Hunger
27dee4dc5c CMake: Allow for relative install prefixes
Allow for a CMAKE_INSTALL_PREFIX relative to the build directory. This
is nice for testing installation.

Change-Id: I00dd338618cfbcc061039cf13e50239b77db3585
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2019-06-06 09:55:29 +00:00
Thomas Hartmann
58c3ad4baf StudioWelcome: Add new DS logo
Change-Id: I69126ea5bf53ccb777e3123d2b8d3be1bfa72027
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-06-06 08:57:48 +00:00
Thomas Hartmann
119c56ecce StudioWelcome: Show text for community edition
Change-Id: I34063c9c51f4f31f6481461b9505df6c1e231e3a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-06-06 08:57:24 +00:00
hjk
772b48797d Utils: Add a CommandLine::splitArguments() convenience function
... and use it from within new SynchronousProcess functions
taking CommandLine arguments.

Change-Id: I5d7f83727cbb22f03b1a79b1645db95514c66033
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-06-06 08:42:06 +00:00
Leena Miettinen
403672ca6b Doc: Describe moving files in the Projects sidebar view
You can move files between projects by dragging and dropping them.

Task-number: QTCREATORBUG-6446
Change-Id: Ia4d2a022ebb66d5a598c86c5a23fc795698facf6
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2019-06-06 07:01:26 +00:00
Eike Ziller
389cadef24 Merge remote-tracking branch 'origin/master' into 4.10
Change-Id: I60c91311141f94dba9e7fee7e6be8cbcd7e3bd8a
2019-06-06 07:06:30 +02:00
Eike Ziller
046ab0b7a3 Merge remote-tracking branch 'origin/4.10'
Change-Id: Ie1861bb221a9974d78938e9a2078c1f6aa207210
2019-06-06 07:01:06 +02:00
Eike Ziller
e459bc6091 Merge remote-tracking branch 'origin/4.9' into 4.10
Change-Id: I5775afb845c26afa6fae9bdfc47dc9c3f9d5b975
2019-06-06 06:56:15 +02:00
Thomas Hartmann
337e8c71c8 QmlDesigner: Add more space
Change-Id: I56c13be32d9dcb4fca43cd6577b2b06ffd71eaf8
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-06-05 16:08:16 +00:00
Thomas Hartmann
5344d41689 QmlDesigner: Some cleanup
Change-Id: I58bbfab2ba0c1054ba4f36603f54b1a8b8572132
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-06-05 16:07:45 +00:00
Henning Gruendl
064161313d QmlDesigner: Fix linux build
Change-Id: I07d77b5423c6846dae83d35b758daad4cbc2b265
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-06-05 15:57:33 +00:00
Thomas Hartmann
f48361912b QmlDesigner: Fix duplication
Change-Id: Id21eddf67f0a24de9dfde95d6cf5ed96ab4dc0ec
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-06-05 15:48:36 +00:00
Thomas Hartmann
221885d986 QmlDesigner: Add missing json
Change-Id: I3be9222a80fd335fa6e0a20b541cedfa08e5964c
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-06-05 15:24:02 +00:00
Aleksei German
7d7dc55055 QtDesignStudio Fix for Palette
Change-Id: I78f41db19bd1eeb4c2cf775bad4c9e7461ad9d3d
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-06-05 15:09:40 +00:00
Thomas Hartmann
029884c80e QmlDesigner: Use studio controls for property editor
* CheckBox
 * ComboBox
 * LineEdit

Adjusting some details in property editor.

Change-Id: I8f9d6ef87c187f5a3be7c5fb368a1813e6dba92c
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-06-05 14:58:54 +00:00
Henning Gruendl
a18d3d1f9a QmlDesigner: Add ExtendedFunctionLogic
Also a couple of smaller fixes on MenuItem and some changes in
ActionIndicator alias properties.

Change-Id: Ib8e30074f0c2934925ab3958afa106a904a0ecdd
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-06-05 14:51:14 +00:00
Henning Gruendl
22be712f47 QmlDesigner: Add new controls for property editor
Adds new controls for the property editor based on Controls 2.

Change-Id: Ice54ead5d774a7ce54282e442cb26cb970a4be1b
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-06-05 14:47:03 +00:00
Aleksei German
1927813ab1 QtDesignStudio Color Editor update
Palettes, Favorite colors, Recent colors, changed layout.

Change-Id: I6fca962923a3e7a230edebdab5a30bd0847c8ba9
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-06-05 14:41:19 +00:00