Changeset 222 for trunk/src/gui/text/qfontdatabase.cpp
- Timestamp:
- Oct 14, 2009, 2:32:13 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/text/qfontdatabase.cpp
r220 r222 54 54 #include <locale.h> 55 55 #endif 56 #ifdef Q_WS_PM57 #include "qt_os2.h"58 #endif59 56 60 57 #include <stdlib.h> … … 148 145 uint yres = 0, uint avgwidth = 0, bool add = false); 149 146 #endif // Q_WS_X11 150 #if def Q_WS_QWS147 #if defined(Q_WS_QWS) || defined(Q_WS_PM) 151 148 QByteArray fileName; 152 149 int fileIndex; 153 #endif154 #ifdef Q_WS_PM155 unsigned short pointSize; // in deca-points156 LONG lMatch;157 150 #endif 158 151 }; … … 219 212 weightName = setwidthName = 0; 220 213 #endif // Q_WS_X11 221 #if defined(Q_WS_PM)222 faceName[0] = 0;223 #endif224 214 } 225 215 … … 234 224 free(pixelSizes[count].encodings); 235 225 #endif 236 #if def Q_WS_QWS226 #if defined(Q_WS_QWS) || defined(Q_WS_PM) 237 227 pixelSizes[count].fileName.~QByteArray(); 238 228 #endif … … 252 242 const char *setwidthName; 253 243 #endif // Q_WS_X11 254 #if def Q_WS_QWS244 #if defined(Q_WS_QWS) || defined(Q_WS_PM) 255 245 bool antialiased; 256 246 #endif 257 #ifdef Q_WS_PM 258 CHAR faceName[FACESIZE]; 259 #endif 260 261 #ifdef Q_WS_PM 262 QtFontSize *pixelSize(unsigned short size, bool = false, 263 unsigned short pointSize = 0); 264 #else 247 265 248 QtFontSize *pixelSize(unsigned short size, bool = false); 266 #endif267 249 }; 268 250 … … 280 262 } 281 263 282 #ifdef Q_WS_PM283 QtFontSize *QtFontStyle::pixelSize(unsigned short size, bool add,284 unsigned short pointSize)285 #else286 264 QtFontSize *QtFontStyle::pixelSize(unsigned short size, bool add) 287 #endif288 265 { 289 266 for (int i = 0; i < count; i++) { 290 #ifdef Q_WS_PM291 if (pixelSizes[i].pixelSize == size &&292 (size == SMOOTH_SCALABLE || !pointSize ||293 pixelSizes[i].pointSize == pointSize))294 return pixelSizes + i;295 #else296 267 if (pixelSizes[i].pixelSize == size) 297 268 return pixelSizes + i; 298 #endif299 269 } 300 270 if (!add) … … 310 280 pixelSizes[count].encodings = 0; 311 281 #endif 312 #if def Q_WS_QWS282 #if defined(Q_WS_QWS) || defined(Q_WS_PM) 313 283 new (&pixelSizes[count].fileName) QByteArray; 314 284 pixelSizes[count].fileIndex = 0; 315 #endif316 #ifdef Q_WS_PM317 pixelSizes[count].pointSize = pointSize;318 pixelSizes[count].lMatch = 0;319 285 #endif 320 286 return pixelSizes + (count++); … … 401 367 { 402 368 memset(writingSystems, 0, sizeof(writingSystems)); 403 #ifdef Q_WS_PM404 // the concept of writing systems isn't used, let's support just Any405 writingSystems[QFontDatabase::Any] = Supported;406 #endif407 369 } 408 370 ~QtFontFamily() {
Note:
See TracChangeset
for help on using the changeset viewer.