From d94e7f259b05e87688f6f4fc3942e7bd46649ae2 Mon Sep 17 00:00:00 2001 From: Steven Ceuppens Date: Thu, 17 Jan 2013 16:18:29 +0100 Subject: Added QQuickItem to new class wizard When creating a new class, you can select the "Base class" or "Type information" QObject, QWidget, QDeclarativeItem... are available, but QQuickItem isn't.. Change-Id: I9fce6b6a43c915364fc405b99edd0b0d7ebab4fe Reviewed-by: Daniel Teske Reviewed-by: Tobias Hunger --- src/plugins/cppeditor/cppclasswizard.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/plugins/cppeditor/cppclasswizard.cpp') diff --git a/src/plugins/cppeditor/cppclasswizard.cpp b/src/plugins/cppeditor/cppclasswizard.cpp index 64f56d7c3b..2f8cf1c424 100644 --- a/src/plugins/cppeditor/cppclasswizard.cpp +++ b/src/plugins/cppeditor/cppclasswizard.cpp @@ -70,7 +70,8 @@ ClassNamePage::ClassNamePage(QWidget *parent) : << QLatin1String("QObject") << QLatin1String("QWidget") << QLatin1String("QMainWindow") - << QLatin1String("QDeclarativeItem")); + << QLatin1String("QDeclarativeItem") + << QLatin1String("QQuickItem")); m_newClassWidget->setBaseClassEditable(true); m_newClassWidget->setFormInputVisible(false); m_newClassWidget->setNamespacesEnabled(true); @@ -250,6 +251,10 @@ bool CppClassWizard::generateHeaderAndSource(const CppClassWizardParameters &par parentQObjectClass = QLatin1String("QDeclarativeItem"); defineQObjectMacro = true; break; + case Utils::NewClassWidget::ClassInheritsQQuickItem: + parentQObjectClass = QLatin1String("QQuickItem"); + defineQObjectMacro = true; + break; case Utils::NewClassWidget::NoClassType: case Utils::NewClassWidget::SharedDataClass: break; -- cgit v1.2.1