bool SignalSlotDialog::editPromotedClass(QDesignerFormEditorInterface *core, QObject *baseObject, QWidget *parent, FocusMode mode) { if (!baseObject->isWidgetType()) return false; const QString promotedClassName = promotedCustomClassName(core, qobject_cast<QWidget*>(baseObject)); if (promotedClassName.isEmpty()) return false; return editPromotedClass(core, promotedClassName, baseObject, parent, mode); }
QDESIGNER_SHARED_EXPORT QString promotedExtends(QDesignerFormEditorInterface *core, QWidget* widget) { const QString customClassName = promotedCustomClassName(core,widget); if (customClassName.isEmpty()) return QString(); const int i = core->widgetDataBase()->indexOfClassName(customClassName); if (i == -1) return QString(); return core->widgetDataBase()->item(i)->extends(); }