* ./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:
parent
a515d42757
commit
7d805f94e8
|
@ -31,6 +31,9 @@ using namespace std;
|
||||||
namespace poptions = boost::program_options;
|
namespace poptions = boost::program_options;
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
|
#if (QT_VERSION >= QT_VERSION_CHECK(4,5,0)) and not defined (__APPLE__)
|
||||||
|
# include <QGtkStyle>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "hurricane/DataBase.h"
|
#include "hurricane/DataBase.h"
|
||||||
#include "hurricane/Technology.h"
|
#include "hurricane/Technology.h"
|
||||||
|
@ -186,6 +189,9 @@ int main ( int argc, char *argv[] )
|
||||||
|
|
||||||
if ( not textMode ) {
|
if ( not textMode ) {
|
||||||
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 not defined (__APPLE__)
|
||||||
|
qa->setStyle ( new QGtkStyle() );
|
||||||
|
#endif
|
||||||
Graphics::enable ();
|
Graphics::enable ();
|
||||||
|
|
||||||
// Layer* layer = DataBase::getDB()->getTechnology()->getLayer("poly");
|
// Layer* layer = DataBase::getDB()->getTechnology()->getLayer("poly");
|
||||||
|
|
Loading…
Reference in New Issue