]> git.pld-linux.org Git - packages/MathPlanner.git/commitdiff
- updated for 3.0.4 - this is example fix for aplication that uses styles
authorPaweł Gołaszewski <blues@pld-linux.org>
Thu, 29 Aug 2002 17:08:21 +0000 (17:08 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  and can't find these when linking ( QSomeStyle::QSomeStyle ). I don't
  know (yet) if this is correct when using static qt library.

Changed files:
    MathPlanner-plugin.patch -> 1.2

MathPlanner-plugin.patch

index 7f56c40cdfb50bef66aee91b6cf1a0f8b4749a3e..89f72c693e2ad5426e9358a1ab41637effee548d 100644 (file)
@@ -1,27 +1,15 @@
---- ./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>
+--- ./src/Base.cpp.org Thu Aug 22 14:06:48 2002
++++ ./src/Base.cpp     Thu Aug 29 18:57:52 2002
+@@ -19,6 +19,7 @@
  #include <qtextcodec.h>
  #include <qmessagebox.h>
+ #include <qapplication.h>
 +#include <qlibrary.h>
  
- #include "Math.h"
- #include "Error.h"
-@@ -90,12 +91,22 @@
+ #include <stdlib.h>
+@@ -94,9 +95,9 @@
  
-    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;
@@ -30,8 +18,6 @@
 +         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.03873 seconds and 4 git commands to generate.