Corrections de code :

* avertissements a la compilation (teste avec gcc 4.3)
  * inclusions non pertinentes


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@360 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavierqet
2008-07-30 12:44:57 +00:00
parent e8e881ff51
commit 7a48bcc228
14 changed files with 20 additions and 12 deletions

View File

@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>. along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <QtGui>
#include "aboutqet.h" #include "aboutqet.h"
#include "qet.h" #include "qet.h"

View File

@@ -17,7 +17,7 @@
*/ */
#ifndef ABOUTQET_H #ifndef ABOUTQET_H
#define ABOUTQET_H #define ABOUTQET_H
#include <QtGui> #include <QDialog>
/** /**
Cette classe represente la boite de dialogue Cette classe represente la boite de dialogue
« A propos de QElectroTech » « A propos de QElectroTech »

View File

@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>. along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <QPainter>
#include "borderinset.h" #include "borderinset.h"
#include "qetapp.h" #include "qetapp.h"

View File

@@ -20,8 +20,8 @@
#include "insetproperties.h" #include "insetproperties.h"
#include <QObject> #include <QObject>
#include <QRectF> #include <QRectF>
#include <QPainter>
#include <QDate> #include <QDate>
class QPainter;
/** /**
Cette classe represente l'ensemble bordure + cartouche qui encadre le Cette classe represente l'ensemble bordure + cartouche qui encadre le
schema electrique. schema electrique.

View File

@@ -20,6 +20,7 @@
#include "conductor.h" #include "conductor.h"
#include "conductorsegment.h" #include "conductorsegment.h"
#include "conductorsegmentprofile.h" #include "conductorsegmentprofile.h"
#include "diagramtextitem.h"
#include "element.h" #include "element.h"
#include "diagram.h" #include "diagram.h"
#include "diagramcommands.h" #include "diagramcommands.h"

View File

@@ -21,8 +21,8 @@
#include "terminal.h" #include "terminal.h"
#include "conductorprofile.h" #include "conductorprofile.h"
#include "conductorproperties.h" #include "conductorproperties.h"
#include "diagramtextitem.h"
class ConductorSegment; class ConductorSegment;
class DiagramTextItem;
class Element; class Element;
typedef QPair<QPointF, Qt::Corner> ConductorBend; typedef QPair<QPointF, Qt::Corner> ConductorBend;
typedef QHash<Qt::Corner, ConductorProfile> ConductorProfilesGroup; typedef QHash<Qt::Corner, ConductorProfile> ConductorProfilesGroup;

View File

@@ -16,6 +16,7 @@
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>. along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "conductorpropertieswidget.h" #include "conductorpropertieswidget.h"
#include <QtGui>
#include "conductor.h" #include "conductor.h"
/** /**

View File

@@ -17,8 +17,9 @@
*/ */
#ifndef CONDUCTOR_PROPERTIES_WIDGET_H #ifndef CONDUCTOR_PROPERTIES_WIDGET_H
#define CONDUCTOR_PROPERTIES_WIDGET_H #define CONDUCTOR_PROPERTIES_WIDGET_H
#include "conductor.h" #include "conductorproperties.h"
#include <QtGui> #include <QWidget>
/** /**
Ce widget permet a l utilisateur d'editer les proprietes d'un conducteur. Ce widget permet a l utilisateur d'editer les proprietes d'un conducteur.
Par proprietes, on entend non pas le trajet effectue par le conducteur mais Par proprietes, on entend non pas le trajet effectue par le conducteur mais

View File

@@ -16,7 +16,10 @@
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>. along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "configpages.h" #include "configpages.h"
#include "conductorpropertieswidget.h"
#include "insetpropertieswidget.h"
#include "qetapp.h" #include "qetapp.h"
#include "qetdiagrameditor.h"
/** /**
Constructeur Constructeur

View File

@@ -18,8 +18,8 @@
#ifndef CONFIG_PAGES_H #ifndef CONFIG_PAGES_H
#define CONFIG_PAGES_H #define CONFIG_PAGES_H
#include <QtGui> #include <QtGui>
#include "conductorpropertieswidget.h" class ConductorPropertiesWidget;
#include "insetpropertieswidget.h" class InsetPropertiesWidget;
/** /**
Cette classe abstraite contient les methodes que toutes les pages de Cette classe abstraite contient les methodes que toutes les pages de

View File

@@ -119,7 +119,7 @@ QString DiagramContent::sentence(int filter) const {
@param d Object QDebug a utiliser pour l'affichage des informations de debug @param d Object QDebug a utiliser pour l'affichage des informations de debug
@param c Contenu de schema a debugger @param c Contenu de schema a debugger
*/ */
QDebug &operator<<(QDebug d, DiagramContent &c) { QDebug &operator<<(QDebug d, DiagramContent &) {
d << "DiagramContent {" << "\n"; d << "DiagramContent {" << "\n";
/* /*
FIXME Le double-heritage QObject / QGraphicsItem a casse cet operateur FIXME Le double-heritage QObject / QGraphicsItem a casse cet operateur
@@ -127,7 +127,7 @@ QDebug &operator<<(QDebug d, DiagramContent &c) {
d << " conductorsToUpdate :" << c.conductorsToUpdate.keys() << "\n"; d << " conductorsToUpdate :" << c.conductorsToUpdate.keys() << "\n";
d << " conductorsToMove :" << c.conductorsToMove << "\n"; d << " conductorsToMove :" << c.conductorsToMove << "\n";
d << " otherConductors :" << c.otherConductors << "\n"; d << " otherConductors :" << c.otherConductors << "\n";
d << "}";
*/ */
d << "}";
return(d.space()); return(d.space());
} }

View File

@@ -97,7 +97,7 @@ void PolygonEditor::updatePolygonClosedState() {
*/ */
void PolygonEditor::updateForm() { void PolygonEditor::updateForm() {
activeConnections(false); activeConnections(false);
while(points_list.takeTopLevelItem(0)); while(points_list.takeTopLevelItem(0)) {}
foreach(QPointF point, part -> polygon()) { foreach(QPointF point, part -> polygon()) {
point = part -> mapToScene(point); point = part -> mapToScene(point);
QStringList qsl; QStringList qsl;

View File

@@ -46,7 +46,7 @@ ElementsCategoriesList::~ElementsCategoriesList() {
*/ */
void ElementsCategoriesList::reload() { void ElementsCategoriesList::reload() {
// vide l'arbre // vide l'arbre
while (takeTopLevelItem(0)); while (takeTopLevelItem(0)) {};
// chargement des elements de la collection commune si droits d'ecriture // chargement des elements de la collection commune si droits d'ecriture
QFileInfo common_collection_info(QETApp::commonElementsDir()); QFileInfo common_collection_info(QETApp::commonElementsDir());

View File

@@ -145,7 +145,7 @@ bool Terminal::addConductor(Conductor *f) {
if (!f) return(false); if (!f) return(false);
// une seule des deux bornes du conducteur doit etre this // une seule des deux bornes du conducteur doit etre this
Q_ASSERT_X((f -> terminal1 == this ^ f -> terminal2 == this), "Terminal::addConductor", "Le conductor devrait etre relie exactement une fois a la terminal en cours"); Q_ASSERT_X(((f -> terminal1 == this) ^ (f -> terminal2 == this)), "Terminal::addConductor", "Le conductor devrait etre relie exactement une fois a la terminal en cours");
// determine l'autre borne a laquelle cette borne va etre relie grace au conducteur // determine l'autre borne a laquelle cette borne va etre relie grace au conducteur
Terminal *autre_terminal = (f -> terminal1 == this) ? f -> terminal2 : f -> terminal1; Terminal *autre_terminal = (f -> terminal1 == this) ? f -> terminal2 : f -> terminal1;