Ignore:
Timestamp:
Nov 23, 2009, 11:35:40 PM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

gui/image: Added QPixmap fromPmHBITMAP() to convert an OS/2 BITMAP to a QPixmap.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/image/qpixmap_pm.cpp

    r267 r342  
    115115
    116116    \warning This function is only available on OS/2.
     117
     118
    117119*/
    118120HBITMAP QPixmap::toPmHBITMAP(HBITMAP *mask, bool embedRealAlpha) const
     
    120122    if (data->classId() != QPixmapData::RasterClass) {
    121123        QPixmapData *data = new QRasterPixmapData(depth() == 1 ?
    122                                                   QPixmapData::BitmapType : QPixmapData::PixmapType);
     124                                                  QPixmapData::BitmapType :
     125                                                  QPixmapData::PixmapType);
    123126        data->fromImage(toImage(), Qt::AutoColor);
    124         return QPixmap(data).toPmHBITMAP(mask);
     127        return QPixmap(data).toPmHBITMAP(mask);
    125128    }
    126129
     
    230233
    231234/*!
     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
    232317    Creates a \c HPOINTER from the given QIcon. Returns the \c HPOINTER handle.
    233318
     
    252337
    253338    \warning This function is only available on OS/2.
     339
     340
    254341*/
    255342// static
Note: See TracChangeset for help on using the changeset viewer.