]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Modification according to the bug PAL6837: use patched QFileDialog from PatchQt packa...
authorvsr <vsr@opencascade.com>
Tue, 18 Jan 2005 14:14:48 +0000 (14:14 +0000)
committervsr <vsr@opencascade.com>
Tue, 18 Jan 2005 14:14:48 +0000 (14:14 +0000)
If other version of Qt is used, patch is ignored.

src/SALOMEGUI/QAD_FileDlg.h

index a604596a592a666b927d4bcc097619513db44c03..e7180753ef29d6fe167ee918450d7af1c45766cf 100644 (file)
 
 #include <qcombobox.h>
 
+// VSR (18/01/2005): use patched QFileDialog only for the official 3.0.5 version of Qt
+#if QT_VERSION == 0x030005
 #include <qfiledialogP.h>
+#else
+#include <qfiledialog.h>
+#define QFileDialogP QFileDialog
+#endif
+
 #include "QAD.h"
 #include "QAD_FileValidator.h"