Changeset 174 for trunk/src/styles


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).

Location:
trunk/src/styles
Files:
2 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
  • trunk/src/styles/qt_styles.pri

    r2 r174  
    1212
    1313        contains( styles, all ) {
    14                 styles += mac cde motifplus sgi platinum compact interlace windows motif
     14                styles += mac cde motifplus sgi platinum compact interlace windows warp4 motif
    1515        }
    1616
     
    1919                HEADERS +=$$STYLES_H/qmacstyle_mac.h
    2020                SOURCES +=$$STYLES_CPP/qmacstyle_mac.cpp
    21                 HEADERS *= $$STYLES_CPP/qaquastyle_p.h 
    22                 SOURCES *= $$STYLES_CPP/qaquastyle_p.cpp 
     21                HEADERS *= $$STYLES_CPP/qaquastyle_p.h
     22                SOURCES *= $$STYLES_CPP/qaquastyle_p.cpp
    2323
    2424                !contains( styles, windows ) {
     
    3131        #embedded|!macx-*:styles -= aqua
    3232        contains( styles, aqua ) {
    33                 HEADERS += $$STYLES_H/qaquastyle.h 
    34                 SOURCES += $$STYLES_CPP/qaquastyle.cpp 
    35                 HEADERS *= $$STYLES_CPP/qaquastyle_p.h 
    36                 SOURCES *= $$STYLES_CPP/qaquastyle_p.cpp 
     33                HEADERS += $$STYLES_H/qaquastyle.h
     34                SOURCES += $$STYLES_CPP/qaquastyle.cpp
     35                HEADERS *= $$STYLES_CPP/qaquastyle_p.h
     36                SOURCES *= $$STYLES_CPP/qaquastyle_p.cpp
    3737
    3838                !contains( styles, windows ) {
     
    124124                }
    125125        }
    126         else:DEFINES += QT_NO_STYLE_POCKETPC
    127        
     126        else:DEFINES += QT_NO_STYLE_POCKETPC
     127
    128128        contains( styles, windows ) {
    129129                HEADERS +=$$STYLES_H/qwindowsstyle.h
     
    131131        }
    132132        else:DEFINES += QT_NO_STYLE_WINDOWS
     133
     134        contains( styles, warp4 ) {
     135                HEADERS +=$$STYLES_H/qwarp4style.h
     136                SOURCES +=$$STYLES_CPP/qwarp4style.cpp
     137        }
     138        else:DEFINES += QT_NO_STYLE_WARP4
    133139
    134140        contains( styles, motif ) {
Note: See TracChangeset for help on using the changeset viewer.