Commit Graph

232 Commits

Author SHA1 Message Date
Kai Koehne
db2fcdb416 QmlDesigner: Fix crash on exit
QtCreator crashed on exit when the library/navigator/sidebar wasn't
visible in the Design mode. This is caused by a double deletion: The
widgets have the DesignModeWidget as the default parent + the side bar
items try to delete them on exit.

Fixed by removing default parent.

Task-number: QTCREATORBUG-1197
Reviewed-by: Christiaan Janssen
2010-04-16 17:12:22 +02:00
Lasse Holmstedt
65a30b06af Some more fixes to exception handling in bauhaus
Reviewed-by: thomas hartmann
2010-04-12 12:30:30 +02:00
Lasse Holmstedt
b05773923f Fixed missing text/design mode sync warnings
Task-number: BAUHAUS-565
Reviewed-by:erikv
2010-04-12 11:37:03 +02:00
Thomas Hartmann
60b8598676 QmlDesigner: cleanup of DesignModeWidget 2010-04-08 15:02:18 +02:00
dt
5f2ae2af47 Less includes 2010-04-07 13:51:07 +02:00
Kai Koehne
e3231a1741 QmlDesigner: Fix 'could not parse style sheet' runtime warning
Reviewed-by: Thomas Hartmann
2010-04-06 15:31:20 +02:00
Kai Koehne
34b84d8c06 QmlDesigner: Fix crash on loadup
Make DesignModeWidget::showEditor reentrant save by explicitly checking
the current status.

The crash happens only reproducably when debugging creator inside
creator (gdb-7.0-ubuntu!).

Reviewed-by: Lasse Holmstedt
2010-04-06 10:51:19 +02:00
Lasse Holmstedt
0befb98c20 Fixed crash when opening ui files in design mode
QML Designer now listens to contextChanged signal instead of
modeChanged and checks that the context is same as that of qmldesigner.

Reviewed-by: con
2010-03-26 12:39:26 +01:00
Thomas Hartmann
e94e6249ac QmlDesigner: avoid warnings (connections) 2010-03-25 16:55:23 +01:00
Thomas Hartmann
699d8b6f63 QmlDesigner: fix color of label in File System explorer 2010-03-25 15:01:47 +01:00
Thomas Hartmann
2f79b60fd7 QmlDesigner: fix warnings 2010-03-24 17:25:00 +01:00
Thomas Hartmann
7bb8f29c9c QmlDesigner: all views instanciated once and shared now 2010-03-23 14:01:25 +01:00
Lasse Holmstedt
1ce34736f7 Fixed toolbar for splitted editors 2010-03-15 16:03:00 +01:00
Lasse Holmstedt
64b6b8c43e Renaming designmodetoolbar -> editortoolbar pt.1 2010-03-10 12:48:17 +01:00
Lasse Holmstedt
3124db009f Refactored toolbar interface 2010-03-10 12:26:19 +01:00
Lasse Holmstedt
a6a049852b Editor toolbar integration 2010-03-10 12:26:19 +01:00
Lasse Holmstedt
a4cfad693c refactored faketoolbar into core -> designmodetoolbar
Reviewed-by: kkoehne
2010-03-10 12:26:18 +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
Lasse Holmstedt
079897f295 fixed crash when changing b/w edit/design mode while QML Designer is loading 2010-03-01 13:11:05 +01:00
Kai Koehne
7a4213107f QmlDesigner: Replace misleading default label in Design mode
People will only see the default widget while Bauhaus initializes
2010-02-28 14:35:15 +01:00
Lasse Holmstedt
df7a19de9e Design mode integration
Moved Qt Designer to open from Design Mode. Also, Design mode is now global,
and created in coreplugin. Other plugins can register themselves to it.
2010-02-26 11:17:02 +01:00
Thorbjørn Lindeijer
453dc44889 A bit less indirection 2010-02-10 12:18:22 +01:00
Friedemann Kleint
28d72550d3 Removed static QIcon instances.
thus fixing the exit warning:
"~QX11PixmapData(): QPixmap objects must be destroyed..."

Acked-by: con
2010-02-10 10:47:34 +01:00
Christiaan Janssen
6a67f00e06 QmlDesigner: Fixed minor issues 2010-02-09 10:44:38 +01:00
Kai Koehne
2ab90078f4 Center cursor when going from Design mode to text mode
Just use high level TextEditor::gotoLine instead of directly manipulating
the QTextCursor.

Task-number: BAUHAUS-326
2010-01-28 14:49:05 +01:00
Marco Bubke
666b454295 Add "Select All" menu item to the design mode 2010-01-25 15:29:45 +01:00
Kai Koehne
f88bc5f3cd Don't update design mode widgets while in text mode 2010-01-18 14:34:35 +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
b60df47065 Fix crash when adding/removing states in an invalid document
Disable the states editor widget if the qml file is invalid, just
as the other windows are disabled.

Task-number: BAUHAUS-272
2010-01-11 12:54:05 +01:00
Kai Koehne
2a425c7cfa Fix bug where a qml error shown in Design mode were not updated
If you continue to fix qml errors in text mode, but still had errors,
the error message you got in the Design mode always stayed the first
(outdated) error message.
2010-01-08 13:15:52 +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