26 QDesignerFormWindowInterface *fw,
29 TextPropertyEditor(widget, EmbeddingInPlace, validationMode),
30 m_InPlaceWidgetHelper(
this, widget, fw)
32 setAlignment(m_InPlaceWidgetHelper.alignment());
33 setObjectName(u"__qt__passive_m_editor"_s);
38 setGeometry(QRect(widget->mapTo(widget->window(), r.topLeft()), r.size()));
42 connect(
this, &TextPropertyEditor::editingFinished,
this, &QWidget::close);
60 m_formWindow = QDesignerFormWindowInterface::findFormWindow(m_widget);
61 if (m_formWindow.isNull())
63 m_managed = m_formWindow->isManaged(m_widget);
65 connect(m_formWindow.data(), &QDesignerFormWindowInterface::selectionChanged,
66 this, &TaskMenuInlineEditor::updateSelection);
69 QDesignerFormEditorInterface *core = m_formWindow->core();
70 const QDesignerPropertySheetExtension *sheet = qt_extension<QDesignerPropertySheetExtension*>(core->extensionManager(), m_widget);
71 const int index = sheet->indexOf(m_property);
74 m_value = qvariant_cast<PropertySheetStringValue>(sheet->property(index));
75 const QString oldValue = m_value.value();
77 m_editor =
new InPlaceEditor(m_widget, m_vm, m_formWindow, oldValue, editRectangle());
78 connect(m_editor.data(), &InPlaceEditor::textChanged,
this, &TaskMenuInlineEditor::updateText);