aboutsummaryrefslogtreecommitdiffstats
path: root/share
Commit message (Collapse)AuthorAgeFilesLines
* Fix the Python templatesAndy Shaw2020-02-183-6/+5
| | | | | | | | This fixes the templates so that they do not produce any warnings and also includes QQuickItem in the choice of base classes Change-Id: I58bbd462052f5d2a64bb8c4bea5bbdcd15e66700 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Dumper: Fix syntax errorOrgad Shaneh2020-01-161-1/+1
| | | | | Change-Id: I8e611b1cb358872d9e0c7302ed8a4d3e0b7d9f3c Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* QmlPuppet: Fix MSVC warningOrgad Shaneh2020-01-151-1/+1
| | | | | | | implicit conversion changes signedness: 'QFlags::Int' (aka 'int') to 'const unsigned int' Change-Id: I3d906ca079f3f25ceb1e3b8010f0540ae0236081 Reviewed-by: hjk <hjk@qt.io>
* QmlPuppet: Fix GCC warningOrgad Shaneh2020-01-151-1/+1
| | | | | | | | | qt5informationnodeinstanceserver.cpp:115:71: warning: narrowing conversion of ‘keyEvent->QKeyEvent::modifiers().QFlags<Qt::KeyboardModifier>::operator QFlags<Qt::KeyboardModifier>::Int()’ from ‘QFlags<Qt::KeyboardModifier>::Int’ {aka ‘unsigned int’} to ‘int’ [-Wnarrowing] 115 | QPair<int, int> data = {keyEvent->key(), keyEvent->modifiers()}; | ^ Change-Id: I2f97e9ce11202cee386c2c6b4902c689e3411e30 Reviewed-by: hjk <hjk@qt.io>
* Debugger: Do not waste CPU when using LLDBChristian Stenger2020-01-141-4/+7
| | | | | | Fixes: QTCREATORBUG-23311 Change-Id: I5b1c40663c7977322e806af2e0393a3730e70049 Reviewed-by: hjk <hjk@qt.io>
* QmlDesigner: PropertyEditor Controls 1 cleanupHenning Gruendl2020-01-1316-19/+2
| | | | | Change-Id: I52b83d50a99a7ff24718ed3d99f9ad7cb4415565 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QBS: Fix template for AndroidBogDan Vatra2020-01-081-1/+1
| | | | | | | CppApplication sets usesNativeCode for android which it's needed to compile the C++ part of the application. Change-Id: Ibf787fecd256e4f90c09b8e3061a23419feb526e Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Debugger: Use a more convenient way to create timing sampleshjk2020-01-072-41/+34
| | | | | Change-Id: I4ca983957c81a1f5f963a85b16a2d1b255b2cd2d Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* QmlDesigner: GradientPreset cleanupHenning Gruendl2020-01-072-189/+153
| | | | | | | | | | - Remove Controls 1 imports - Rework states - Utilize theme values Change-Id: I2d7b818f450387ad0325aae41aac7f8c1b30ea5f Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Aleksei German <aleksei.german@qt.io>
* Fix compilationHenning Gruendl2020-01-071-0/+1
| | | | | Change-Id: I98fe164f32bbe8c65a76b853f12ce7765a1c0f7e Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
* Enable common keyboard hotkey actions for the Edit View 3DMahmoud Badri2020-01-078-0/+138
| | | | | | | | | | | | | | | | | Clicking undo, redo, delete, or save keyboard hotkeys while the Edit View 3D has focus is working now. Additionally this commit introduces a generic command for carrying any variant data from puppet to creator side. This significantly simplifies and avoids the boiler plate work of sending actions from puppet to creator side. Current commands can be ported to use this generic command but this is not part of this commit. Also a similar command to work the other way around could be implemented. Task-number: QDS-1266 Change-Id: I40fdf6b215ce77402250a791ea49cbdcd2a9d6eb Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Remove tooltip dependency Controls 1Henning Gruendl2020-01-061-5/+7
| | | | | | Task-number: QDS-619 Change-Id: I4e54ac43cd6d3052620a9e5ca48cf1fbc66c6181 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Add error mode to ColorLogicHenning Gruendl2020-01-063-2/+14
| | | | | | Task-number: QDS-1221 Change-Id: I95009dc3700f3e308280fadaea374e7ba6dfa08b Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Add workaround for QVector3DThomas Hartmann2019-12-172-2/+22
| | | | | | | | | | | | | | | For some reason the Qt meta system does not work reliable for QVector3D. It does work "rotation", but not for "pivot", despite the fact that both properties are defined in exactly the same way. This patch works around the main issue. There are still a few issues left, but at least the default is correct now. Task-number: QDS-1355 Change-Id: I75e2d3adff6967e89c6ce031d744baa12b5e8061 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Prevent the Edit View 3D restart upon closingMahmoud Badri2019-12-178-1/+116
| | | | | | | | | Also the 2D/3D action updates correctly according to Edit View 3D state. Task-number: QDS-1385 Change-Id: I95d0994e9c56df25a2988eb9d27994268dd1903d Reviewed-by: Henning Gründl <henning.gruendl@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Debugger: Fix std::string dumper for GCC 9hjk2019-12-171-0/+9
| | | | | | | | Fixes: QTCREATORBUG-22753 Fixes: QTCREATORBUG-22680 Change-Id: I75e2855d27bc2b83880379fee2364586b9d4a90e Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* QmlDesigner: Fix minor edit 3D view ui issues in macMiikka Heikkinen2019-12-133-29/+41
| | | | | | Change-Id: Ia86b5f828d147ca0c3593da7f7dcb77696fdeead Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Improve edit view 3D "on top" logicqds/v1.4.0-rc1Mahmoud Badri2019-12-1314-144/+283
| | | | | | | | | | | | | | | | | | | | | | - Proxy dialog removed - When the QDS window is minimized/maximized, the edit view 3D follows. The opposite is not true (edit view 3D can be minimized separately). - Edit view 3D is always on top of QDS window. Only exception is when a popup is shown (so that the user can handle the popup). - External apps go normally on top of the edit view 3D. Known (non critical) issues: - Activating the edit view 3D doesn't raise() the QDS window, so if an external app is on top of the edit view 3D then the view is clicked, the external app will be in between the view and the QDS window. - Closing the edit view 3D from the x button doesnt work (causes a restart). This is not in the scope of this commit. Task-number: QDS-1179 Change-Id: I1dd72590037be295b94735de96772307ba14c59c Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Fix rotation resulting in NaN angle sometimesMiikka Heikkinen2019-12-131-0/+5
| | | | | | | Change-Id: I88f866c6649f7ec25bc96a7393d0930685e5382b Fixes: QDS-1341 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Properly update 3D edit view cameras and lightsMiikka Heikkinen2019-12-135-26/+57
| | | | | | | | | | | Now edit view will create and remove cameras and light gizmos properly when cameras and lights are added or deleted. Change-Id: I858752c1410f3a40ea2adaf538c281aaee94ec58 Fixes: QDS-1267 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* QmlDesigner: Fix material managerHenning Gruendl2019-12-111-4/+9
| | | | | | Task-number: QDS-1332 Change-Id: I70828c3ce584ab72115f92dda4a27341e00085e2 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Use separate MouseArea3D to calculate drag vectorMiikka Heikkinen2019-12-1112-20/+92
| | | | | | | | | | | | | Using the MouseArea3D linked to gizmo to manage the drag leads to slight unwanted drift on the drag plane, as it moves with the gizmo. Fixed by using a helper MouseArea3D to calculate drag vector. Helper area's transform is set at mouse press time and is not changed during the drag. Change-Id: I50d3f738277bd34005c977423d114abc8dbed520 Fixes: QDS-1312 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Update selection box on parent changeMiikka Heikkinen2019-12-111-0/+4
| | | | | | | | | | Selection box geometry update sets explicit global transform for selection box root. The transform depends on the target node parent, so if the parent changes, the box needs to be updated. Change-Id: Iccf8b7e863bcfe541bbb4f60a4094739a7513e8d Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
* QmlDesigner: Fix more warnings about unused parameters and functionsChristian Kandeler2019-12-101-0/+4
| | | | | Change-Id: I8b569fcf60a0a21c6828d612997bbba0f737c806 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* QmlDesigner: Add item layer propertiesHenning Gruendl2019-12-064-0/+433
| | | | | | | Task-number: QDS-1305 Change-Id: I0d6a390ac05f6bda9f11ecb25b461c95519d8bb3 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
* QmlDesigner: Add control for material managementHenning Gruendl2019-12-063-0/+275
| | | | | | | | | | - Create EditableListView for material management - Add id list functionality to PropertyEditorValue Task-number: QDS-1258 Task-number: QDS-1256 Change-Id: I1694648b36845b22f4773ecbd578d77c22c934e2 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Wizard: Fix test registration to ctestChristian Stenger2019-12-051-4/+4
| | | | | Change-Id: Ia30cdf1ce690a2ebbc2e991e4e3f8a029e4768ed Reviewed-by: David Schulz <david.schulz@qt.io>
* QmlDesigner: Fix selection box size calculationsMiikka Heikkinen2019-12-042-5/+21
| | | | | | | | | | | | Selection box for zero size items ended up being infinite, which broke some functionality like fit to camera. Now boxes should be correctly zero sized for non-model items. This also fixes issues with parent box size if it has zero size children. Change-Id: I3c8fae3ee971fbb0cf9e0de2615c107ce97a76f8 Fixes: QDS-1287 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Fix planar scaling randomly setting the third axis to zeroMiikka Heikkinen2019-12-041-3/+3
| | | | | | | | | | All the math before checking if the scaling axis is zero can cause enough rounding errors to make qFuzzyIsNull to not think the value is zero anymore, so check increase the check range. Change-Id: I776d44886f061be6c1fd91c09eb8efcfb29e0936 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Fix 3D edit gizmos orientation and rotation orderMiikka Heikkinen2019-12-0410-32/+93
| | | | | | | | | | When selected node has non-default rotation order or orientation, gizmos need to account for that. Change-Id: Ie3817fd057b43f708ac1feea3e98e1e44f56d66a Fixes: QDS-1290 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Debugger/Dumper: Fix dumping CPlusPlus::TokenNikolai Kosjar2019-12-041-1/+1
| | | | | Change-Id: I368f5227ecb675a653f65d76e83622305390b5ff Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* QmlDesigner: Make imported models selectableMiikka Heikkinen2019-12-035-15/+53
| | | | | | | | | | | | Import creates an opaque Component, which can contain one or more pickable models. We mark all instanceless models pickable according to the parent instance pickable status and specify the parent instance as the pick target using a dynamic property. Change-Id: I05b96ee48eb8f246c50b2254d620b621e2437aa5 Fixes: QDS-1282 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Do not zoom camera when changing viewMahmoud Badri2019-12-035-14/+15
| | | | | | | | | When changing the view by clicking the axis helper, maintain the current view camera zoom Task-number: QDS-1274 Change-Id: Icb502bd70da1e6348be90a52885366393ea072c6 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* QmlDesigner: Implement multiselection for edit 3D viewMiikka Heikkinen2019-11-288-140/+273
| | | | | | | | | Multiselection works in 3D edit view with ctrl-click just like it does on the Design Studio. Change-Id: I266f2de11758bed064f44dd97cd79189e3e1f831 Fixes: QDS-1265 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Use proxy dialog for 3D edit viewThomas Hartmann2019-11-2813-4/+251
| | | | | | | | | | | | | | | | | | | To integrate the 3D edit view in the qml2puppet process, we create a dialog in the Qt Creator process. This dialog acts as a proxy that manages the actual window. For this I introduced a new command that allows showing, hiding, resizing and moving of the 3D edit view. The 3D edit view always follows the proxy dialog. During moving and resizing we hide the window to avoid artefacts. At this point in time the proxy widget is a dialog, but it could also be a dockwidget or any other QWidget in the future. Task-number: QDS-1179 Change-Id: I67ccab49eb2de9ba23098a67b2f9577f6c7fd3ac Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* QmlDesigner Removed some debug outputv4.11.0-rc1Aleksei German2019-11-271-1/+0
| | | | | Change-Id: Iaa03c5783cc76b94364eda184d439024c35c4102 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Fix RealSpinBoxInputHenning Gruendl2019-11-271-0/+1
| | | | | | | | | | Fixes RealSpinBoxInput scroll behavior. Without this change the RealSpinBox would block the ScrollView from getting mouse wheel events, which means whenever the mouse is hovering over a RealSpinBox the ScrollView can't be scrolled via the mouse wheel. Change-Id: I4533e36700fc2652a9c246a0e30613c71258edaf Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Implement 3D edit view top controls UIMahmoud Badri2019-11-2617-35/+122
| | | | | | | | | | | | | Implement global/local, projection type, and default light controls UI. Also small tweaks: - Fixed ortho. camera near clipping - Grid color darkened a bit - Selection rect color changed to yellow Task-number: QDS-1250 Change-Id: I03cf2023ee1b8a6a0768e4dbf7d6fee621a25ce2 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Fix editable ComboBox popup selectionHenning Gruendl2019-11-261-1/+18
| | | | | | | | | | This patch introduces a new state called 'popup' to disable text editing while the popup is opened and enables text editing whenever the popup is closed. Task-number: QDS-1262 Change-Id: I74ad4723d2cfe81447e94c37e9ba1f0913790d97 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Offset move/scale gizmo label in screen spaceMiikka Heikkinen2019-11-261-2/+1
| | | | | | | | | Offsetting in scene space resulted in label being inconsistent distance away from the object, depending on zoom and angle. Change-Id: Ief555de664c042bb1a5c93af0ee7e5a1c3e7ce0a Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
* QmlDesigner: Block selection of hidden objectsMiikka Heikkinen2019-11-263-12/+51
| | | | | | | | | If eyeball is turned off for object, it shouldn't be pickable in 3D edit view. Change-Id: Ib9308aaaecc822f448591f249bd96ffb5d0c9c48 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Add UX approved gradient background to 3D edit viewMiikka Heikkinen2019-11-251-17/+34
| | | | | | | Change-Id: I18b976324f57cf559a43d9ff239796cf25b3cb2f Fixes: QDS-1202 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Fix sticky popupsHenning Gruendl2019-11-253-6/+12
| | | | | | Task-number: QTCREATORBUG-23102 Change-Id: I53a2abc67221b714e2b4ff7d09045f0b817b59d2 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Center on selection box when fit tool is used in 3D EditMiikka Heikkinen2019-11-255-8/+31
| | | | | | | | | Instead of centering edit camera on selected object, center it on the selection box, which includes child objects. Change-Id: I7315a4bcfffc74e72a2b21d0a04fc99ee9f4f3c3 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
* QmlDesigner: Implement group selection boxes in 3D edit viewMiikka Heikkinen2019-11-227-65/+210
| | | | | | | | | | | | Object's selection box now includes the bounds of all of its descendants. Selection boxes of immediate children of a selected object are also drawn. Individual/group selection buttons also now work as expected. Change-Id: Ice7ef9a536e32c6bb6da70fe23bf0a38e72c14f8 Fixes: QDS-1210 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Implement fit selection button in 3D edit viewMiikka Heikkinen2019-11-229-8/+51
| | | | | | | | | Shortcuts for scale and move were also updated to correct ones. Change-Id: Iffcad0c81475553003962e65dc059879a237546e Fixes: QDS-1235 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Implement axis helper on 3D edit viewMiikka Heikkinen2019-11-2211-9/+297
| | | | | | | | | | Axis helper shows up on top right corner of 3D edit view. Clicking on axis helper arms zooms camera on that side of the selected object. Change-Id: Ibd81a933036f7965f825e3dc97ad7156da62e14c Fixes: QDS-1205 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Fix build errorMiikka Heikkinen2019-11-221-0/+3
| | | | | Change-Id: I53d425d0b6f4e66c09bd988bd188218cbf51a99c Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* QmlDesigner: Implement selection box to 3D edit viewMiikka Heikkinen2019-11-229-9/+381
| | | | | | | Change-Id: Ib0b13ecd7946e3b7da8ed06d4f5965e06e51a152 Fixes: QDS-1210 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Fix issues with MouseArea3D deactivation detectionMiikka Heikkinen2019-11-224-9/+17
| | | | | | | | | | | Existing mouse grab is now released when MouseArea3D is deactivated or set to no longer grab the mouse. Various gizmos were also set to follow MouseArea3D's dragging property instead of keeping track of drag themselves. Change-Id: I49f968f20b26eb222fc8635b943e9144073fb164 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>