From 5e92c6d05d1bfe5f756910dee3a72cc3f2d65b10 Mon Sep 17 00:00:00 2001 From: Kevin Krammer Date: Fri, 29 Mar 2013 14:34:01 +0100 Subject: [PATCH] Register QHeaderView as an uncreatable type for now QHeaderView requires constructor arguments (orientation) so it is not easily creatable and the argument is also not easily deducable during runtime. --- lib/declarativewidgetsdocument.cpp | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/lib/declarativewidgetsdocument.cpp b/lib/declarativewidgetsdocument.cpp index e261ca4..b13ac75 100644 --- a/lib/declarativewidgetsdocument.cpp +++ b/lib/declarativewidgetsdocument.cpp @@ -72,6 +72,7 @@ #include #include #include +#include #include #include #include @@ -153,6 +154,7 @@ DeclarativeWidgetsDocument::DeclarativeWidgetsDocument(const QUrl &url, QObject qmlRegisterExtendedType("QtGui", 1, 0, "FontDialog"); qmlRegisterExtendedType("QtGui", 1, 0, "GroupBox"); qmlRegisterExtendedType("QtGui", 1, 0, "InputDialog"); + qmlRegisterUncreatableType("QtGui", 1, 0, "HeaderView", ""); qmlRegisterExtendedType("QtGui", 1, 0, "Label"); qmlRegisterExtendedType("QtGui", 1, 0, "LineEdit"); qmlRegisterExtendedType("QtGui", 1, 0, "LCDNumber"); -- 1.7.2.5