d3720a10ba078224b286c65e369583b1 SOURCES/MathPlanner-plugin.patch
authorPaweł Gołaszewski <blues@pld-linux.org>
Thu, 29 Aug 2002 16:52:17 +0000 (16:52 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    MathPlanner-plugin.patch -> 1.1

MathPlanner-plugin.patch [new file with mode: 0644]

diff --git a/MathPlanner-plugin.patch b/MathPlanner-plugin.patch
new file mode 100644 (file)
index 0000000..7f56c40
--- /dev/null
@@ -0,0 +1,37 @@
+--- ./src/Base.cpp.org Thu Aug 29 18:35:51 2002
++++ ./src/Base.cpp     Thu Aug 29 18:36:04 2002
+@@ -18,6 +18,7 @@
+ #include <qdir.h>
+ #include <qtextcodec.h>
+ #include <qmessagebox.h>
++#include <qlibrary.h>
+ #include "Math.h"
+ #include "Error.h"
+@@ -90,12 +91,22 @@
+    MathWindow *mathwindow=new MathWindow();
+    mathwindow->showMaximized();
+-
++   
++//   QLibrary("libqwindowsstyle");
++//   QLibrary load("QWindowsStyle");
++//   QLibrary::load("libqplatinumstyle");
++//   QLibrary::load();
++//   QLibrary::resolve( new QMotifStyle );
++//   QLibrary resolve( new QWindowsStyle );
++//   QLibrary resolve(QPlatinumStyle);
++//   QLibrary resolve(QMotifStyle);
+    switch (mathwindow->Style()) {
+-      case 1: app.setStyle( new QWindowsStyle ); break;
+-      case 2: app.setStyle( new QPlatinumStyle ); break;
+-      case 3: app.setStyle( new QMotifStyle ); break;
++         case 1: QLibrary resolve( QWindowsStyle ); break;
++         case 2: QLibrary resolve(QPlatinumStyle); break;
++         case 3: QLibrary resolve(QMotifStyle); break;
++//       case 2: app.setStyle( new QPlatinumStyle ); break;
++//       case 3: app.setStyle( new QMotifStyle ); break;
+    }
+    app.setMainWidget(mathwindow);
This page took 0.030956 seconds and 4 git commands to generate.