2017-07-12 00:44:14 +02:00
|
|
|
Index: ParaView-v5.4.0/CMake/branded_paraview_main.cxx.in
|
2016-12-03 14:07:03 +01:00
|
|
|
===================================================================
|
2017-07-12 00:44:14 +02:00
|
|
|
--- ParaView-v5.4.0.orig/CMake/branded_paraview_main.cxx.in
|
|
|
|
+++ ParaView-v5.4.0/CMake/branded_paraview_main.cxx.in
|
|
|
|
@@ -73,15 +73,15 @@ static bool checkenv(const char* vname)
|
2011-04-20 10:24:25 +02:00
|
|
|
|
|
|
|
int main(int argc, char* argv[])
|
|
|
|
{
|
2016-06-22 07:54:02 +02:00
|
|
|
-#if defined(Q_WS_X11) || defined(Q_OS_LINUX)
|
|
|
|
+// #if defined(Q_WS_X11) || defined(Q_OS_LINUX)
|
2011-04-20 10:24:25 +02:00
|
|
|
// Using motif style gives us test failures (and its ugly).
|
|
|
|
// Using cleanlooks style gives us errors when using valgrind (Trolltech's bug #179200)
|
|
|
|
// let's just use plastique for now
|
2016-06-22 07:54:02 +02:00
|
|
|
|
|
|
|
// "plastique" is only available on Qt4, but this works just fine with Qt5 too. Qt5 just uses the
|
|
|
|
// default style when QStyleFactory::create("plastique") return nullptr.
|
|
|
|
- QApplication::setStyle(QStyleFactory::create("plastique"));
|
2011-04-20 10:24:25 +02:00
|
|
|
-#endif
|
2016-06-22 07:54:02 +02:00
|
|
|
+// QApplication::setStyle(QStyleFactory::create("plastique"));
|
2014-02-04 10:39:54 +01:00
|
|
|
+// #endif
|
2011-04-20 10:24:25 +02:00
|
|
|
|
|
|
|
// When playing tests, disable all effects.
|
2014-02-04 10:39:54 +01:00
|
|
|
if (checkenv("DART_TEST_FROM_DART") ||
|