[gegl-qt] Qt5: Add direct class includes for QtWidget/QtDeclarative classes
- From: Jon Nordby <jonnor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl-qt] Qt5: Add direct class includes for QtWidget/QtDeclarative classes
- Date: Sun, 11 Mar 2012 18:20:49 +0000 (UTC)
commit d436f51fb0db2f9a37b4ab84bde21ab7b4feb841
Author: Jon Nordby <jononor gmail com>
Date: Sun Mar 11 18:56:23 2012 +0100
Qt5: Add direct class includes for QtWidget/QtDeclarative classes
Can now build the examples that uses QtWidgets under Qt5.
examples/qgv-basic/qgv-basic.cpp | 2 ++
.../autotransform-controls.cpp | 2 ++
.../qwidget-autotransform/autotransform-controls.h | 3 +++
.../qwidget-autotransform.cpp | 1 +
.../qwidget-transformations.cpp | 1 +
.../transformation-controls.cpp | 3 +++
.../transformation-controls.h | 5 ++++-
gegl-qt/internal/nodeviewchilditem.cpp | 1 +
gegl-qt/internal/nodeviewimplementation.h | 2 ++
gegl-qt/nodeviewdeclarativeitem.h | 1 +
10 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/examples/qgv-basic/qgv-basic.cpp b/examples/qgv-basic/qgv-basic.cpp
index f6dcc63..8488741 100644
--- a/examples/qgv-basic/qgv-basic.cpp
+++ b/examples/qgv-basic/qgv-basic.cpp
@@ -20,6 +20,8 @@
#include <QtGui>
#include <QtCore>
+#include <QGraphicsView>
+#include <QApplication>
using namespace GeglQt;
diff --git a/examples/qwidget-autotransform/autotransform-controls.cpp b/examples/qwidget-autotransform/autotransform-controls.cpp
index caee8ca..b9d1df2 100644
--- a/examples/qwidget-autotransform/autotransform-controls.cpp
+++ b/examples/qwidget-autotransform/autotransform-controls.cpp
@@ -18,6 +18,8 @@
#include "autotransform-controls.h"
+#include <QCheckBox>
+#include <QBoxLayout>
AutoTransformControls::AutoTransformControls(QWidget *parent) :
QWidget(parent)
diff --git a/examples/qwidget-autotransform/autotransform-controls.h b/examples/qwidget-autotransform/autotransform-controls.h
index f2f69d2..c714246 100644
--- a/examples/qwidget-autotransform/autotransform-controls.h
+++ b/examples/qwidget-autotransform/autotransform-controls.h
@@ -3,6 +3,9 @@
#include <QtGui>
#include <gegl-qt/nodeviewoptions.h>
+#include <QWidget>
+
+class QCheckBox;
using namespace GeglQt;
diff --git a/examples/qwidget-autotransform/qwidget-autotransform.cpp b/examples/qwidget-autotransform/qwidget-autotransform.cpp
index c4b671e..70ca365 100644
--- a/examples/qwidget-autotransform/qwidget-autotransform.cpp
+++ b/examples/qwidget-autotransform/qwidget-autotransform.cpp
@@ -21,6 +21,7 @@
#include <QApplication>
#include <QtCore>
+#include <QBoxLayout>
using namespace GeglQt;
diff --git a/examples/qwidget-transformations/qwidget-transformations.cpp b/examples/qwidget-transformations/qwidget-transformations.cpp
index cdb7a50..78f3fc7 100644
--- a/examples/qwidget-transformations/qwidget-transformations.cpp
+++ b/examples/qwidget-transformations/qwidget-transformations.cpp
@@ -22,6 +22,7 @@
#include <QApplication>
#include <QtCore>
+#include <QBoxLayout>
int main(int argc, char *argv[])
{
diff --git a/examples/qwidget-transformations/transformation-controls.cpp b/examples/qwidget-transformations/transformation-controls.cpp
index 9978ec6..70bd697 100644
--- a/examples/qwidget-transformations/transformation-controls.cpp
+++ b/examples/qwidget-transformations/transformation-controls.cpp
@@ -18,6 +18,9 @@
#include "transformation-controls.h"
+#include <QDoubleSpinBox>
+#include <QBoxLayout>
+
TransformationControls::TransformationControls(QWidget *parent) :
QWidget(parent)
{
diff --git a/examples/qwidget-transformations/transformation-controls.h b/examples/qwidget-transformations/transformation-controls.h
index 7dfe553..e2bfb57 100644
--- a/examples/qwidget-transformations/transformation-controls.h
+++ b/examples/qwidget-transformations/transformation-controls.h
@@ -1,9 +1,12 @@
#ifndef TRANSFORMATIONCONTROLS_H
#define TRANSFORMATIONCONTROLS_H
+#include <gegl-qt/nodeviewoptions.h>
+
#include <QtGui>
+#include <QWidget>
-#include <gegl-qt/nodeviewoptions.h>
+class QDoubleSpinBox;
using namespace GeglQt;
diff --git a/gegl-qt/internal/nodeviewchilditem.cpp b/gegl-qt/internal/nodeviewchilditem.cpp
index a119170..4a0aede 100644
--- a/gegl-qt/internal/nodeviewchilditem.cpp
+++ b/gegl-qt/internal/nodeviewchilditem.cpp
@@ -20,6 +20,7 @@
#include "internal/nodeviewimplementation.h"
#include <QtDebug> // TEMP
+#include <QStyleOptionGraphicsItem>
using namespace GeglQt;
diff --git a/gegl-qt/internal/nodeviewimplementation.h b/gegl-qt/internal/nodeviewimplementation.h
index b8e8458..e25d390 100644
--- a/gegl-qt/internal/nodeviewimplementation.h
+++ b/gegl-qt/internal/nodeviewimplementation.h
@@ -24,6 +24,8 @@
#include <gegl-qt/nodeviewoptions.h>
+class QGraphicsItem;
+
namespace GeglQt {
class NodeViewChildItem;
diff --git a/gegl-qt/nodeviewdeclarativeitem.h b/gegl-qt/nodeviewdeclarativeitem.h
index af776e3..ee6e544 100644
--- a/gegl-qt/nodeviewdeclarativeitem.h
+++ b/gegl-qt/nodeviewdeclarativeitem.h
@@ -20,6 +20,7 @@
*/
#include <QtDeclarative>
+#include <QDeclarativeItem>
#include <QtCore>
#include <gegl.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]