0
|
1 |
# Qt styles module
|
|
2 |
|
|
3 |
HEADERS += \
|
|
4 |
styles/qstyle.h \
|
|
5 |
styles/qstylefactory.h \
|
|
6 |
styles/qstyleoption.h \
|
|
7 |
styles/qstyleplugin.h \
|
|
8 |
styles/qcommonstylepixmaps_p.h \
|
|
9 |
styles/qcommonstyle.h \
|
|
10 |
styles/qstylehelper_p.h \
|
|
11 |
styles/qproxystyle.h \
|
|
12 |
styles/qproxystyle_p.h \
|
|
13 |
styles/qstylesheetstyle_p.h
|
|
14 |
|
|
15 |
SOURCES += \
|
|
16 |
styles/qstyle.cpp \
|
|
17 |
styles/qstylefactory.cpp \
|
|
18 |
styles/qstyleoption.cpp \
|
|
19 |
styles/qstyleplugin.cpp \
|
|
20 |
styles/qstylehelper.cpp \
|
|
21 |
styles/qcommonstyle.cpp \
|
|
22 |
styles/qproxystyle.cpp \
|
|
23 |
styles/qstylesheetstyle.cpp \
|
|
24 |
styles/qstylesheetstyle_default.cpp
|
|
25 |
|
|
26 |
!wince* {
|
|
27 |
RESOURCES += styles/qstyle.qrc
|
|
28 |
} else {
|
|
29 |
RESOURCES += styles/qstyle_wince.qrc
|
|
30 |
}
|
|
31 |
|
|
32 |
contains( styles, all ) {
|
|
33 |
styles = mac windows windowsxp windowsvista
|
|
34 |
}
|
|
35 |
|
|
36 |
x11|embedded|!macx-*:styles -= mac
|
|
37 |
|
|
38 |
x11{
|
|
39 |
QMAKE_CXXFLAGS += $$QT_CFLAGS_QGTKSTYLE
|
|
40 |
LIBS_PRIVATE += $$QT_LIBS_QGTKSTYLE
|
|
41 |
styles += gtk
|
|
42 |
}
|
|
43 |
|
|
44 |
contains( styles, mac ) {
|
|
45 |
HEADERS += \
|
|
46 |
styles/qmacstyle_mac.h \
|
|
47 |
styles/qmacstylepixmaps_mac_p.h
|
|
48 |
OBJECTIVE_SOURCES += styles/qmacstyle_mac.mm
|
|
49 |
|
|
50 |
!contains( styles, windows ) {
|
|
51 |
message( mac requires windows )
|
|
52 |
styles += windows
|
|
53 |
DEFINES+= QT_STYLE_WINDOWS
|
|
54 |
}
|
|
55 |
} else {
|
|
56 |
DEFINES += QT_NO_STYLE_MAC
|
|
57 |
}
|
|
58 |
|
|
59 |
contains( styles, cde ) {
|
|
60 |
HEADERS += styles/qcdestyle.h
|
|
61 |
SOURCES += styles/qcdestyle.cpp
|
|
62 |
|
|
63 |
!contains( styles, motif ) {
|
|
64 |
message( cde requires motif )
|
|
65 |
styles += motif
|
|
66 |
DEFINES+= QT_STYLE_MOTIF
|
|
67 |
}
|
|
68 |
} else {
|
|
69 |
DEFINES += QT_NO_STYLE_CDE
|
|
70 |
}
|
|
71 |
|
|
72 |
contains( styles, windowsvista ) {
|
|
73 |
HEADERS += styles/qwindowsvistastyle.h
|
|
74 |
HEADERS += styles/qwindowsvistastyle_p.h
|
|
75 |
SOURCES += styles/qwindowsvistastyle.cpp
|
|
76 |
!contains( styles, windowsxp ) {
|
|
77 |
message( windowsvista requires windowsxp )
|
|
78 |
styles += windowsxp
|
|
79 |
DEFINES+= QT_STYLE_WINDOWSXP
|
|
80 |
}
|
|
81 |
} else {
|
|
82 |
DEFINES += QT_NO_STYLE_WINDOWSVISTA
|
|
83 |
}
|
|
84 |
|
|
85 |
contains( styles, windowsxp ) {
|
|
86 |
HEADERS += styles/qwindowsxpstyle.h
|
|
87 |
SOURCES += styles/qwindowsxpstyle.cpp
|
|
88 |
!contains( styles, windows ) {
|
|
89 |
message( windowsxp requires windows )
|
|
90 |
styles += windows
|
|
91 |
DEFINES+= QT_STYLE_WINDOWS
|
|
92 |
}
|
|
93 |
} else {
|
|
94 |
DEFINES += QT_NO_STYLE_WINDOWSXP
|
|
95 |
}
|
|
96 |
|
|
97 |
contains( styles, plastique ) {
|
|
98 |
HEADERS += styles/qplastiquestyle.h
|
|
99 |
SOURCES += styles/qplastiquestyle.cpp
|
|
100 |
!contains( styles, windows ) {
|
|
101 |
message( plastique requires windows )
|
|
102 |
styles += windows
|
|
103 |
DEFINES+= QT_STYLE_WINDOWS
|
|
104 |
}
|
|
105 |
} else {
|
|
106 |
DEFINES += QT_NO_STYLE_PLASTIQUE
|
|
107 |
}
|
|
108 |
|
|
109 |
contains( styles, gtk ) {
|
|
110 |
HEADERS += styles/qgtkstyle.h
|
|
111 |
HEADERS += styles/qgtkpainter_p.h
|
|
112 |
HEADERS += styles/gtksymbols_p.h
|
|
113 |
SOURCES += styles/qgtkstyle.cpp
|
|
114 |
SOURCES += styles/qgtkpainter.cpp
|
|
115 |
SOURCES += styles/gtksymbols.cpp
|
|
116 |
!contains( styles, cleanlooks ) {
|
|
117 |
styles += cleanlooks
|
|
118 |
DEFINES+= QT_STYLE_CLEANLOOKS
|
|
119 |
}
|
|
120 |
} else {
|
|
121 |
DEFINES += QT_NO_STYLE_GTK
|
|
122 |
}
|
|
123 |
|
|
124 |
contains( styles, cleanlooks ) {
|
|
125 |
HEADERS += styles/qcleanlooksstyle.h
|
|
126 |
HEADERS += styles/qcleanlooksstyle_p.h
|
|
127 |
SOURCES += styles/qcleanlooksstyle.cpp
|
|
128 |
!contains( styles, windows ) {
|
|
129 |
styles += windows
|
|
130 |
DEFINES+= QT_STYLE_WINDOWS
|
|
131 |
}
|
|
132 |
} else {
|
|
133 |
DEFINES += QT_NO_STYLE_CLEANLOOKS
|
|
134 |
}
|
|
135 |
|
|
136 |
contains( styles, windows ) {
|
|
137 |
HEADERS += styles/qwindowsstyle.h
|
|
138 |
SOURCES += styles/qwindowsstyle.cpp
|
|
139 |
} else {
|
|
140 |
DEFINES += QT_NO_STYLE_WINDOWS
|
|
141 |
}
|
|
142 |
|
|
143 |
contains( styles, motif ) {
|
|
144 |
HEADERS += styles/qmotifstyle.h
|
|
145 |
SOURCES += styles/qmotifstyle.cpp
|
|
146 |
} else {
|
|
147 |
DEFINES += QT_NO_STYLE_MOTIF
|
|
148 |
}
|
|
149 |
|
|
150 |
contains( styles, windowsce ) {
|
|
151 |
HEADERS += styles/qwindowscestyle.h
|
|
152 |
SOURCES += styles/qwindowscestyle.cpp
|
|
153 |
} else {
|
|
154 |
DEFINES += QT_NO_STYLE_WINDOWSCE
|
|
155 |
}
|
|
156 |
|
|
157 |
contains( styles, windowsmobile ) {
|
|
158 |
HEADERS += styles/qwindowsmobilestyle.h
|
|
159 |
SOURCES += styles/qwindowsmobilestyle.cpp
|
|
160 |
} else {
|
|
161 |
DEFINES += QT_NO_STYLE_WINDOWSMOBILE
|
|
162 |
}
|
|
163 |
|
|
164 |
contains( styles, s60 ):contains(QT_CONFIG, s60) {
|
|
165 |
HEADERS += \
|
|
166 |
styles/qs60style.h \
|
|
167 |
styles/qs60style_p.h
|
|
168 |
SOURCES += styles/qs60style.cpp
|
|
169 |
symbian {
|
|
170 |
SOURCES += styles/qs60style_s60.cpp
|
|
171 |
LIBS += -laknicon -laknskins -laknskinsrv -lfontutils
|
|
172 |
} else {
|
|
173 |
SOURCES += styles/qs60style_simulated.cpp
|
|
174 |
RESOURCES += styles/qstyle_s60_simulated.qrc
|
|
175 |
}
|
|
176 |
} else {
|
|
177 |
DEFINES += QT_NO_STYLE_S60
|
|
178 |
}
|