| 1 | # Qt styles module
|
|---|
| 2 |
|
|---|
| 3 | styles {
|
|---|
| 4 | STYLES_P = styles
|
|---|
| 5 | HEADERS +=$$STYLES_H/qstylefactory.h \
|
|---|
| 6 | $$STYLES_P/qstyleinterface_p.h \
|
|---|
| 7 | $$STYLES_H/qstyleplugin.h \
|
|---|
| 8 | $$STYLES_H/qcommonstyle.h
|
|---|
| 9 | SOURCES +=$$STYLES_CPP/qstylefactory.cpp \
|
|---|
| 10 | $$STYLES_CPP/qstyleplugin.cpp \
|
|---|
| 11 | $$STYLES_CPP/qcommonstyle.cpp
|
|---|
| 12 |
|
|---|
| 13 | contains( styles, all ) {
|
|---|
| 14 | styles += mac cde motifplus sgi platinum compact interlace windows motif
|
|---|
| 15 | }
|
|---|
| 16 |
|
|---|
| 17 | x11|embedded|!macx-*:styles -= mac
|
|---|
| 18 | contains( styles, mac ) {
|
|---|
| 19 | HEADERS +=$$STYLES_H/qmacstyle_mac.h
|
|---|
| 20 | SOURCES +=$$STYLES_CPP/qmacstyle_mac.cpp
|
|---|
| 21 | HEADERS *= $$STYLES_CPP/qaquastyle_p.h
|
|---|
| 22 | SOURCES *= $$STYLES_CPP/qaquastyle_p.cpp
|
|---|
| 23 |
|
|---|
| 24 | !contains( styles, windows ) {
|
|---|
| 25 | message( mac requires windows )
|
|---|
| 26 | styles += windows
|
|---|
| 27 | }
|
|---|
| 28 | }
|
|---|
| 29 | else:DEFINES += QT_NO_STYLE_MAC
|
|---|
| 30 |
|
|---|
| 31 | #embedded|!macx-*:styles -= aqua
|
|---|
| 32 | 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
|
|---|
| 37 |
|
|---|
| 38 | !contains( styles, windows ) {
|
|---|
| 39 | message( aqua requires windows )
|
|---|
| 40 | styles += windows
|
|---|
| 41 | }
|
|---|
| 42 | }
|
|---|
| 43 | else:DEFINES += QT_NO_STYLE_AQUA
|
|---|
| 44 |
|
|---|
| 45 | contains( styles, cde ) {
|
|---|
| 46 | HEADERS +=$$STYLES_H/qcdestyle.h
|
|---|
| 47 | SOURCES +=$$STYLES_CPP/qcdestyle.cpp
|
|---|
| 48 |
|
|---|
| 49 | !contains( styles, motif ) {
|
|---|
| 50 | message( cde requires motif )
|
|---|
| 51 | styles += motif
|
|---|
| 52 | }
|
|---|
| 53 | }
|
|---|
| 54 | else:DEFINES += QT_NO_STYLE_CDE
|
|---|
| 55 |
|
|---|
| 56 | contains( styles, motifplus ) {
|
|---|
| 57 | HEADERS +=$$STYLES_H/qmotifplusstyle.h
|
|---|
| 58 | SOURCES +=$$STYLES_CPP/qmotifplusstyle.cpp
|
|---|
| 59 | !contains( styles, motif ) {
|
|---|
| 60 | message( motifplus requires motif )
|
|---|
| 61 | styles += motif
|
|---|
| 62 | }
|
|---|
| 63 | }
|
|---|
| 64 | else:DEFINES += QT_NO_STYLE_MOTIFPLUS
|
|---|
| 65 |
|
|---|
| 66 | contains( styles, interlace ) {
|
|---|
| 67 | HEADERS +=$$STYLES_H/qinterlacestyle.h
|
|---|
| 68 | SOURCES +=$$STYLES_CPP/qinterlacestyle.cpp
|
|---|
| 69 | !contains( styles, windows ) {
|
|---|
| 70 | message( interlace requires windows )
|
|---|
| 71 | styles += windows
|
|---|
| 72 | }
|
|---|
| 73 | }
|
|---|
| 74 | else:DEFINES += QT_NO_STYLE_INTERLACE
|
|---|
| 75 |
|
|---|
| 76 | contains( styles, platinum ) {
|
|---|
| 77 | HEADERS +=$$STYLES_H/qplatinumstyle.h
|
|---|
| 78 | SOURCES +=$$STYLES_CPP/qplatinumstyle.cpp
|
|---|
| 79 | !contains( styles, windows ) {
|
|---|
| 80 | message( platinum requires windows )
|
|---|
| 81 | styles += windows
|
|---|
| 82 | }
|
|---|
| 83 | }
|
|---|
| 84 | else:DEFINES += QT_NO_STYLE_PLATINUM
|
|---|
| 85 |
|
|---|
| 86 | contains( styles, windowsxp ) {
|
|---|
| 87 | HEADERS +=$$STYLES_H/qwindowsxpstyle.h
|
|---|
| 88 | SOURCES +=$$STYLES_CPP/qwindowsxpstyle.cpp
|
|---|
| 89 | !contains( styles, windowsxp ) {
|
|---|
| 90 | message( windowsxp requires windows )
|
|---|
| 91 | styles += windows
|
|---|
| 92 | }
|
|---|
| 93 | }
|
|---|
| 94 | else:DEFINES += QT_NO_STYLE_WINDOWSXP
|
|---|
| 95 |
|
|---|
| 96 | contains( styles, sgi ) {
|
|---|
| 97 | HEADERS +=$$STYLES_H/qsgistyle.h
|
|---|
| 98 | SOURCES +=$$STYLES_CPP/qsgistyle.cpp
|
|---|
| 99 | !contains( styles, motif ) {
|
|---|
| 100 | message( sgi requires motif )
|
|---|
| 101 | styles += motif
|
|---|
| 102 | }
|
|---|
| 103 | }
|
|---|
| 104 | else:DEFINES += QT_NO_STYLE_SGI
|
|---|
| 105 |
|
|---|
| 106 | contains( styles, compact ) {
|
|---|
| 107 | HEADERS +=$$STYLES_H/qcompactstyle.h
|
|---|
| 108 | SOURCES +=$$STYLES_CPP/qcompactstyle.cpp
|
|---|
| 109 | !contains( styles, windows ) {
|
|---|
| 110 | message( compact requires windows )
|
|---|
| 111 | styles += windows
|
|---|
| 112 | }
|
|---|
| 113 | }
|
|---|
| 114 | else:DEFINES += QT_NO_STYLE_COMPACT
|
|---|
| 115 |
|
|---|
| 116 | wince-*:styles += pocketpc
|
|---|
| 117 | contains( styles, pocketpc ) {
|
|---|
| 118 | HEADERS +=$$STYLES_H/qpocketpcstyle_wce.h
|
|---|
| 119 | SOURCES +=$$STYLES_CPP/qpocketpcstyle_wce.cpp
|
|---|
| 120 |
|
|---|
| 121 | !contains( styles, windows ) {
|
|---|
| 122 | message( pocketpc requires windows )
|
|---|
| 123 | styles += windows
|
|---|
| 124 | }
|
|---|
| 125 | }
|
|---|
| 126 | else:DEFINES += QT_NO_STYLE_POCKETPC
|
|---|
| 127 |
|
|---|
| 128 | contains( styles, windows ) {
|
|---|
| 129 | HEADERS +=$$STYLES_H/qwindowsstyle.h
|
|---|
| 130 | SOURCES +=$$STYLES_CPP/qwindowsstyle.cpp
|
|---|
| 131 | }
|
|---|
| 132 | else:DEFINES += QT_NO_STYLE_WINDOWS
|
|---|
| 133 |
|
|---|
| 134 | contains( styles, motif ) {
|
|---|
| 135 | HEADERS +=$$STYLES_H/qmotifstyle.h
|
|---|
| 136 | SOURCES +=$$STYLES_CPP/qmotifstyle.cpp
|
|---|
| 137 | }
|
|---|
| 138 | else:DEFINES += QT_NO_STYLE_MOTIF
|
|---|
| 139 | }
|
|---|