~ubuntu-branches/ubuntu/intrepid/muse/intrepid

« back to all changes in this revision

Viewing changes to app.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Kobras
  • Date: 2002-04-23 17:28:23 UTC
  • Revision ID: james.westby@ubuntu.com-20020423172823-gyxa3yivcs3zh5fa
Tags: 0.5.2-1.2
* NMU.
* widgets/Makefile.in, widgets/Makefile.am: Remove broken rules to
  build files that aren't used anyway. Closes: #143985
* debian/control: More tiny formatting tweaks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include <qclipboard.h>
26
26
#include <qsocketnotifier.h>
27
27
#include <qtextcodec.h>
 
28
#include <qstylefactory.h>
28
29
 
29
30
#include "app.h"
30
31
#include "transport.h"
2149
2150
            qApp->setFont(appFont, true);
2150
2151
            }
2151
2152
      else if (s == "Platinum") {
2152
 
            qApp->setStyle(new QPlatinumStyle);
 
2153
            qApp->setStyle( QStyleFactory::create("platinum"));
2153
2154
            QPalette p( QColor(239, 239, 239));
2154
2155
            qApp->setPalette(p, true);
2155
2156
            qApp->setFont( appFont, true);
2156
2157
            }
2157
2158
 
2158
2159
       else if (s == "Windows") {
2159
 
            qApp->setStyle(new QWindowsStyle);
 
2160
            qApp->setStyle( QStyleFactory::create("windows"));
2160
2161
            qApp->setFont(appFont, true);
2161
2162
            }
2162
2163
 
2163
2164
       else if(s == "CDE") {
2164
 
                qApp->setStyle(new QCDEStyle(true));
 
2165
                qApp->setStyle( QStyleFactory::create("cde"));
2165
2166
 
2166
2167
                QPalette p(QColor( 75, 123, 130 ) );
2167
2168
                p.setColor(QPalette::Active, QColorGroup::Base, QColor( 55, 77, 78 ) );
2187
2188
            }
2188
2189
 
2189
2190
       else if (s == "Motif") {
2190
 
               qApp->setStyle(new QMotifStyle);
 
2191
               qApp->setStyle( QStyleFactory::create("motif"));
2191
2192
               QPalette p( QColor(192, 192, 192));
2192
2193
               qApp->setPalette(p, true);
2193
2194
               qApp->setFont(appFont, true);
2194
2195
               }
2195
2196
       else if (s == "Motif Plus") {
2196
 
               qApp->setStyle( new QMotifPlusStyle);
 
2197
               qApp->setStyle( QStyleFactory::create("motifplus"));
2197
2198
               QPalette p( QColor( 192, 192, 192));
2198
2199
               qApp->setPalette( p, true);
2199
2200
               qApp->setFont( appFont, true);