174 MetaDataBase *db = qobject_cast<MetaDataBase *>(core->metaDataBase());
177 MetaDataBaseItem *item = db->metaDataBaseItem(widget);
180 item = db->metaDataBaseItem(widget);
183 const QString oldCustomClassName = item->customClassName();
184 if (!oldCustomClassName.isEmpty()) {
185 qDebug() <<
"WARNING: Recursive promotion of " << oldCustomClassName <<
" to " << customClassName
186 <<
". A plugin is missing.";
188 item->setCustomClassName(customClassName);
190 qDebug() <<
"Promoting " << widget->metaObject()->className() <<
" to " << customClassName;
209 const MetaDataBase *db = qobject_cast<
const MetaDataBase *>(core->metaDataBase());
212 const MetaDataBaseItem *item = db->metaDataBaseItem(widget);
215 return !item->customClassName().isEmpty();