porting to the qt 3.3.3: patch for this qt is useless, thus do not use it: redefine "<QClassName>P" by "<QClassName>"
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
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)
#include "qactionP.h"
+#if (QT_VERSION < 0x030303)
+
+#include "qactionP_moc.cxx"
+
#ifndef QT_NO_ACTION
#include <qtoolbar.h>
}
#endif
+
+#endif
#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;
#endif
-#endif // QT_VERSION
+#endif
#endif
#include "qfiledialogP.h"
+#if (QT_VERSION < 0x030303)
+
+#include "qfiledialogP_moc.cxx"
+
#ifndef QT_NO_FILEDIALOG
#include "qlineedit.h"
*/
#endif
+
+#endif
#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;
#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
#endif
-#endif // QT_VERSION
+#endif
#endif // QFILEDIALOG_H
**********************************************************************/
#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>
s = data->list.next();
}
}
+
+#endif
#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>
QPushButton* unright;
};
+#endif
#endif // QSPLITTERP_H
#include "qworkspaceP.h"
+#if (QT_VERSION < 0x030303)
+
+#include "qworkspaceP_moc.cxx"
+
#include <qapplication.h>
#include <qobjectlist.h>
#include <qlayout.h>
return QSize( menur.width(), style().pixelMetric( QStyle::PM_TitleBarHeight, this ) );
}
+#endif
#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;
QTitleBarPPrivate *d;
};
-#endif // QT_VERSION
+#endif
+
#endif // QWORKSPACEP_H