Commit Graph

290 Commits

Author SHA1 Message Date
Marco Bubke
a2c0b91ec5 QmlDesigner: Disable componentComplete for primitive creation
Control are now in a qrc file and the component are registered as Qml
types. We are using the primitive creation path in this case so we have
to disable the componentComplete call.

Change-Id: I52936b92d936acbfc21ba800ffca9123fcece864
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-10-24 09:48:04 +02:00
Christian Kandeler
bdc26d9379 Do not set the QT_CREATOR macro for the QML puppet.
It's not Qt Creator. And otherwise the build breaks with a namespaced
Qt.

Change-Id: Ib30ef86fbc59a02f6fd60d2f0b0b8f4ab452ef6d
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-10-23 16:55:37 +02:00
Marco Bubke
5f61d91648 QmlDesigner: Fix movement of items
Change-Id: I22440c949f634b60ec90803aa6b61bbcf819ea48
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-09-30 13:53:26 +02:00
Marco Bubke
8336a1b7ec QmlDesigner: Remove qDebugs
Change-Id: Iab635145cb2cde87c8d229983e1436910e90f0e4
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-09-11 12:40:42 +02:00
Marco Bubke
bd9cf4bc87 QmlDesigner: Don't move items in a layout
Change-Id: I9050b11d50d39726e2a19cabb7709020738a5c95
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-09-11 12:40:36 +02:00
Marco Bubke
820223a8f5 QmlDesigner: Re factor inline methods in NodeInstanceMetaObject
Change-Id: I9130b166a077fd0add21b65cab8fa7eee829386d
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-09-11 12:40:22 +02:00
Marco Bubke
2507a24ba9 QmlDesigner: Use QQuickView::setContent to set root component
Change-Id: I8d5700c71fd4e46f0463bf02195506251f71a853
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-09-11 12:40:11 +02:00
Marco Bubke
a25f30d6c4 QmlDesigner: Remove unneeded QtQuick import
Change-Id: Iab41ff8f1c197238c3cf78c6f99d78ee349b2137
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-09-11 12:39:59 +02:00
hjk
c68e90ec5c QmlPuppet: save a few function calls
Change-Id: Ic73b8bb417c2bf40af6146fe781c206266d3ecf8
Reviewed-by: Marco Bubke <marco.bubke@digia.com>
2013-09-11 10:49:54 +02:00
Marco Bubke
b00a7f0311 QmlDesigner: Fix attached properties call
Accessible.role for example was not found.

Change-Id: Ibd2f47d43705d5d450e572cbb9c786c75f7912b3
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-09-10 16:03:52 +02:00
Oswald Buddenhagen
a4d714e23d Merge branch '2.8'
Conflicts:
	qtcreator.pri
	qtcreator.qbs
	tests/system/shared/project.py
	tests/system/suite_general/tst_create_proj_wizard/test.py

Change-Id: Id9b80f049143dc8e108ed90bdc7c1ab40ba829ef
2013-09-06 12:20:44 +02:00
Nikolai Kosjar
69fc3cf03f Kill ";;" at end of statement
Change-Id: I177094f19978e07f85e42b34701d8f03cd26665e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
2013-09-04 09:19:10 +02:00
Thomas Hartmann
732d5ec701 QmlDesigner.QmlPuppet: fix for clipping in sub items
We did not clip sub items if clipping was enabled.

Task-number: QTCREATORBUG-9604
Change-Id: I75fdabd86193fbfbf397bf3d119a1a33c72cf771
Reviewed-by: Marco Bubke <marco.bubke@digia.com>
2013-08-28 12:22:11 +02:00
Thomas Hartmann
61e7641a6d QmlDesigner.QmlPuppet: fix for nonInstanceChildIsDirty()
We did not take care of the case where only the transform of a child
changes but nothing else.

Task-number: QTCREATORBUG-9796
Change-Id: Id997e527193c103abf3aeb77826501fb8f701fb7
Reviewed-by: Marco Bubke <marco.bubke@digia.com>
2013-08-28 12:19:22 +02:00
Thomas Hartmann
cb0e37128b QmlDesigner.QmlPuppet: fix for bindings and alias properties
For alias properties a binding to the original property
was not properly enabled.
This means that if bindings were reseted the original value from the binding
was overwriting any change to this property.

Solution: We disable the binding of the alias property manually using the
hash from resetBinding().

Task-number: QTCREATORBUG-9582
Change-Id: I7a891bbdd06154de8a4e1ff2d3c0939d4e8b4010
Reviewed-by: Marco Bubke <marco.bubke@digia.com>
2013-08-28 12:11:54 +02:00
Marco Bubke
7be0100298 QmlDesigner: V8 is not anymore present in 5.2
Change-Id: Ie154a02719f4706b9edc872767b137fe6f9977bc
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@digia.com>
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-08-22 12:27:07 +02:00
Marco Bubke
04f29127a1 QmlDesigner: Fix transformation bug for tab widgets
Change-Id: Idc33ddf04f0b6fc317aeb5ed72fd7164ba174ab4
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-08-15 15:51:02 +02:00
Marco Bubke
0dd5f68152 QmlDesigner: Rename actualState in currentState
Change-Id: I49f80126a3fc0184a3b18352ed2adc24e50040c7
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-07-31 16:37:29 +02:00
Marco Bubke
44bbfa3bc4 QmlDesigner: Better argument checking for the qml2puppet
Change-Id: Ib4c83d9bb30705c23b9966696ebc7015501da154
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
2013-07-24 14:19:42 +02:00
Simon Hausmann
c97e894a24 Fix build with Qt dev (5.2)
QVariant now has an operator< that is ambiguous with this one.
(since commit 7ed15da3c1b9e2bb26f414a10bfc6e6d79d7cc7b in qtbase)

Change-Id: Idf38afe85cec966df1885aa2da0f37fbb3eeccf6
Reviewed-by: Marco Bubke <marco.bubke@digia.com>
2013-07-18 14:40:03 +02:00
Orgad Shaneh
ad9e7ccab6 Fix coding style for else statements
Change-Id: I1309db70e98d678e150388c76ce665e988fdf081
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
2013-07-17 11:11:25 +02:00
Marco Bubke
0ba2b9b37d QmlDesigner: Add qdebugs for commands
Change-Id: I60bdd5b36749be5092d4dabe486b101d62b3df06
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-07-16 17:04:31 +02:00
Marco Bubke
8f22b84016 QmlDesigner: Fix the exit for qml puppet
Change-Id: I228e91711f6976e0e6d7b298d73f61cd8c25be23
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-07-16 17:00:31 +02:00
Thomas Hartmann
42b4e57f55 QmlDesigner.Qml2Puppet: crash fix
If if have less then one argument show some help end exit.
The code afterwards assumes that we have at least one argument.

Change-Id: I555e02dc03c2319eef713b880cf43d740d64e942
Reviewed-by: Marco Bubke <marco.bubke@digia.com>
2013-07-15 15:19:32 +02:00
Eike Ziller
a98fe15fe5 Merge remote-tracking branch 'origin/2.8' into HEAD
Conflicts:
	qbs/pluginspec/pluginspec.qbs

Change-Id: Ic8e992623b9eda8913ee473c779a8df27643ccc9
2013-07-08 15:01:17 +02:00
Marco Bubke
90ce3aec8b QmlDesigner: Test mode for qml puppet streams
Change-Id: I93128c60892900d6b4728569b84efb0ed835b51f
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-07-08 11:28:38 +02:00
Thomas Hartmann
f6303e6784 QmlDesigner.QmlPupppet: Keeping the puppet from stealing focus on Mac
Defining QT_MAC_DISABLE_FOREGROUND_APPLICATION_TRANSFORM keeps the puppet
from stealing the focus of Qt Creator on Mac OS X and Qt 5.

Task-number: QTCREATORBUG-9418
Change-Id: Id0193b95d4c788ebe243773458645d1c584b2044
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Reviewed-by: Marco Bubke <marco.bubke@digia.com>
2013-07-04 13:02:06 +02:00
Eike Ziller
c63725ff66 Fix sources that are deployed into Qt Creator build for qml(2)puppet
When qml(2)puppet is built as part of Qt Creator, we need to generate
the Info.plist from Info.plist.in. When it is deployed as source into
the Qt Creator build, we need to do that too.

Change-Id: I83aa446f19984a51822c46df2ab7f41e78002ad4
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-06-28 14:22:36 +02:00
Marco Bubke
89db22a1c8 QmlDesigner: Better componentComplete
Change-Id: I2bfdbeabd4d08474d50434d7e13c32b780e783ca
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-06-18 15:10:43 +02:00
Marco Bubke
30d3e7e51d QmlDesigner: Fix preview rendering
We excluded item which had a node instance. For the preview all item should
be marked dirty.

Change-Id: I0cbad89707d7d94f65ac0d055488e124da40e7b3
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-06-18 15:09:26 +02:00
Marco Bubke
d0afdfcc2b QmlDesigner: Remove unused function in ObjectNodeInstance
Change-Id: I4286439082f25fa1eeaf4b90ae3d00aedd80cd51
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-06-11 16:44:46 +02:00
Thomas Hartmann
b13a47f566 fixing Info.plist
info was missing a $$PWD/ in .pri files.

Change-Id: I01771021595c706514786c9d7b2991cc5d9f60cb
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
2013-06-11 16:44:35 +02:00
Marco Bubke
65b99d1d8a QmlDesigner: Remove recursive NodeInstanceMetaObject creation
Change-Id: I3e5f46413767f5d1649a0c526f69f434e897b597
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-06-06 18:01:32 +02:00
Marco Bubke
af54a661a4 QmlDesigner: Remove refresh bindings for componentComplete
changeId is triggering it anyway and it is really expensive.

Change-Id: I37743ed619d9e901b28c69f4c324852ba7e6608c
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-06-06 17:20:53 +02:00
Marco Bubke
11036e9d52 QmlDesigner: Explicit constructors for commands
Change-Id: I3ea3db0d1c1b0fd19b0e89e7e435671f6f5e91af
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-06-06 16:47:58 +02:00
Marco Bubke
e09902965a QmlDesigner: Don't refresh bindings for reparenting for Quick 2.0
Change-Id: Id10fcc05c8ac9c0f635e3a02138bda76fd66599e
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-06-06 16:47:52 +02:00
Marco Bubke
9d967d4be0 QmlDesigner: Remove refreshBindings for instance creation
Refresh bindings is very expensive and called anyway at reparenting.

Change-Id: I232afefee22484e3994ade31457f61ea6ee1293e
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-06-06 16:33:34 +02:00
Marco Bubke
53e3157641 QmlDesigner: Remove qDebugs in the NodeInstanceSignalSpy
Change-Id: I3f725f3e502cd2541943f1cfb407aad332539606
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-06-06 08:52:33 +02:00
Marco Bubke
6b49ef4f2e QmlDesigner: Fix nodeinstancesignalspy
The signal spy never worked with value types. The recursive code is not
needed anymore and anyway broken.

Change-Id: I28861d13fa6ca8b7e8af97f5720c2968759da264
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-06-05 12:20:03 +02:00
Marco Bubke
782e8f66a1 QmlDesigner: Remove code which does nothing
Change-Id: Ia6edcd10c42f0ef71ed1237e45185e5fd8a4a66e
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-06-04 14:37:35 +02:00
Marco Bubke
7784baf54f QmlDesigner: Make it easier to add new arguments to the puppet
Change-Id: I15bc4a1a431787e350ace9fa09d8c140d06a7ed6
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-06-04 14:37:28 +02:00
Gunnar Sletta
b91a5bcb13 Force gray-antialiasing for text.
Subpixel antialiasing cannot be supported when rendering is done
to a transparent-cleared FBO.

Change-Id: I46eeac792416f6164521c9142a8b6cffbbddc99b
Reviewed-by: Marco Bubke <marco.bubke@digia.com>
2013-06-04 12:41:33 +02:00
Marco Bubke
333cec5957 QmlDesigner: Change main.cpp in qmlpuppetmain.cpp
To better find it in the qt creator locator.

Change-Id: Icfc7b400ee972802471a7a52f8552bb0fd41acdb
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-06-04 12:41:00 +02:00
Marco Bubke
b97422b710 QmlDesigner: Add container item support in node instances
Change-Id: I30e0d11346b8c63188d052b46656e7ede179e55d
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-05-30 14:11:57 +02:00
Marco Bubke
2753ca94c7 QmlDesigner: Remove unused code
Change-Id: I08e98f22d3afd5911c56f1471701587db9d9c446
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-05-28 15:58:55 +02:00
Eike Ziller
d8bd56bcd6 Merge remote-tracking branch 'origin/2.7' into 2.8
Conflicts:
	src/plugins/cpptools/cppcompletion_test.cpp
	src/plugins/cpptools/cpptoolsplugin.h
	src/plugins/qbsprojectmanager/qbsbuildstep.cpp
	src/plugins/qbsprojectmanager/qbscleanstep.cpp
	src/plugins/qbsprojectmanager/qbsnodes.cpp
	src/shared/qbs

Change-Id: I8fc97ed61c47af2c3d9e5cc2bf81e97661204d4e
2013-05-24 16:20:10 +02:00
Thomas Hartmann
c884f629d6 QmlDesigner.Instances: custom rendering for QQuickWindow
Change-Id: Id2d9bd6b7f5cecefffddece30bb93a69699beeff
Reviewed-by: Marco Bubke <marco.bubke@digia.com>
2013-05-23 15:35:46 +02:00
Marco Bubke
7976456002 QmlDesigner: Add content item hack
There is no stand content item interface, so try to work around to enable
snapping and anchoring.

Change-Id: Ib2eaf0d6c35e3ba289dd7d55b2ba4c064ad40748
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-05-22 14:45:43 +02:00
Marco Bubke
4f28228293 QmlDesigner: Fix anchoring for application window
We don't tested that target anchor object are node instances. Now we
search for the parent object recursively.

Change-Id: I2e03e714f858a285309b02f5e88c757f0dcfe7e5
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-05-21 17:13:48 +02:00
Marco Bubke
5847268778 QmlDesigner: Fix value change notification
The return value is always -1.

Change-Id: I19ede339e7557a794069b4dc991cb9f9a711caa9
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-05-21 14:41:04 +02:00