QWidget* QtnPropertyDelegateQStringFile::createValueEditorImpl(QWidget* parent, const QRect& rect, QtnInplaceInfo* inplaceInfo) { QtnLineEditBttn* editor = new QtnLineEditBttn(parent); editor->setGeometry(rect); auto handler = new QtnPropertyQStringFileLineEditBttnHandler(owner(), *editor); handler->applyAttributes(m_editorAttributes); qtnInitLineEdit(editor->lineEdit, inplaceInfo); return editor; }
QWidget* QtnPropertyDelegateQFont::createValueEditorImpl(QWidget* parent, const QRect& rect, QtnInplaceInfo* inplaceInfo) { QtnLineEditBttn* editor = new QtnLineEditBttn(parent); editor->setGeometry(rect); new QtnPropertyQFontLineEditBttnHandler(owner(), *editor); if (inplaceInfo) { editor->lineEdit->selectAll(); } return editor; }