diff options
author | Steven Ceuppens <steven.ceuppens@cense.be> | 2013-01-17 16:18:29 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@digia.com> | 2013-01-18 11:45:00 +0100 |
commit | d94e7f259b05e87688f6f4fc3942e7bd46649ae2 (patch) | |
tree | 2ab5608ca5bd7545da6320634bdc47e1e760f54f /src/plugins/cppeditor/cppclasswizard.cpp | |
parent | 9417bea9acd7184b33adc176c1c5b507126b0c69 (diff) | |
download | qt-creator-d94e7f259b05e87688f6f4fc3942e7bd46649ae2.tar.gz |
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 <daniel.teske@digia.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/cppeditor/cppclasswizard.cpp')
-rw-r--r-- | src/plugins/cppeditor/cppclasswizard.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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; |