* ./crlcore:

- Change: In Cyclop, now uses the GtkStyle when not under OSX and Qt is
        newer or equal to Qt 4.5.0.
This commit is contained in:
Jean-Paul Chaput 2010-03-26 18:05:17 +00:00
parent a515d42757
commit 7d805f94e8
1 changed files with 6 additions and 0 deletions

View File

@ -31,6 +31,9 @@ using namespace std;
namespace poptions = boost::program_options;
#include <QtGui>
#if (QT_VERSION >= QT_VERSION_CHECK(4,5,0)) and not defined (__APPLE__)
# include <QGtkStyle>
#endif
#include "hurricane/DataBase.h"
#include "hurricane/Technology.h"
@ -186,6 +189,9 @@ int main ( int argc, char *argv[] )
if ( not textMode ) {
auto_ptr<QApplication> qa ( new HApplication(argc,argv) );
#if (QT_VERSION >= QT_VERSION_CHECK(4,5,0)) and not defined (__APPLE__)
qa->setStyle ( new QGtkStyle() );
#endif
Graphics::enable ();
// Layer* layer = DataBase::getDB()->getTechnology()->getLayer("poly");