QmlDesigner Binding Editor UX improvement

Binding Editor now shows which property type it expects.
Binding Editor now works with alias and unknown types.

Change-Id: I23d0bed3db5126de5107cf2f1f6b46485b89e1ea
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Aleksei German
2019-11-27 16:05:34 +01:00
parent 2ebffd3eaf
commit 7cf6632d7d
4 changed files with 38 additions and 4 deletions

View File

@@ -45,7 +45,7 @@ BindingEditorDialog::BindingEditorDialog(QWidget *parent)
: QDialog(parent)
{
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
setWindowTitle(tr("Binding Editor"));
setWindowTitle(defaultTitle());
setModal(false);
setupJSEditor();
@@ -153,6 +153,11 @@ void BindingEditorDialog::unregisterAutoCompletion()
m_editorWidget->unregisterAutoCompletion();
}
QString BindingEditorDialog::defaultTitle() const
{
return titleString;
}
void BindingEditorDialog::setupJSEditor()
{
static BindingEditorFactory f;