From fe0a7b716633dd35df8ecc987ad1031b60aafca4 Mon Sep 17 00:00:00 2001 From: Donald Carr Date: Tue, 17 Apr 2012 05:23:21 +0000 Subject: Enabled widget free compilation of QtQuick There is no hard dependency of QtQuick on QWidget. This change makes the minor adjustments required to remove the build dependency altogether. This patch follows the path of least resistance bypassing any elements with a dependency on the legacy QWidget functionality. Change-Id: Ie3f47d3b4f60a1460dbb5d76a494a2c329469cc0 Reviewed-by: Alan Alpert --- tools/qmleasing/main.cpp | 4 ++-- tools/qmleasing/qmleasing.pro | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/qmleasing') diff --git a/tools/qmleasing/main.cpp b/tools/qmleasing/main.cpp index 59daa0e664..a2b15108eb 100644 --- a/tools/qmleasing/main.cpp +++ b/tools/qmleasing/main.cpp @@ -41,7 +41,7 @@ #include #include -#include +#include #include #include @@ -102,7 +102,7 @@ void EasingPlot::paint(QPainter *painter) int main(int argc, char ** argv) { - QApplication app(argc, argv); + QGuiApplication app(argc, argv); qmlRegisterType("EasingPlot", 1, 0, "EasingPlot"); diff --git a/tools/qmleasing/qmleasing.pro b/tools/qmleasing/qmleasing.pro index 488ec5748a..b43071c4ed 100644 --- a/tools/qmleasing/qmleasing.pro +++ b/tools/qmleasing/qmleasing.pro @@ -1,4 +1,4 @@ -QT += qml quick widgets +QT += qml quick CONFIG -= app_bundle SOURCES += main.cpp -- cgit v1.2.3