Support for Windows/Cygwin, part 3.
* Change: In CRL Core/Cyclop, Hurricane/PyHApplication and vlsisapd/ConfEditorMain, disable the use of GtkStyle under Cygwin.
This commit is contained in:
parent
09f515c62a
commit
a2ba6c2904
|
@ -25,7 +25,7 @@ namespace boptions = boost::program_options;
|
||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
#if (QT_VERSION >= QT_VERSION_CHECK(4,5,0)) and \
|
#if (QT_VERSION >= QT_VERSION_CHECK(4,5,0)) and \
|
||||||
(QT_VERSION < QT_VERSION_CHECK(5,0,0)) and \
|
(QT_VERSION < QT_VERSION_CHECK(5,0,0)) and \
|
||||||
not defined (__APPLE__)
|
not defined (__APPLE__) and not defined (__CYGWIN__)
|
||||||
# include <QGtkStyle>
|
# include <QGtkStyle>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -199,7 +199,7 @@ int main ( int argc, char *argv[] )
|
||||||
auto_ptr<QApplication> qa ( new HApplication(argc,argv) );
|
auto_ptr<QApplication> qa ( new HApplication(argc,argv) );
|
||||||
#if (QT_VERSION >= QT_VERSION_CHECK(4,5,0)) and \
|
#if (QT_VERSION >= QT_VERSION_CHECK(4,5,0)) and \
|
||||||
(QT_VERSION < QT_VERSION_CHECK(5,0,0)) and \
|
(QT_VERSION < QT_VERSION_CHECK(5,0,0)) and \
|
||||||
not defined (__APPLE__)
|
not defined (__APPLE__) and not defined (__CYGWIN__)
|
||||||
qa->setStyle ( new QGtkStyle() );
|
qa->setStyle ( new QGtkStyle() );
|
||||||
#endif
|
#endif
|
||||||
Graphics::enable ();
|
Graphics::enable ();
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
#if (QT_VERSION >= QT_VERSION_CHECK(4,5,0)) and \
|
#if (QT_VERSION >= QT_VERSION_CHECK(4,5,0)) and \
|
||||||
(QT_VERSION < QT_VERSION_CHECK(5,0,0)) and \
|
(QT_VERSION < QT_VERSION_CHECK(5,0,0)) and \
|
||||||
not defined (__APPLE__)
|
not defined (__APPLE__) and not defined(__CYGWIN__)
|
||||||
# include <QGtkStyle>
|
# include <QGtkStyle>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@ extern "C" {
|
||||||
ha = new HApplication(argc,argv);
|
ha = new HApplication(argc,argv);
|
||||||
#if (QT_VERSION >= QT_VERSION_CHECK(4,5,0)) and \
|
#if (QT_VERSION >= QT_VERSION_CHECK(4,5,0)) and \
|
||||||
(QT_VERSION < QT_VERSION_CHECK(5,0,0)) and \
|
(QT_VERSION < QT_VERSION_CHECK(5,0,0)) and \
|
||||||
not defined (__APPLE__)
|
not defined (__APPLE__) and not defined (__CYGWIN__)
|
||||||
ha->setStyle ( new QGtkStyle() );
|
ha->setStyle ( new QGtkStyle() );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ namespace bopts = boost::program_options;
|
||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
#if (QT_VERSION >= QT_VERSION_CHECK(4,5,0)) and \
|
#if (QT_VERSION >= QT_VERSION_CHECK(4,5,0)) and \
|
||||||
(QT_VERSION < QT_VERSION_CHECK(5,0,0)) and \
|
(QT_VERSION < QT_VERSION_CHECK(5,0,0)) and \
|
||||||
not defined (__APPLE__)
|
not defined (__APPLE__) and not defined (__CYGWIN__)
|
||||||
# include <QGtkStyle>
|
# include <QGtkStyle>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -319,7 +319,7 @@ int main ( int argc, char *argv[] )
|
||||||
auto_ptr<QApplication> qa ( new HApplication(argc,argv) );
|
auto_ptr<QApplication> qa ( new HApplication(argc,argv) );
|
||||||
#if (QT_VERSION >= QT_VERSION_CHECK(4,5,0)) and \
|
#if (QT_VERSION >= QT_VERSION_CHECK(4,5,0)) and \
|
||||||
(QT_VERSION < QT_VERSION_CHECK(5,0,0)) and \
|
(QT_VERSION < QT_VERSION_CHECK(5,0,0)) and \
|
||||||
not defined (__APPLE__)
|
not defined (__APPLE__) and not defined (__CYGWIN__)
|
||||||
qa->setStyle ( new QGtkStyle() );
|
qa->setStyle ( new QGtkStyle() );
|
||||||
#endif
|
#endif
|
||||||
Graphics::enable ();
|
Graphics::enable ();
|
||||||
|
|
|
@ -26,7 +26,7 @@ namespace boptions = boost::program_options;
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#if (QT_VERSION >= QT_VERSION_CHECK(4,5,0)) and \
|
#if (QT_VERSION >= QT_VERSION_CHECK(4,5,0)) and \
|
||||||
(QT_VERSION < QT_VERSION_CHECK(5,0,0)) and \
|
(QT_VERSION < QT_VERSION_CHECK(5,0,0)) and \
|
||||||
not defined (__APPLE__)
|
not defined (__APPLE__) and not defined (__CYGWIN__)
|
||||||
# include <QGtkStyle>
|
# include <QGtkStyle>
|
||||||
#endif
|
#endif
|
||||||
#include "vlsisapd/utilities/Path.h"
|
#include "vlsisapd/utilities/Path.h"
|
||||||
|
@ -66,7 +66,7 @@ int main ( int argc, char* argv[] )
|
||||||
auto_ptr<QApplication> qa ( new QApplication(argc,argv) );
|
auto_ptr<QApplication> qa ( new QApplication(argc,argv) );
|
||||||
#if (QT_VERSION >= QT_VERSION_CHECK(4,5,0)) and \
|
#if (QT_VERSION >= QT_VERSION_CHECK(4,5,0)) and \
|
||||||
(QT_VERSION < QT_VERSION_CHECK(5,0,0)) and \
|
(QT_VERSION < QT_VERSION_CHECK(5,0,0)) and \
|
||||||
not defined (__APPLE__)
|
not defined (__APPLE__) and not defined (__CYGWIN__)
|
||||||
if ( not disableGtkStyle ) qa->setStyle ( new QGtkStyle() );
|
if ( not disableGtkStyle ) qa->setStyle ( new QGtkStyle() );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue