Created
January 9, 2015 07:28
-
-
Save ant32/175e23f79e247492004e to your computer and use it in GitHub Desktop.
QtRPT less includes in qtrpt.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: QtRptProject/QtRPT/RptFieldObject.h | |
=================================================================== | |
--- QtRptProject/QtRPT/RptFieldObject.h (revision 264) | |
+++ QtRptProject/QtRPT/RptFieldObject.h (working copy) | |
@@ -9,9 +9,8 @@ | |
#ifndef RPTFIELDOBJECT_H | |
#define RPTFIELDOBJECT_H | |
-#include <QDomDocument> | |
#include "qtrpt.h" | |
-#include <qtrptnamespace.h> | |
+#include "chart.h" | |
using namespace QtRptName; | |
Index: QtRptProject/QtRPT/RptSql.cpp | |
=================================================================== | |
--- QtRptProject/QtRPT/RptSql.cpp (revision 264) | |
+++ QtRptProject/QtRPT/RptSql.cpp (working copy) | |
@@ -8,6 +8,9 @@ | |
#include "RptSql.h" | |
#include <QTextCodec> | |
+#include <QDebug> | |
+#include <QSqlError> | |
+#include <QSqlRecord> | |
RptSql::RptSql(QString dbType, QString dbName, QString dbHost, QString dbUser, QString dbPassword, int dbPort, QString dbConnectionName, QObject *parent) : QObject(parent) { | |
/*#ifdef QT_DEBUG | |
Index: QtRptProject/QtRPT/RptSql.h | |
=================================================================== | |
--- QtRptProject/QtRPT/RptSql.h (revision 264) | |
+++ QtRptProject/QtRPT/RptSql.h (working copy) | |
@@ -10,7 +10,7 @@ | |
#define RPTSQL_H | |
#include <QObject> | |
-#include <QtSql> | |
+#include <QSqlQuery> | |
class RptSql : public QObject | |
{ | |
Index: QtRptProject/QtRPT/qtrpt.cpp | |
=================================================================== | |
--- QtRptProject/QtRPT/qtrpt.cpp (revision 264) | |
+++ QtRptProject/QtRPT/qtrpt.cpp (working copy) | |
@@ -13,11 +13,19 @@ | |
#include <QTime> | |
#include <QFile> | |
#include <QPrintPreviewDialog> | |
+#include <QDesktopServices> | |
#include <QDesktopWidget> | |
#include <QPrinterInfo> | |
#include <QTextDocument> | |
#include <QTextCursor> | |
#include <QTextBlock> | |
+#include "chart.h" | |
+#include "CommonClasses.h" | |
+#include "RptSql.h" | |
+#include "Barcode.h" | |
+#include "RptFieldObject.h" | |
+#include "RptBandObject.h" | |
+#include "RptPageObject.h" | |
/*! | |
Index: QtRptProject/QtRPT/qtrpt.h | |
=================================================================== | |
--- QtRptProject/QtRPT/qtrpt.h (revision 264) | |
+++ QtRptProject/QtRPT/qtrpt.h (working copy) | |
@@ -9,22 +9,12 @@ | |
#ifndef QTRPT_H | |
#define QTRPT_H | |
-class QWidget; | |
#include <QPainter> | |
#include <QDomDocument> | |
#include <QScriptEngine> | |
#include <QPrintPreviewWidget> | |
-#include <QtScript> | |
#include <QPrintDialog> | |
-#include <QDesktopServices> | |
-#include <CommonClasses.h> | |
#include <qtrptnamespace.h> | |
-#include <chart.h> | |
-#include "RptSql.h" | |
-#include <Barcode.h> | |
-#include <RptFieldObject.h> | |
-#include <RptBandObject.h> | |
-#include <RptPageObject.h> | |
using namespace QtRptName; | |
@@ -44,6 +34,8 @@ | |
int pageReport; | |
}; | |
+class Chart; | |
+class RptSql; | |
class RptPageObject; | |
class RptBandObject; | |
class RptFieldObject; | |
Index: QtRptProject/QtRptDemo/exampledlg1.cpp | |
=================================================================== | |
--- QtRptProject/QtRptDemo/exampledlg1.cpp (revision 264) | |
+++ QtRptProject/QtRptDemo/exampledlg1.cpp (working copy) | |
@@ -8,6 +8,7 @@ | |
#include "exampledlg1.h" | |
#include "ui_exampledlg1.h" | |
+#include <QDebug> | |
ExampleDlg1::ExampleDlg1(QWidget *parent) : QDialog(parent), ui(new Ui::ExampleDlg1) { | |
ui->setupUi(this); | |
Index: QtRptProject/QtRptDemo/exampledlg13.cpp | |
=================================================================== | |
--- QtRptProject/QtRptDemo/exampledlg13.cpp (revision 264) | |
+++ QtRptProject/QtRptDemo/exampledlg13.cpp (working copy) | |
@@ -8,6 +8,10 @@ | |
#include "exampledlg13.h" | |
#include "ui_exampledlg13.h" | |
+#include "RptFieldObject.h" | |
+#include "RptBandObject.h" | |
+#include "RptPageObject.h" | |
+#include <QDebug> | |
ExampleDlg13::ExampleDlg13(QWidget *parent) : QDialog(parent), ui(new Ui::ExampleDlg13) { | |
ui->setupUi(this); | |
Index: QtRptProject/QtRptDemo/exampledlg14.cpp | |
=================================================================== | |
--- QtRptProject/QtRptDemo/exampledlg14.cpp (revision 264) | |
+++ QtRptProject/QtRptDemo/exampledlg14.cpp (working copy) | |
@@ -8,6 +8,7 @@ | |
#include "exampledlg14.h" | |
#include "ui_exampledlg14.h" | |
+#include "RptPageObject.h" | |
ExampleDlg14::ExampleDlg14(QWidget *parent) : QDialog(parent), ui(new Ui::ExampleDlg14) { | |
ui->setupUi(this); | |
Index: QtRptProject/QtRptDemo/exampledlg2.cpp | |
=================================================================== | |
--- QtRptProject/QtRptDemo/exampledlg2.cpp (revision 264) | |
+++ QtRptProject/QtRptDemo/exampledlg2.cpp (working copy) | |
@@ -8,6 +8,7 @@ | |
#include "exampledlg2.h" | |
#include "ui_exampledlg2.h" | |
+#include <QDebug> | |
ExampleDlg2::ExampleDlg2(QWidget *parent) : QDialog(parent), ui(new Ui::ExampleDlg2) { | |
ui->setupUi(this); | |
Index: QtRptProject/QtRptDemo/exampledlg3.cpp | |
=================================================================== | |
--- QtRptProject/QtRptDemo/exampledlg3.cpp (revision 264) | |
+++ QtRptProject/QtRptDemo/exampledlg3.cpp (working copy) | |
@@ -8,6 +8,7 @@ | |
#include "exampledlg3.h" | |
#include "ui_exampledlg3.h" | |
+#include <QDebug> | |
ExampleDlg3::ExampleDlg3(QWidget *parent) : QDialog(parent), ui(new Ui::ExampleDlg3) { | |
ui->setupUi(this); | |
Index: QtRptProject/QtRptDemo/exampledlg4.cpp | |
=================================================================== | |
--- QtRptProject/QtRptDemo/exampledlg4.cpp (revision 264) | |
+++ QtRptProject/QtRptDemo/exampledlg4.cpp (working copy) | |
@@ -8,6 +8,7 @@ | |
#include "exampledlg4.h" | |
#include "ui_exampledlg4.h" | |
+#include <QDebug> | |
ExampleDlg4::ExampleDlg4(QWidget *parent) : QDialog(parent), ui(new Ui::ExampleDlg4) { | |
ui->setupUi(this); | |
Index: QtRptProject/QtRptDemo/exampledlg5.cpp | |
=================================================================== | |
--- QtRptProject/QtRptDemo/exampledlg5.cpp (revision 264) | |
+++ QtRptProject/QtRptDemo/exampledlg5.cpp (working copy) | |
@@ -8,6 +8,7 @@ | |
#include "exampledlg5.h" | |
#include "ui_exampledlg5.h" | |
+#include <QDebug> | |
ExampleDlg5::ExampleDlg5(QWidget *parent) : QDialog(parent), ui(new Ui::ExampleDlg5) { | |
ui->setupUi(this); | |
Index: QtRptProject/QtRptDemo/exampledlg6.cpp | |
=================================================================== | |
--- QtRptProject/QtRptDemo/exampledlg6.cpp (revision 264) | |
+++ QtRptProject/QtRptDemo/exampledlg6.cpp (working copy) | |
@@ -8,6 +8,7 @@ | |
#include "exampledlg6.h" | |
#include "ui_exampledlg6.h" | |
+#include <QDebug> | |
ExampleDlg6::ExampleDlg6(QWidget *parent, int mode) : QDialog(parent), ui(new Ui::ExampleDlg6) { | |
ui->setupUi(this); | |
Index: QtRptProject/QtRptDemo/exampledlg7.cpp | |
=================================================================== | |
--- QtRptProject/QtRptDemo/exampledlg7.cpp (revision 264) | |
+++ QtRptProject/QtRptDemo/exampledlg7.cpp (working copy) | |
@@ -8,6 +8,7 @@ | |
#include "exampledlg7.h" | |
#include "ui_exampledlg7.h" | |
+#include "chart.h" | |
ExampleDlg7::ExampleDlg7(QWidget *parent) : QDialog(parent), ui(new Ui::ExampleDlg7) { | |
ui->setupUi(this); | |
Index: QtRptProject/QtRptDemo/exampledlg8.cpp | |
=================================================================== | |
--- QtRptProject/QtRptDemo/exampledlg8.cpp (revision 264) | |
+++ QtRptProject/QtRptDemo/exampledlg8.cpp (working copy) | |
@@ -8,6 +8,7 @@ | |
#include "exampledlg8.h" | |
#include "ui_exampledlg8.h" | |
+#include <QDebug> | |
ExampleDlg8::ExampleDlg8(QWidget *parent) : QDialog(parent), ui(new Ui::ExampleDlg8) { | |
ui->setupUi(this); | |
Index: QtRptProject/QtRptDemo/mainwindow.cpp | |
=================================================================== | |
--- QtRptProject/QtRptDemo/mainwindow.cpp (revision 264) | |
+++ QtRptProject/QtRptDemo/mainwindow.cpp (working copy) | |
@@ -8,6 +8,7 @@ | |
#include "mainwindow.h" | |
#include "ui_mainwindow.h" | |
+#include <QDebug> | |
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { | |
ui->setupUi(this); | |
Index: QtRptProject/QtRptDesigner/RepScrollArea.cpp | |
=================================================================== | |
--- QtRptProject/QtRptDesigner/RepScrollArea.cpp (revision 264) | |
+++ QtRptProject/QtRptDesigner/RepScrollArea.cpp (working copy) | |
@@ -8,6 +8,7 @@ | |
#include "RepScrollArea.h" | |
#include "ui_RepScrollArea.h" | |
#include <QGraphicsDropShadowEffect> | |
+#include <QSettings> | |
RepScrollArea::RepScrollArea(QWidget *parent) : QScrollArea(parent), ui(new Ui::RepScrollArea) { | |
ui->setupUi(this); | |
Index: QtRptProject/QtRptDesigner/TContainerField.h | |
=================================================================== | |
--- QtRptProject/QtRptDesigner/TContainerField.h (revision 264) | |
+++ QtRptProject/QtRptDesigner/TContainerField.h (working copy) | |
@@ -12,6 +12,7 @@ | |
#include <RptContainer.h> | |
#include "EditFldDlg.h" | |
#include <chart.h> | |
+#include "Barcode.h" | |
class TContainerField : public RptContainer { | |
Q_OBJECT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment