]> git.pld-linux.org Git - packages/MathPlanner.git/blame - MathPlanner-plugin.patch
- updated for 3.0.4 - this is example fix for aplication that uses styles
[packages/MathPlanner.git] / MathPlanner-plugin.patch
CommitLineData
a84398e3
PG
1--- ./src/Base.cpp.org Thu Aug 22 14:06:48 2002
2+++ ./src/Base.cpp Thu Aug 29 18:57:52 2002
3@@ -19,6 +19,7 @@
b9cf94c0
PG
4 #include <qtextcodec.h>
5 #include <qmessagebox.h>
a84398e3 6 #include <qapplication.h>
b9cf94c0
PG
7+#include <qlibrary.h>
8
a84398e3
PG
9 #include <stdlib.h>
10
11@@ -94,9 +95,9 @@
b9cf94c0 12
b9cf94c0
PG
13
14 switch (mathwindow->Style()) {
15- case 1: app.setStyle( new QWindowsStyle ); break;
16- case 2: app.setStyle( new QPlatinumStyle ); break;
17- case 3: app.setStyle( new QMotifStyle ); break;
18+ case 1: QLibrary resolve( QWindowsStyle ); break;
19+ case 2: QLibrary resolve(QPlatinumStyle); break;
20+ case 3: QLibrary resolve(QMotifStyle); break;
b9cf94c0
PG
21 }
22
a84398e3 23
This page took 0.105921 seconds and 4 git commands to generate.