[qet] [3316] Replace some #include, by pre declaration

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 3316
Author:   blacksun
Date:     2014-09-20 20:26:13 +0200 (Sat, 20 Sep 2014)
Log Message:
-----------
Replace some #include, by pre declaration

Modified Paths:
--------------
    trunk/sources/elementprovider.cpp
    trunk/sources/elementprovider.h
    trunk/sources/ui/masterpropertieswidget.cpp
    trunk/sources/ui/masterpropertieswidget.h

Modified: trunk/sources/elementprovider.cpp
===================================================================
--- trunk/sources/elementprovider.cpp	2014-09-20 17:58:00 UTC (rev 3315)
+++ trunk/sources/elementprovider.cpp	2014-09-20 18:26:13 UTC (rev 3316)
@@ -16,7 +16,9 @@
 	along with QElectroTech.  If not, see <http://www.gnu.org/licenses/>.
 */
 #include "elementprovider.h"
-#include "QUuid"
+#include "qetproject.h"
+#include "diagram.h"
+#include "qetgraphicsitem/element.h"
 
 /**
  * @brief ElementProvider::ElementProvider Constructor

Modified: trunk/sources/elementprovider.h
===================================================================
--- trunk/sources/elementprovider.h	2014-09-20 17:58:00 UTC (rev 3315)
+++ trunk/sources/elementprovider.h	2014-09-20 18:26:13 UTC (rev 3316)
@@ -18,10 +18,13 @@
 #ifndef ELEMENTPROVIDER_H
 #define ELEMENTPROVIDER_H
 
-#include "qetproject.h"
-#include "diagram.h"
-#include "qetgraphicsitem/element.h"
+#include <QUuid>
+#include <QList>
 
+class QETProject;
+class Diagram;
+class Element;
+
 /**
   this class can search in the given diagram or project some kind of element
   like 'folio report' or 'master' and return it.

Modified: trunk/sources/ui/masterpropertieswidget.cpp
===================================================================
--- trunk/sources/ui/masterpropertieswidget.cpp	2014-09-20 17:58:00 UTC (rev 3315)
+++ trunk/sources/ui/masterpropertieswidget.cpp	2014-09-20 18:26:13 UTC (rev 3316)
@@ -21,6 +21,8 @@
 #include <diagramposition.h>
 #include <elementprovider.h>
 #include <diagramcommands.h>
+#include <diagram.h>
+#include <element.h>
 
 /**
  * @brief MasterPropertiesWidget::MasterPropertiesWidget

Modified: trunk/sources/ui/masterpropertieswidget.h
===================================================================
--- trunk/sources/ui/masterpropertieswidget.h	2014-09-20 17:58:00 UTC (rev 3315)
+++ trunk/sources/ui/masterpropertieswidget.h	2014-09-20 18:26:13 UTC (rev 3316)
@@ -19,9 +19,10 @@
 #define MASTERPROPERTIESWIDGET_H
 
 #include <QWidget>
-#include "element.h"
+#include <QHash>
 
 class QListWidgetItem;
+class Element;
 
 namespace Ui {
 	class MasterPropertiesWidget;


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/