Skip to contentSkip to conversation

qtdeclarative: fix compilation of examples/qquickviewcomparison

PATCH New Denys Dmytriyenko 1 participant 2 messages Apr 1, 2016

lore
Share & tools
lore
#1 lore raw

PATCH 2/2 qtquickcontrols: fix compilation of examples/texteditor

In reply to Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

git/examples/quick/controls/texteditor/src/documenthandler.cpp:136:12: error: invalid use of incomplete type 'class QDebug'

      qDebug() << "saved to" << localPath;
---
 ...fix-invalid-use-of-incomplete-type-class-.patch | 27 ++++++++++++++++++++++
 .../recipes-qt/qt5/qtquickcontrols_%.bbappend      |  3 +++
 2 files changed, 30 insertions(+)
 create mode 100644 meta-arago-distro/recipes-qt/qt5/qtquickcontrols/0001-texteditor-fix-invalid-use-of-incomplete-type-class-.patch
 create mode 100644 meta-arago-distro/recipes-qt/qt5/qtquickcontrols_%.bbappend
meta-arago-distro/recipes-qt/qt5/qtquickcontrols/0001-texteditor-fix-invalid-use-of-incomplete-type-class-.patch new file +27 -0
new file mode 100644
index 0000000..10793e6
@@ -0,0 +1,27 @@
+From c39a563984693efac577adb137115693634c038f Mon Sep 17 00:00:00 2001
+From: Denys Dmytriyenko <[email protected]>
+Date: Thu, 31 Mar 2016 19:57:01 -0400
+Subject: [PATCH] texteditor: fix invalid use of incomplete type 'class QDebug'
+
+Upstream-Status: Pending
+
+Signed-off-by: Denys Dmytriyenko <[email protected]>
+---
+ examples/quick/controls/texteditor/src/documenthandler.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/examples/quick/controls/texteditor/src/documenthandler.cpp b/examples/quick/controls/texteditor/src/documenthandler.cpp
+index 2e9987a..c8bf419 100644
+--- a/examples/quick/controls/texteditor/src/documenthandler.cpp
++++ b/examples/quick/controls/texteditor/src/documenthandler.cpp
+@@ -44,6 +44,7 @@
+ #include <QtGui/QTextCursor>
+ #include <QtGui/QFontDatabase>
+ #include <QtCore/QFileInfo>
++#include <QtCore/QDebug>
+ 
+ DocumentHandler::DocumentHandler()
+     : m_target(0)
+-- 
+2.2.0
+
meta-arago-distro/recipes-qt/qt5/qtquickcontrols_%.bbappend new file +3 -0
new file mode 100644
index 0000000..d666f8c
@@ -0,0 +1,3 @@
+SRC_URI += " \
+    file://0001-texteditor-fix-invalid-use-of-incomplete-type-class-.patch \
+"
Signature · 1 line
2.2.0
#0 lore raw

PATCH 1/2 qtdeclarative: fix compilation of examples/qquickviewcomparison

From: Denys Dmytriyenko <[email protected]>

git/examples/quick/quickwidgets/qquickviewcomparison/mainwindow.cpp:180:14: error: 'QCoreApplication' has not been declared
if (!QCoreApplication::arguments().contains(QStringLiteral("--no_render_alpha")))

---
 ...omparison-fix-QCoreApplication-has-not-be.patch | 28 ++++++++++++++++++++++
 .../recipes-qt/qt5/qtdeclarative_%.bbappend        |  3 +++
 2 files changed, 31 insertions(+)
 create mode 100644 meta-arago-distro/recipes-qt/qt5/qtdeclarative/0001-qquickviewcomparison-fix-QCoreApplication-has-not-be.patch
 create mode 100644 meta-arago-distro/recipes-qt/qt5/qtdeclarative_%.bbappend
meta-arago-distro/recipes-qt/qt5/qtdeclarative/0001-qquickviewcomparison-fix-QCoreApplication-has-not-be.patch new file +28 -0
new file mode 100644
index 0000000..1687fbe
@@ -0,0 +1,28 @@
+From 1cdd3278a0b1508640d983720782d39eb919caaf Mon Sep 17 00:00:00 2001
+From: Denys Dmytriyenko <[email protected]>
+Date: Thu, 31 Mar 2016 19:38:58 -0400
+Subject: [PATCH] qquickviewcomparison: fix QCoreApplication has not been
+ declared error
+
+Upstream-Status: Pending
+
+Signed-off-by: Denys Dmytriyenko <[email protected]>
+---
+ examples/quick/quickwidgets/qquickviewcomparison/mainwindow.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/examples/quick/quickwidgets/qquickviewcomparison/mainwindow.h b/examples/quick/quickwidgets/qquickviewcomparison/mainwindow.h
+index 5b86c93..e77514e 100644
+--- a/examples/quick/quickwidgets/qquickviewcomparison/mainwindow.h
++++ b/examples/quick/quickwidgets/qquickviewcomparison/mainwindow.h
+@@ -44,6 +44,7 @@
+ #include <QWidget>
+ #include <QQuickWidget>
+ #include <QQuickView>
++#include <QCoreApplication>
+ 
+ QT_FORWARD_DECLARE_CLASS(QRadioButton)
+ QT_FORWARD_DECLARE_CLASS(QCheckBox)
+-- 
+2.2.0
+
meta-arago-distro/recipes-qt/qt5/qtdeclarative_%.bbappend new file +3 -0
new file mode 100644
index 0000000..96cd201
@@ -0,0 +1,3 @@
+SRC_URI += " \
+    file://0001-qquickviewcomparison-fix-QCoreApplication-has-not-be.patch \
+"
Signature · 1 line
2.2.0