From a84398e3faf5a769b6d335506efa7acd4236e2b8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Go=C5=82aszewski?= Date: Thu, 29 Aug 2002 17:08:21 +0000 Subject: [PATCH] - updated for 3.0.4 - this is example fix for aplication that uses styles 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 | 30 ++++++++---------------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/MathPlanner-plugin.patch b/MathPlanner-plugin.patch index 7f56c40..89f72c6 100644 --- a/MathPlanner-plugin.patch +++ b/MathPlanner-plugin.patch @@ -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 +--- ./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 #include + #include +#include - #include "Math.h" - #include "Error.h" -@@ -90,12 +91,22 @@ + #include + +@@ -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); + -- 2.44.0