#warn("TYPE 0: %s" % type)
type = stripTypedefs(type)
#warn("TYPE 1: %s" % type)
- type2 = lookupType(str(type))
- if not type2 is None:
- type = type2
+ # This fails for arrays. See comment in lookupType.
+ type0 = lookupType(str(type))
+ if not type0 is None:
+ type = type0
#warn("TYPE 2: %s" % type)
fields = type.fields()
#warn("FIELDS: %s" % fields)
# This is a mapping from 'type name' to 'display alternatives'.
- qqDumpers = {}
qqFormats = {}
+qqNs = ""
class SetupCommand(gdb.Command):
d.putNumChild(4)
if d.isExpanded(item):
with Children(d):
- d.putFields(item)
# Parent and children.
- d.putItem(Item(d_ptr["parent"], item.iname, "parent", "parent"))
- d.putItem(Item(d_ptr["children"], item.iname, "children", "children"))
+ if stripClassTag(str(item.value.type)) == d.ns + "QObject":
+ d.putItem(Item(d_ptr["parent"], item.iname, "parent", "parent"))
+ d.putItem(Item(d_ptr["children"], item.iname, "children", "children"))
# Properties.
with SubItem(d):
Core::ActionContainer *menuQtQuick = am->createMenu(Constants::M_QTQUICK);
menuQtQuick->menu()->setTitle(tr("Qt Quick"));
mtools->addMenu(menuQtQuick);
- m_actionPreview = new QAction("&Preview", this);
+ m_actionPreview = new QAction(tr("&Preview"), this);
- QList<int> toolsMenuContext = QList<int>()
- << core->uniqueIDManager()->uniqueIdentifier(QmlDesigner::Constants::C_QT_QUICK_TOOLS_MENU);
+ Core::Context toolsMenuContext(QmlDesigner::Constants::C_QT_QUICK_TOOLS_MENU);
Core::Command *cmd = addToolAction(m_actionPreview, am, toolsMenuContext,
QLatin1String("QtQuick.Preview"), menuQtQuick, tr("Ctrl+Alt+R"));
connect(cmd->action(), SIGNAL(triggered()), SLOT(openPreview()));