]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Porting to Mandrake 10.1 and new products:
authormpv <mpv@opencascade.com>
Wed, 8 Jun 2005 04:29:47 +0000 (04:29 +0000)
committermpv <mpv@opencascade.com>
Wed, 8 Jun 2005 04:29:47 +0000 (04:29 +0000)
porting to the qt 3.3.3: patch for this qt is useless, thus do not use it: redefine "<QClassName>P" by "<QClassName>"

src/PatchQt/Makefile.in
src/PatchQt/qactionP.cxx
src/PatchQt/qactionP.h
src/PatchQt/qfiledialogP.cxx
src/PatchQt/qfiledialogP.h
src/PatchQt/qsplitterP.cxx
src/PatchQt/qsplitterP.h
src/PatchQt/qworkspaceP.cxx
src/PatchQt/qworkspaceP.h

index 7909f104a0d1d7631eb14f02d92cd46179ec8bf5..48769299ca524bd24867553b1feffc9175e1e2b4 100644 (file)
@@ -38,18 +38,13 @@ EXPORT_HEADERS = \
        qfiledialogP.h
 
 # Libraries targets
-ifeq ($(QT_VERS),v3_3_3)
-       LIB_SRC = qsplitterP.cxx qsplitterP_moc.cxx
-else
-       LIB_SRC = qsplitterP.cxx qsplitterP_moc.cxx qworkspaceP.cxx qworkspaceP_moc.cxx qactionP.cxx qactionP_moc.cxx qfiledialogP.cxx qfiledialogP_moc.cxx
-endif
 
 LIB = libqsplitterP.la 
-
+LIB_SRC = qsplitterP.cxx qworkspaceP.cxx qactionP.cxx qfiledialogP.cxx 
 qsplitterP_moc.cxx: $(inc_builddir)/qsplitterP.h
        $(MOC) $(inc_builddir)/qsplitterP.h -o qsplitterP_moc.cxx
 
-qworkspaceP_moc.cxx: $(inc_builddir)/qworkspaceP.h 
+qworkspaceP_moc.cxx: $(inc_builddir)/qworkspaceP.h
        $(MOC) $(inc_builddir)/qworkspaceP.h -o qworkspaceP_moc.cxx
 
 qactionP_moc.cxx: $(inc_builddir)/qactionP.h
@@ -58,7 +53,7 @@ qactionP_moc.cxx: $(inc_builddir)/qactionP.h
 qfiledialogP_moc.cxx: $(inc_builddir)/qfiledialogP.h
        $(MOC) $(inc_builddir)/qfiledialogP.h -o qfiledialogP_moc.cxx
 
-CPPFLAGS+=$(QT_INCLUDES) -I${QTDIR}/src/kernel -I$(QTDIR)/mkspecs/linux-g++ -I/usr/share/qt3/mkspecs/linux-g++
+CPPFLAGS+=$(QT_INCLUDES) -I${QTDIR}/src/kernel -I$(QTDIR)/mkspecs/linux-g++
 CXXFLAGS+=
 LDFLAGS+=$(QT_MT_LIBS) 
 
index 0d1269dac9abb0f3daf1d526c88c1e68e45899d8..75aaa4c15e5ba70e5d51238454a4feeb257ba0e4 100644 (file)
 
 #include "qactionP.h"
 
+#if (QT_VERSION < 0x030303)
+
+#include "qactionP_moc.cxx"
+
 #ifndef QT_NO_ACTION
 
 #include <qtoolbar.h>
@@ -1778,3 +1782,5 @@ void QActionPGroup::addedTo( int index, QPopupMenu *menu )
 }
 
 #endif
+
+#endif
index 160324087b70d35a40db2ceb45c4cf2ca2a97d2b..6853982c9e953d7e7f114791dd6bc61fa11e5f70 100644 (file)
 #ifndef QACTIONP_H
 #define QACTIONP_H
 
+#include <qglobal.h>
+#if (QT_VERSION >= 0x030303)
+
+// mpv: do not use patches for qt version >= 3.3.3
+#include <qaction.h>
+#define QActionPPrivate QActionPrivate
+#define QActionPGroupPrivate QActionGroupPrivate
+#define QActionPGroup QActionGroup
+#define QActionP QAction
+
+#else
+
 #ifndef QT_H
 #include <qobject.h>
 #include <qiconset.h>
 
 #ifndef QT_NO_ACTION
 
-#if QT_VERSION > 0x030005
-#include <qaction.h>
-#define QActionP QAction
-#define QActionPGroup QActionGroup
-#else
-
 class QActionPPrivate;
 class QActionPGroupPrivate;
 class QStatusBar;
@@ -190,6 +196,6 @@ public:
 
 #endif
 
-#endif // QT_VERSION
+#endif
 
 #endif
index 0b3ca637bd17be986a71f88088e75f6ae77657cb..e6aa9dbbaa968b8e980e9b20d52e87e2c4080783 100644 (file)
 
 #include "qfiledialogP.h"
 
+#if (QT_VERSION < 0x030303)
+
+#include "qfiledialogP_moc.cxx"
+
 #ifndef QT_NO_FILEDIALOG
 
 #include "qlineedit.h"
@@ -5976,3 +5980,5 @@ QFilePreviewP::QFilePreviewP()
 */
 
 #endif
+
+#endif
index ab615b7533b0c6be1adb00a149244351c70bd562..9cf6ee7fb34de8475b88c9c8ba4b1b77ba8dfbc5 100644 (file)
 #ifndef QFILEDIALOGP_H
 #define QFILEDIALOGP_H
 
+#include <qglobal.h>
+#if (QT_VERSION >= 0x030303)
+
+#include <qfiledialog.h>
+// mpv: do not use patches for qt version >= 3.3.3
+#define QFileIconProviderP QFileIconProvider
+#define QFilePreviewP QFilePreview
+#define QFileDialogP QFileDialog
+
+#else
+
 class QPushButton;
 class QButton;
 class QLabel;
@@ -68,11 +79,6 @@ class QFileDialogQFileListView;
 #include "qlineedit.h"
 #endif // QT_H
 
-#if QT_VERSION > 0x030005
-#include <qfiledialog.h>
-#define QFileDialogP QFileDialog
-#else
-
 #ifndef QT_NO_FILEDIALOG
 
 class Q_EXPORT QFileIconProviderP : public QObject
@@ -530,6 +536,6 @@ private:
 
 #endif
 
-#endif // QT_VERSION
+#endif
 
 #endif // QFILEDIALOG_H
index 15d5ed2aa2b0ef41a846b4e1591419cb34d09417..85a1b5017c89537335ea21dee7743d1c2b71b054 100644 (file)
 **********************************************************************/
 
 #include "qsplitterP.h"
+
+#if (QT_VERSION < 0x030303)
+
+#include "qsplitterP_moc.cxx"
+
 #ifndef QT_NO_COMPLEXWIDGETS
 
 #include <qglobal.h>
 #include <qpainter.h>
 #include <qdrawutil.h>
 #include <qbitmap.h>
-#include <qlayout.h>
 #include <private/qlayoutengine_p.h>
 #if QT_VERSION < 300
   #include <qlist.h>
@@ -1402,3 +1406,5 @@ void QSplitterP::updateSplitterHandles() const {
        s = data->list.next();
     }
 }
+
+#endif
index 263a90429e4bedb039bc3fd482425881a20cdb00..da94e7e40faf731cc9762ba22474b2df19b8570a 100644 (file)
 #ifndef QSPLITTERP_H
 #define QSPLITTERP_H
 
+#include <qglobal.h>
+#if (QT_VERSION >= 0x030303)
+
+#include <qsplitter.h>
+// mpv: do not use patches for qt version >= 3.3.3
+#define QSplitterPHandle QSplitterHandle
+#define QSplitterPData QSplitterData
+#define QSplitterPLayoutStruct QSplitterLayoutStruct
+#define QSplitterP QSplitter
+
+#else
+
 #ifndef QT_H
 #include <qframe.h>
 #include <qvaluelist.h>
@@ -211,5 +223,6 @@ private:
     QPushButton* unright;
 };
 
+#endif
 
 #endif // QSPLITTERP_H
index 1a959ae47f4008f17ae4ab28c4e40c86b613c851..558c545facbc4ec95e9607c946b400d45a91f7ce 100644 (file)
 
 #include "qworkspaceP.h"
 
+#if (QT_VERSION < 0x030303)
+
+#include "qworkspaceP_moc.cxx"
+
 #include <qapplication.h>
 #include <qobjectlist.h>
 #include <qlayout.h>
@@ -3402,3 +3406,4 @@ QSize QTitleBarP::sizeHint() const
     return QSize( menur.width(), style().pixelMetric( QStyle::PM_TitleBarHeight, this ) );
 }
 
+#endif
index 2197da251308a1b610ab34a35c6aee6f79eef7d4..0ce92b6f06be7ff61304a478a0a902dd647c43ab 100644 (file)
 #ifndef QWORKSPACEP_H
 #define QWORKSPACEP_H
 
+#include <qglobal.h>
+#if (QT_VERSION >= 0x030303)
+
+#include <qworkspace.h>
+// mpv: do not use patches for qt version >= 3.3.3
+#define QWorkspacePChild QWorkspaceChild
+#define QWorkspacePPrivate QWorkspacePrivate
+#define QWidgetResizeHandlerP QWidgetResizeHandler
+#define QTitleBarP QTitleBar
+#define QWorkspaceP QWorkspace
+#define QTitleBarPPrivate QTitleBarPrivate
+
+#else
+
 #ifndef QT_H
 #include <qobject.h>
 #include <qwidget.h>
 #include <qlabel.h>
 #endif // QT_H
 
-#if QT_VERSION > 0x030005
-#include <qworkspace.h>
-#define QWorkspaceP QWorkspace
-#else
-
 class QWorkspacePChild;
 class QShowEvent;
 class QWorkspacePPrivate;
@@ -355,5 +364,6 @@ private:
 
     QTitleBarPPrivate *d;
 };
-#endif // QT_VERSION
+#endif
+
 #endif // QWORKSPACEP_H