Make sure that the sidebar items are deleted before the core
(e.g. ICore::instance()) is deleted.
Task-number: QTCREATORBUG-3269
Reviewed-by: Thomas Hartmann
Since Actions like copy/paste and delete interfiere
with controls like LineEdit, I added a special context
for the form editor. Now copy/paste/delete on the Qml items
are only registered for the form editor context and copying the contens
of a LineEdit will not lead to copy an item instead, anymore.
Reviewed-by: Kai Koehne
The function always switched to Edit Mode, which was the cause for
several bugs. Since openEditor() already does switch to the right mode,
the function is not really needed.
The following actions now respect the prefered mode of the editor:
"f file"-locator
The Open Documents list
Editor history navigation
When changing the language, the sidebar items would break because
their localized window titles were used for storing the settings. Now,
id's are used.
Reviewed-by: con
SideBar was patched to give it extra functionality:
- closeWhenEmpty: when all sidebar widgets are closed, the whole
sidebar will disappear, too.
- unavailableItems: a list of non-openable windowTitles can be given
to the sidebar.
Reviewed-by: con
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
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
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.
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.
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 :)