author | Eckhart Koeppen <eckhart.koppen@nokia.com> |
Wed, 21 Apr 2010 11:15:19 +0300 | |
branch | RCL_3 |
changeset 11 | 25a739ee40f4 |
parent 7 | 3f74d0d4af4c |
permissions | -rw-r--r-- |
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 |
||
5
d3bac044e0f0
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
26 |
wince* { |
d3bac044e0f0
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
27 |
RESOURCES += styles/qstyle_wince.qrc |
d3bac044e0f0
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
28 |
} else:symbian { |
d3bac044e0f0
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
29 |
RESOURCES += styles/qstyle_s60.qrc |
0 | 30 |
} else { |
5
d3bac044e0f0
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
31 |
RESOURCES += styles/qstyle.qrc |
0 | 32 |
} |
33 |
||
34 |
contains( styles, all ) { |
|
35 |
styles = mac windows windowsxp windowsvista |
|
36 |
} |
|
37 |
||
38 |
x11|embedded|!macx-*:styles -= mac |
|
39 |
||
40 |
x11{ |
|
41 |
QMAKE_CXXFLAGS += $$QT_CFLAGS_QGTKSTYLE |
|
42 |
LIBS_PRIVATE += $$QT_LIBS_QGTKSTYLE |
|
43 |
styles += gtk |
|
44 |
} |
|
45 |
||
46 |
contains( styles, mac ) { |
|
47 |
HEADERS += \ |
|
48 |
styles/qmacstyle_mac.h \ |
|
49 |
styles/qmacstylepixmaps_mac_p.h |
|
50 |
OBJECTIVE_SOURCES += styles/qmacstyle_mac.mm |
|
51 |
||
52 |
!contains( styles, windows ) { |
|
53 |
message( mac requires windows ) |
|
54 |
styles += windows |
|
55 |
DEFINES+= QT_STYLE_WINDOWS |
|
56 |
} |
|
57 |
} else { |
|
58 |
DEFINES += QT_NO_STYLE_MAC |
|
59 |
} |
|
60 |
||
61 |
contains( styles, cde ) { |
|
62 |
HEADERS += styles/qcdestyle.h |
|
63 |
SOURCES += styles/qcdestyle.cpp |
|
64 |
||
65 |
!contains( styles, motif ) { |
|
66 |
message( cde requires motif ) |
|
67 |
styles += motif |
|
68 |
DEFINES+= QT_STYLE_MOTIF |
|
69 |
} |
|
70 |
} else { |
|
71 |
DEFINES += QT_NO_STYLE_CDE |
|
72 |
} |
|
73 |
||
74 |
contains( styles, windowsvista ) { |
|
75 |
HEADERS += styles/qwindowsvistastyle.h |
|
76 |
HEADERS += styles/qwindowsvistastyle_p.h |
|
77 |
SOURCES += styles/qwindowsvistastyle.cpp |
|
78 |
!contains( styles, windowsxp ) { |
|
79 |
message( windowsvista requires windowsxp ) |
|
80 |
styles += windowsxp |
|
81 |
DEFINES+= QT_STYLE_WINDOWSXP |
|
82 |
} |
|
83 |
} else { |
|
84 |
DEFINES += QT_NO_STYLE_WINDOWSVISTA |
|
85 |
} |
|
86 |
||
87 |
contains( styles, windowsxp ) { |
|
88 |
HEADERS += styles/qwindowsxpstyle.h |
|
89 |
SOURCES += styles/qwindowsxpstyle.cpp |
|
90 |
!contains( styles, windows ) { |
|
91 |
message( windowsxp requires windows ) |
|
92 |
styles += windows |
|
93 |
DEFINES+= QT_STYLE_WINDOWS |
|
94 |
} |
|
95 |
} else { |
|
96 |
DEFINES += QT_NO_STYLE_WINDOWSXP |
|
97 |
} |
|
98 |
||
99 |
contains( styles, plastique ) { |
|
100 |
HEADERS += styles/qplastiquestyle.h |
|
101 |
SOURCES += styles/qplastiquestyle.cpp |
|
102 |
!contains( styles, windows ) { |
|
103 |
message( plastique requires windows ) |
|
104 |
styles += windows |
|
105 |
DEFINES+= QT_STYLE_WINDOWS |
|
106 |
} |
|
107 |
} else { |
|
108 |
DEFINES += QT_NO_STYLE_PLASTIQUE |
|
109 |
} |
|
110 |
||
111 |
contains( styles, gtk ) { |
|
112 |
HEADERS += styles/qgtkstyle.h |
|
113 |
HEADERS += styles/qgtkpainter_p.h |
|
3
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
114 |
HEADERS += styles/qgtkstyle_p.h |
0 | 115 |
SOURCES += styles/qgtkstyle.cpp |
116 |
SOURCES += styles/qgtkpainter.cpp |
|
3
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
117 |
SOURCES += styles/qgtkstyle_p.cpp |
0 | 118 |
!contains( styles, cleanlooks ) { |
119 |
styles += cleanlooks |
|
120 |
DEFINES+= QT_STYLE_CLEANLOOKS |
|
121 |
} |
|
122 |
} else { |
|
123 |
DEFINES += QT_NO_STYLE_GTK |
|
124 |
} |
|
125 |
||
126 |
contains( styles, cleanlooks ) { |
|
127 |
HEADERS += styles/qcleanlooksstyle.h |
|
128 |
HEADERS += styles/qcleanlooksstyle_p.h |
|
129 |
SOURCES += styles/qcleanlooksstyle.cpp |
|
130 |
!contains( styles, windows ) { |
|
131 |
styles += windows |
|
132 |
DEFINES+= QT_STYLE_WINDOWS |
|
133 |
} |
|
134 |
} else { |
|
135 |
DEFINES += QT_NO_STYLE_CLEANLOOKS |
|
136 |
} |
|
137 |
||
138 |
contains( styles, windows ) { |
|
139 |
HEADERS += styles/qwindowsstyle.h |
|
140 |
SOURCES += styles/qwindowsstyle.cpp |
|
141 |
} else { |
|
142 |
DEFINES += QT_NO_STYLE_WINDOWS |
|
143 |
} |
|
144 |
||
145 |
contains( styles, motif ) { |
|
146 |
HEADERS += styles/qmotifstyle.h |
|
147 |
SOURCES += styles/qmotifstyle.cpp |
|
148 |
} else { |
|
149 |
DEFINES += QT_NO_STYLE_MOTIF |
|
150 |
} |
|
151 |
||
152 |
contains( styles, windowsce ) { |
|
153 |
HEADERS += styles/qwindowscestyle.h |
|
154 |
SOURCES += styles/qwindowscestyle.cpp |
|
155 |
} else { |
|
156 |
DEFINES += QT_NO_STYLE_WINDOWSCE |
|
157 |
} |
|
158 |
||
159 |
contains( styles, windowsmobile ) { |
|
160 |
HEADERS += styles/qwindowsmobilestyle.h |
|
161 |
SOURCES += styles/qwindowsmobilestyle.cpp |
|
162 |
} else { |
|
163 |
DEFINES += QT_NO_STYLE_WINDOWSMOBILE |
|
164 |
} |
|
165 |
||
166 |
contains( styles, s60 ):contains(QT_CONFIG, s60) { |
|
7
3f74d0d4af4c
qt:70947f0f93d948bc89b3b43d00da758a51f1ef84
Eckhart Koeppen <eckhart.koppen@nokia.com>
parents:
5
diff
changeset
|
167 |
HEADERS += \ |
3f74d0d4af4c
qt:70947f0f93d948bc89b3b43d00da758a51f1ef84
Eckhart Koeppen <eckhart.koppen@nokia.com>
parents:
5
diff
changeset
|
168 |
styles/qs60style.h \ |
3f74d0d4af4c
qt:70947f0f93d948bc89b3b43d00da758a51f1ef84
Eckhart Koeppen <eckhart.koppen@nokia.com>
parents:
5
diff
changeset
|
169 |
styles/qs60style_p.h |
3f74d0d4af4c
qt:70947f0f93d948bc89b3b43d00da758a51f1ef84
Eckhart Koeppen <eckhart.koppen@nokia.com>
parents:
5
diff
changeset
|
170 |
SOURCES += styles/qs60style.cpp |
3f74d0d4af4c
qt:70947f0f93d948bc89b3b43d00da758a51f1ef84
Eckhart Koeppen <eckhart.koppen@nokia.com>
parents:
5
diff
changeset
|
171 |
symbian { |
3f74d0d4af4c
qt:70947f0f93d948bc89b3b43d00da758a51f1ef84
Eckhart Koeppen <eckhart.koppen@nokia.com>
parents:
5
diff
changeset
|
172 |
SOURCES += styles/qs60style_s60.cpp |
3f74d0d4af4c
qt:70947f0f93d948bc89b3b43d00da758a51f1ef84
Eckhart Koeppen <eckhart.koppen@nokia.com>
parents:
5
diff
changeset
|
173 |
LIBS += -lAknIcon -lAKNSKINS -lAKNSKINSRV -lFontUtils -legul -lbmpanim |
3f74d0d4af4c
qt:70947f0f93d948bc89b3b43d00da758a51f1ef84
Eckhart Koeppen <eckhart.koppen@nokia.com>
parents:
5
diff
changeset
|
174 |
} else { |
3f74d0d4af4c
qt:70947f0f93d948bc89b3b43d00da758a51f1ef84
Eckhart Koeppen <eckhart.koppen@nokia.com>
parents:
5
diff
changeset
|
175 |
SOURCES += styles/qs60style_simulated.cpp |
3f74d0d4af4c
qt:70947f0f93d948bc89b3b43d00da758a51f1ef84
Eckhart Koeppen <eckhart.koppen@nokia.com>
parents:
5
diff
changeset
|
176 |
RESOURCES += styles/qstyle_s60_simulated.qrc |
3f74d0d4af4c
qt:70947f0f93d948bc89b3b43d00da758a51f1ef84
Eckhart Koeppen <eckhart.koppen@nokia.com>
parents:
5
diff
changeset
|
177 |
} |
0 | 178 |
} else { |
7
3f74d0d4af4c
qt:70947f0f93d948bc89b3b43d00da758a51f1ef84
Eckhart Koeppen <eckhart.koppen@nokia.com>
parents:
5
diff
changeset
|
179 |
DEFINES += QT_NO_STYLE_S60 |
0 | 180 |
} |