From 5857ea03a77e44879191dd922b7c38c49616517b Mon Sep 17 00:00:00 2001 From: Jens Bache-Wiig Date: Thu, 11 Apr 2013 19:49:39 +0200 Subject: Remove hard dependency on widgets Change-Id: I1fabb4efcc931f12f0a65ac5c66e6e085108269b Reviewed-by: J-P Nurmi --- src/private/qquickstyleitem.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/private/qquickstyleitem.cpp') diff --git a/src/private/qquickstyleitem.cpp b/src/private/qquickstyleitem.cpp index 7c38794d..4a673579 100644 --- a/src/private/qquickstyleitem.cpp +++ b/src/private/qquickstyleitem.cpp @@ -132,17 +132,6 @@ QQuickStyleItem::QQuickStyleItem(QQuickItem *parent) m_contentHeight(0) { - // Check on QApplication, allowing for "qmlplugindump" to query our interfaces. - QCoreApplication *coreApp = QCoreApplication::instance(); - Q_ASSERT(coreApp); - if (!qobject_cast(coreApp)) { - if (QCoreApplication::applicationFilePath().contains(QLatin1String("qmlplugindump"), Qt::CaseInsensitive)) - return; - qWarning("\nError: No widget style available. \n\nQt Quick Controls" - "currently depend on the widget module to function. \n" - "Use QApplication when creating standalone executables.\n\n"); - exit(-1); - } m_font = qApp->font(); setFlag(QQuickItem::ItemHasContents, true); setSmooth(false); -- cgit v1.2.1