Changeset 342
- Timestamp:
- Nov 23, 2009, 11:35:40 PM (15 years ago)
- Location:
- trunk/src/gui/image
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/image/qpixmap.h
r267 r342 151 151 #if defined(Q_WS_PM) 152 152 HBITMAP toPmHBITMAP(HBITMAP *mask = 0, bool embedRealAlpha = false) const; 153 153 154 static HPOINTER toPmHPOINTER(const QIcon &icon, bool isPointer = false, 154 155 int hotX = 0, int hotY = 0, -
trunk/src/gui/image/qpixmap_pm.cpp
r267 r342 115 115 116 116 \warning This function is only available on OS/2. 117 118 117 119 */ 118 120 HBITMAP QPixmap::toPmHBITMAP(HBITMAP *mask, bool embedRealAlpha) const … … 120 122 if (data->classId() != QPixmapData::RasterClass) { 121 123 QPixmapData *data = new QRasterPixmapData(depth() == 1 ? 122 QPixmapData::BitmapType : QPixmapData::PixmapType); 124 QPixmapData::BitmapType : 125 QPixmapData::PixmapType); 123 126 data->fromImage(toImage(), Qt::AutoColor); 124 return QPixmap(data).toPmHBITMAP(mask );127 return QPixmap(data).toPmHBITMAP(mask); 125 128 } 126 129 … … 230 233 231 234 /*! 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 232 317 Creates a \c HPOINTER from the given QIcon. Returns the \c HPOINTER handle. 233 318 … … 252 337 253 338 \warning This function is only available on OS/2. 339 340 254 341 */ 255 342 // static
Note:
See TracChangeset
for help on using the changeset viewer.