Commit Graph

31 Commits

Author SHA1 Message Date
Thomas Hartmann
cd004cdf98 QmlDesigner: avoid crash for Components and copy and paste
We have to set the proper fileUrl on all models
2010-05-18 14:48:21 +02:00
Kai Koehne
a68fffd067 QuickDesigner: Update ItemLibrary when imported directories change
ItemLibraryInfo has now a signal "entriesChanged()", which the ItemLibrary
connects to. To allow this, ItemLibraryInfo was moved from a stack-based to
a heap-based class.

Reviewed-by: Thomas Hartmann
2010-05-12 17:47:35 +02:00
Marco Bubke
75803b08d2 Attach the loggerview directly after the model creation.
Now you get all the changes of the rewriter.

Reviewed-by: kkoehne
2010-05-05 08:09:49 +02:00
Kai Koehne
ddc7641638 Qml: Bump library version from 4.6 to 4.7
All types in the Qt namespace now have 4.7 as minimum version.
2010-04-23 13:46:13 +02:00
Jörg Schummer
052e5fa6ab QmlDesigner.ItemLibrary: Resources view is now updated when switching files
Task-number: BAUHAUS-599
2010-04-20 14:40:36 +02:00
Thomas Hartmann
de610cac45 QmlDesigner: crash fix for copy and paste
imports (in the model) are broken (regression)
Since I rely on working imports in copy and paste broke.

I hardcode 4.7 in this patch!

Reviewed-by: Kai Koehne
2010-04-16 13:46:35 +02:00
Lasse Holmstedt
0fd5e4e9c4 Removed extra toolbar from quick designer, improved settings page 2010-04-08 17:04:46 +02:00
Kai Koehne
71aafa6555 Disable switching to Component elements
Feature is pretty fragile, and the primary use case (Delegates
for Views) isn't really supported anyway.

Task-number: BAUHAUS-562
2010-04-08 12:32:13 +02:00
Kai Koehne
182f284d52 QmlDesigner: Cleanup
Remove trailing whitespace + fix compilation warning.
2010-03-24 17:47:39 +01:00
Thomas Hartmann
9d9285cfbf QmlDesigner: renaming widget() to centerWidget() in DesignDocumentController 2010-03-23 14:31:00 +01:00
Thomas Hartmann
7bb8f29c9c QmlDesigner: all views instanciated once and shared now 2010-03-23 14:01:25 +01:00
Kai Koehne
1a37b0e762 Rename QML Viewer to QML Runtime 2010-03-10 16:39:15 +01:00
Kai Koehne
961cdd5e17 QmlDesigner: Disable switching to Component elements for the Alpha
Changing anything in the submodel right now crashes, and it seems
it will take some time to fix this.

Reviewed-by: Thomas Hartmann
2010-03-09 12:23:21 +01:00
Thomas Hartmann
54981a4a62 QmlDesigner: tweaking of pasting into the visual designer 2010-03-08 17:40:31 +01:00
Thomas Hartmann
845948cdee QmlDesigner: crash fix
See BAUHAUS-435
Inside a modification group/transaction we disable undo/redo
2010-03-08 13:55:19 +01:00
Lasse Holmstedt
736963a422 Context Help support for Bauhaus
Task-number: BAUHAUS-451
Reviewed-by: kkoehne
2010-03-08 09:48:31 +01:00
hjk
9595504bda Long live the king! 2010-03-05 11:28:13 +01:00
Thomas Hartmann
83a7da7c3d QmlDesigner: randomly distribute pasted items by 25% 2010-03-02 16:01:06 +01:00
Thomas Hartmann
14959eb6c3 QmlDesigner: paste to parent instead of selected item 2010-03-02 16:01:06 +01:00
Kai Koehne
ecbb54811c Deleting/pasting multiple items at once are now one Undo/Redo action
Task-number: BAUHAUS-368
2010-02-11 12:28:52 +01:00
Erik Verbruggen
b0b893acbf Fixed null-pointer deref in copy/paste. 2010-02-10 14:50:13 +01:00
Marco Bubke
f6a06085e0 Change changeNodeType in changeRootNodeType 2010-02-10 13:03:03 +01:00
Marco Bubke
57de5b20e0 Select pasted node in Bauhaus 2010-02-09 15:47:37 +01:00
Marco Bubke
0a62a383bd Improve Copy and Paste in Bauhaus
Now the items are pasted to the parent of selected node. It is too
selected after the paste.

Reviewed-by: Kai Koehne
2010-02-08 16:01:00 +01:00
Erik Verbruggen
a6b1fb94e6 Moved Creator specific code to a subclas. 2010-02-08 14:29:43 +01:00
Marco Bubke
666b454295 Add "Select All" menu item to the design mode 2010-01-25 15:29:45 +01:00
Marco Bubke
47afcf99ca Split the tool box of form editor in a upper and lower one 2010-01-21 20:02:22 +01:00
Thomas Hartmann
5dce709263 QmlDesigner: fixes copy and paste of components
This patch ensures that meta info is available for all models
during copy and paste
2010-01-18 18:51:15 +01:00
Kai Koehne
84c30ea99e Let the DesignMode recover when the qml contains an error on first load
If the qml contains an error on frist call of
DesignDocumentController::loadMaster, we did not wire up the components
to the model. If the user then fixed the qml, the Design mode widgets
were 'enabled', but didn't contain any meaningful input.

Fixed by always wiring up the components. Unfortunately this shows the
'default' model with just a Rectangle.
2010-01-13 11:53:42 +01:00
Kai Koehne
e929a40108 Code indentation fixes 2010-01-13 11:53:42 +01:00
Kai Koehne
818a7b226b New QmlDesigner plugin & Design mode
This adds a new "Design" mode that can be used to manipulate qml files
in a visual way. It will only get build if you have the declarativeui
module in Qt.

This is a squashed import from the Bauhaus project. Share & enjoy :)
2010-01-07 12:14:35 +01:00