Files
qt-creator/share/qtcreator/templates/wizards/projects/qtquick2-extension/object.cpp

16 lines
381 B
C++
Raw Normal View History

#include "%{ObjectHdr}"
%{ObjectName}::%{ObjectName}(QQuickItem *parent)
: QQuickItem(parent)
{
// By default, QQuickItem does not draw anything. If you subclass
// QQuickItem to create a visual item, you will need to uncomment the
// following line and re-implement updatePaintNode()
// setFlag(ItemHasContents, true);
}
%{ObjectName}::~%{ObjectName}()
{
}