Commit Graph

6444 Commits

Author SHA1 Message Date
Christian Stenger
e071c6facb Dumper: Add pylintrc file
...to suppress some common warnings generated from pylint
or respectively pyls.
We usually fail to follow the snake_case naming style
and we tend to have only limited documentation of these
files.

Change-Id: Iaecf767fac68f3be8ad88ccff91a0f5ac24a43e4
Reviewed-by: hjk <hjk@qt.io>
2019-07-29 10:03:32 +00:00
hjk
e3b1106afa Compile fix with recent Qt dev
The reasoning in 1b4766e26c did not take into account that the scope
of QT_NO_JAVA_STYLE_ITERATORS may change over time, as done with
f70905448f6 in Qt base.

Change-Id: Ib1966ff26c4d36d5f62e149d6b45baa4aecf825d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-07-29 08:54:18 +00:00
hjk
a34bf6a23b QmlPuppet: Replace some foreach
Change-Id: I59b4049282564762f75aa5e9a7a0b7eba055db48
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-26 12:59:41 +00:00
Christian Kandeler
df8ef72aec Wizards: Do some input validation on repository URLs
Fixes: QTCREATORBUG-18935
Change-Id: Ie2103cbe2899ea23caaedd4a6350c78b5f380ab9
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2019-07-26 10:41:03 +00:00
Nikolai Kosjar
3afb348439 Clang: Add cmake project for tidy/clazy demo code
...as it's easier to generate a compile_commands.json with it as with
qmake.

Change-Id: I415b4d1d3d6d1d55c4d086c6dbbbca532c2c8669
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-07-26 09:54:25 +00:00
Alessandro Portale
16a2241e7d Import wizards: Visually improve the selected state of icons
This change adds a thin gray outline to the cvs, git and qmake/generic
import wizard icons. In the selected state, they should now have a
better visual contrast.

Task-number: QTCREATORBUG-18936
Change-Id: I2a0f5dab74cdc5958f869a63756a4fc974ccad32
Reviewed-by: André Hartmann <aha_1980@gmx.de>
2019-07-25 13:16:20 +00:00
Eike Ziller
8e376ab340 Merge remote-tracking branch 'origin/4.10'
Conflicts:
	src/plugins/baremetal/iarewtoolchain.cpp

Change-Id: I483e81d7e920e724fb7cde84a8f6fa9bce4cd518
2019-07-25 09:38:09 +02:00
Christian Kandeler
6a50abe34f Wizards: Remove "public slots:" segment from class template
Slots have become rather irrelevant with Qt5 and C++11. Let's not annoy
and/or confuse users by reserving a segment for them in our generated
classes.

Change-Id: Ied26bd627c87654ac26f6577387397f39367c0ee
Reviewed-by: hjk <hjk@qt.io>
2019-07-24 15:28:19 +00:00
Christian Stenger
e571b42622 Themes: Fix warning when loading flat-dark theme
Change-Id: Ifd228eb2164b83262b1281a18659cb1393032993
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-07-23 13:29:31 +00:00
Christian Stenger
24d9ad7c11 Dumper: Adapt QC internal dumper to renamed class
FileName is now FilePath. Follow the approach that is used
internal to display the summary of the file path as the
content of its URL if non-empty and the content of the file
otherwise.
Keep the old approach as well as it can still be used,
even in new code thanks to a using declaration and fallback
to the old approach if debugging old source.

Change-Id: I37c621e451fea92ca34db9a63b5ca26b3bdc201c
Reviewed-by: hjk <hjk@qt.io>
2019-07-23 12:26:09 +00:00
hjk
251287f0d3 Avoid warning on empty expressions
For some reason, Q_UNUSED includes already a semicolon, adding one
on the user side creates an additional empty statement.

Change-Id: I9c5e8fac381345a60792cb75e2938fd53958d3b0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-23 11:55:59 +00:00
hjk
fa9141acdd Debugger: Make example setup code more complete
Change-Id: I2488a84077d7c88d3a14c43bc4f8a9159a866b1c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-23 10:22:32 +00:00
hjk
2abdc54147 Debugger: Avoid infinite loop in dumper
Change-Id: I71e89574a9eecc079b4d8e91da352fd2b7b0d9ab
Done-by: Xander (@bugreports.qt.io)
Task-number: QTCREATORBUG-22637
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-23 06:27:49 +00:00
Christian Stenger
5f71a27f7b Python: Cleanup pdbbridge
Change-Id: I687f4dd777e7d3bdb4fd54e04b4c12cd66137bfb
Reviewed-by: hjk <hjk@qt.io>
2019-07-23 05:35:40 +00:00
Christian Stenger
8f2397b100 Pdb: Improve python debugging experience
Rename internally used classes and suppress them
explicitly while debugging python code to not display
them on the Locals and Expressions.

Change-Id: Ia396243172b2d138c9f4c81b2f1ed0fec0dce3d3
Reviewed-by: hjk <hjk@qt.io>
2019-07-23 05:35:27 +00:00
Christian Stenger
ea6592e9b4 Dumper: Fix handling of namespaced Qt
Change-Id: I5fae8dd0051596e3fb13cce32f282f3442adc8c0
Reviewed-by: hjk <hjk@qt.io>
2019-07-23 05:35:02 +00:00
Christian Stenger
90392397cb Pdb: Fix missing marker for locations on Windows
When parsing the file path of location information the
GdbMi parser expects UNIX-style formatted paths.
When debugging with the pdb on Windows we reported
Windows-style paths which in turn made the parser fail
and the stack never contained a file name and the
current location also had never a marker displayed.

Change-Id: I5216bbaf39ceead63efe8426561f132de3cd04a2
Reviewed-by: hjk <hjk@qt.io>
2019-07-23 05:34:42 +00:00
Christian Kandeler
46ef3f3027 "New class" wizard: Respect the project's "no Qt keywords" setting
Fixes: QTCREATORBUG-6812
Change-Id: I3f51c61f7a1ed1e4626be6bc31fa2e3affed2084
Reviewed-by: hjk <hjk@qt.io>
2019-07-22 15:43:19 +00:00
Henning Gruendl
66b546f341 QmlDesigner: Add flag to ActionIndicator
* Add ActionIndicator flag to control drawing of background and border
 * Adapt controls layout to support ActionIndicator without background
   and border
 * Fix non-editable ComboBox input tap behavior
 * Fix RealSpinBoxIndicator disable state
 * Add ActionIndicator wrapper in HelperWidgets

Change-Id: I2c2b299a3588791492d8e53a858477306ea38f0a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-22 09:04:26 +00:00
Eike Ziller
4ce34fd90f Merge remote-tracking branch 'origin/4.10'
Change-Id: I88a6704fb8d723a3cbdfb1a2d9c84741f30d4da6
2019-07-22 09:34:47 +02:00
Aleksei German
4c77521a6f QmlDesigner Icon for Gradient List button
Change-Id: I875f15e06b39362247f9ee3c020acf125358c506
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-19 13:53:57 +00:00
Christian Kandeler
c8e656c506 Add qbs support to library wizard
Change-Id: Id78bc547cf42dec8948d7ebca56eacfcbbd2f055
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-18 12:36:43 +00:00
Robert Loehning
5ce028c499 Fix capitalization of "qmake"
Shall be consistent with other wizards

Change-Id: I810cf55abf519f5b67155063ce515c4442fc6637
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-07-18 10:09:18 +00:00
Eike Ziller
f689f86be5 Merge remote-tracking branch 'origin/4.10'
Change-Id: I1193e94353c14492a9e7f093fbcd3fa53f83e390
2019-07-18 07:30:29 +02:00
David Schulz
3213e12ce7 rename PythonEditor plugin to Python
The plugin does not only contain a pure editor, but all kind of support
for a programming language like project and run support.

Change-Id: I1251367c8db2e7a54986415ffc5b860cb210de3c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-17 06:21:23 +00:00
Eike Ziller
178e57129d Fix imports in Qt Quick wizards
Fix-up of e0d38ae414

Change-Id: I9f4055647bbf82c89b3282048944bc6ac89faacf
Fixes: QTCREATORBUG-22614
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-07-16 13:00:59 +00:00
Alessandro Portale
663e9003a3 Application wizards: Remove duplicate entry in a generated .qrc file
qml.qrc: Warning: potential duplicate alias detected: 'main.qml'

Change-Id: I949fda863175c3de4a828a93ca01620010a44e93
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-15 05:38:12 +00:00
Tim Jenssen
333b33edbe Merge remote-tracking branch 'origin/4.10'
Change-Id: Iaf27911e4e9fb762c1a24c84c458462bafe95728
2019-07-12 15:53:56 +02:00
David Schulz
79f7605a0a Debugger: fix cdb dumper test for namespaced Qt
Change-Id: I5cbf1db4cffb19ee63ab80dcd6e2a8659cd44389
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-09 08:40:00 +00:00
Henning Gruendl
6d60c7c1a9 QmlDesigner: Fix RealSpinBox interaction
* Fix RealSpinBox drag behavior
* Fix RealSpinBox wheel behavior with step sizes
* Fix DoubleSpinBox hide cursor on drag

Task-number: QDS-650
Change-Id: I5ddbf4815aba88e134c8e806e91521083dda543c
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-07-06 19:43:29 +00:00
Tim Jenssen
1df6443d4a Merge remote-tracking branch 'origin/4.10'
Conflicts:
	qbs/modules/qtc/qtc.qbs
	qtcreator_ide_branding.pri
	src/libs/utils/synchronousprocess.cpp
	src/plugins/baremetal/iarewtoolchain.cpp
	src/plugins/cmakeprojectmanager/cmakeproject.cpp
	tests/unit/unittest/CMakeLists.txt

Change-Id: I124ad492df403286751e175d27fe36487ddf6d07
2019-07-04 15:17:55 +02:00
hjk
6a58666f44 More Utils::toSet/toList
... and unrelated cosmetic changes.

Change-Id: I591b17fd5289831e701b683f8fb47816efd1fa67
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-07-04 12:28:38 +00:00
Christian Stenger
f643f87793 Wizards: Fix typo in Plain C++ wizard
Change-Id: Ifbef31b7edded3f372debe3065fe4e9abc4e9455
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-07-04 07:39:17 +00:00
Robert Loehning
c4512f466a QmlDesigner: Consistently capizalize "Flickable"
Change-Id: Ie291f5cd2b5091a885945d074c9ea08aa14d7f84
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-03 17:11:53 +00:00
Henning Gruendl
e62eeb5aeb QmlDesigner: Fix DoubleSpinBox in-/decrease issue
Change-Id: I072600fa8ca43828d6e03515af34caef6c8cefbe
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-07-03 12:43:52 +00:00
Thomas Hartmann
7cd504511c QmlDesigner: Hide the cursor when dragging in SpinBox
Change-Id: I3900c510bc5510eaba51ea2ae8700aa9ca72f59a
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-07-03 07:49:40 +00:00
Thomas Hartmann
e16c948ab7 QmlDesigner: Increase size of SpinBox for Flickable
Change-Id: Ie1343d8cf0dbe41eefd2027a1daa0133cbd109c3
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-02 16:23:10 +00:00
Thomas Hartmann
370b436650 QmlDesigner: Fix ListView property editor layout
We have to use Layout.fillWidth consistently.

Change-Id: I6052fb8c1a2b2cdc704bba70db1f2bf26730232f
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-02 16:22:56 +00:00
Thomas Hartmann
76d0a16a81 QmlDesigner: Hide label if text is empty
Otherwise we get padding on the left.

Change-Id: I62d78bf988cefe8c91f55268a71c70094f163d5d
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-02 16:22:39 +00:00
Thomas Hartmann
1a4aedf568 QmlDesigner: Increase the compression timer for SpinBox
Change-Id: I8fe7b2b3645d053255b2486e0584f7f16f77997c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-02 16:21:40 +00:00
Thomas Hartmann
868b07853d QmlDesigner: Use new combobox for layout properties
Change-Id: I52e353011b290a59c66003db8b2becd4cd160820
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-02 16:21:20 +00:00
Thomas Hartmann
a93e9d7a7a QmlDesigner: Improve custom property editor for URL
Change-Id: I1bf81df8df94bc7d1469b484f6a66f874887b214
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-02 16:11:27 +00:00
Thomas Hartmann
6eb0bec95c QmlDesigner: Add editors for font, Text and Rectangle
This requires adjustments of FontSection.qml.

Change-Id: I60eb17c299c73da42726dead0d8713a91d4af932
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-02 16:11:11 +00:00
Thomas Hartmann
feaf2a3b95 QmlDesigner: Extend support for custom property editor
* Allow custom '.' properties to show up in custom editor
* Allow custom property editors to span multiple sections

This allows us to support alias proprties to e.g. Text and Rectangle
items.

Change-Id: I7939a5cf5769387dbb3a27df0fd9e74c493a577c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-02 16:10:40 +00:00
Henning Gruendl
a6d5da5af2 QmlDesigner: Add RealSpinBox and refactor SpinBox
* Transfer all changes which came up while Qt Creator integration
 * Refactor states by using dedicated edit property
 * Refactor alias properties
 * Set SpinBox slider indicator default to false
 * Add CheckBox tri-state
 * Fix Menu closePolicy
 * Remove some connections
 * Fix TranslationIndicator
 * Add new values and fix some missing scale factor multiplications
 * Add new icon font
 * Use MenuItem instead of Action for context menu due to shortcut issue
 * Add RealSpinBox due to the following bug QDS-806
 * Refactor SpinBox with findings during RealSpiBox implementation
 * Fix SpinBoxIndicator enable/disable state
 * Fix RealSpinBoxIndicator enable/disable with a new property called
   realEnabled and synching between the actual property and the new one
 * Make RealSpinBoxIndicator increase/decrease on release
 * Add drag start/end signals
 * Fix indicator behavior exiting/entering while pressing (and holding)
 * Fix wheel and dragging step size for increase/decrease
 * Fix reset of step size for cursor keys
 * Fix press and hold timer
 * Set decimals 0 by default (int by default)
 * Replace SpinBox with RealSpinBox in HelperWidgets

Change-Id: Ieda049595e6483b052fcdf4ca597f6af66e5f4dc
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2019-07-02 12:12:12 +00:00
Thomas Hartmann
05a53204fd QmlDesigner: Set property editor scale factor to 1.1
Change-Id: Ibf2db6490ec908d8a2952fa88ca42e7d4c049f3f
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-02 09:12:01 +00:00
David Schulz
853f1226e0 Debugger: Fix QStandardItem dumper test
Change-Id: Ic4b965da9589a7bade4f96226bff3bb14987602c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-02 08:26:23 +00:00
David Schulz
1571384e49 Debugger: add dptr child to QDir for msvc targets
Makes it possible to access the entry lists if these were populated by
the code.

Change-Id: I066824d2ce7f75a38d208155156c93d06458f8b3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-02 08:26:14 +00:00
Christian Kandeler
dfb6fbed7c "New Class" wizard: Add option for adding the Q_OBJECT macro
This lets users specify that a class derived from a custom base should
have a Q_OBJECT macro, and it also allows them to opt out of it for
classes derived directly from QObject & friends.

Fixes: QTCREATORBUG-21810
Change-Id: I850bd3bcb7b6eb71720afe5fa097178ff5d5c620
Reviewed-by: hjk <hjk@qt.io>
2019-07-01 15:19:18 +00:00
Orgad Shaneh
55653db029 Dumper: Fix std::map<K, V>::iterator dumper
The iterator type is std::_Rb_tree_iterator<std::pair<K, V>>

Change-Id: I0ed2f2e6955deb4b402277fe0f3eb32b6af2d477
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-01 12:51:37 +00:00