]> git.pld-linux.org Git - packages/MathPlanner.git/blob - MathPlanner-plugin.patch
- updated for 3.0.4 - this is example fix for aplication that uses styles
[packages/MathPlanner.git] / MathPlanner-plugin.patch
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 @@
4  #include <qtextcodec.h>
5  #include <qmessagebox.h>
6  #include <qapplication.h>
7 +#include <qlibrary.h>
8  
9  #include <stdlib.h>
10  
11 @@ -94,9 +95,9 @@
12  
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;
21     }
22  
23  
This page took 0.077233 seconds and 3 git commands to generate.