Ignore:
Timestamp:
Nov 6, 2007, 11:27:57 PM (18 years ago)
Author:
dmik
Message:

Styles: Implemented the first version of the Warp4 style (contributed by Cornelis Bockemuehl).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/styles/qstylefactory.cpp

    r2 r174  
    5252#include "qwindowsxpstyle.h"
    5353#endif
     54#ifndef QT_NO_STYLE_WARP4
     55#include "qwarp4style.h"
     56#endif
    5457#ifndef QT_NO_STYLE_AQUA
    5558#include "qaquastyle.h"
     
    109112    including "windows", "motif", "cde", "motifplus", "platinum",
    110113    "sgi" and "compact". Depending on the platform, "windowsxp",
    111     "aqua" or "macintosh" may be available.
     114    "warp4", "aqua" or "macintosh" may be available.
    112115*/
    113116
     
    132135    else
    133136#endif
     137#ifndef QT_NO_STYLE_WARP4
     138    if ( style == "warp4" )
     139        ret = new QWarp4Style;
     140    else
     141#endif
    134142#ifndef QT_NO_STYLE_MOTIF
    135143    if ( style == "motif" )
     
    165173    if ( style == "aqua" )
    166174        ret = new QAquaStyle;
     175    else
    167176#endif
    168177#ifndef QT_NO_STYLE_POCKETPC
    169178    if ( style == "pocketpc" )
    170         ret = new QPocketPCStyle;
     179        ret = new QPocketPCStyle;
     180    else
    171181#endif
    172182#if !defined( QT_NO_STYLE_MAC ) && defined( Q_WS_MAC )
    173183    if( style.left(9) == "macintosh" )
    174         ret = new QMacStyle;
     184        ret = new QMacStyle;
     185    else
    175186#endif
    176187    { } // Keep these here - they make the #ifdefery above work
     
    216227    if ( !list.contains( "WindowsXP" ) && QWindowsXPStyle::resolveSymbols() )
    217228        list << "WindowsXP";
     229#endif
     230#ifndef QT_NO_STYLE_WARP4
     231    if ( !list.contains( "Warp4" ) )
     232        list << "Warp4";
    218233#endif
    219234#ifndef QT_NO_STYLE_MOTIF
Note: See TracChangeset for help on using the changeset viewer.