contentstorage/caclient/s60/src/cabitmapadapter.cpp
changeset 124 e36b2f4799c0
parent 121 0b3699f6c654
equal deleted inserted replaced
121:0b3699f6c654 124:e36b2f4799c0
     1 /*
       
     2  * Copyright (c)2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:  ?Description
       
    15  *
       
    16  */
       
    17 
       
    18 #include <e32std.h>
       
    19 #include <exception>
       
    20 #include <e32base.h>
       
    21 #include <badesca.h>
       
    22 
       
    23 #include <fbs.h>
       
    24 #include <bitdev.h>
       
    25 #include <QPixmap>
       
    26 #include <HbIcon>
       
    27 #include <QBitmap>
       
    28 #include <QDebug>
       
    29 #include <XQConversions>
       
    30 
       
    31 #include "cadef.h"
       
    32 #include "cabitmapadapter.h"
       
    33 
       
    34 void CaBitmapAdapter::fromBitmapAndMaskToPixmapL(CFbsBitmap* fbsBitmap,
       
    35         CFbsBitmap* fbsMask, QPixmap& pixmap)
       
    36 {
       
    37     pixmap = pixmap.fromSymbianCFbsBitmap(fbsBitmap);
       
    38     QPixmap mask;
       
    39     mask = mask.fromSymbianCFbsBitmap(fbsMask);
       
    40     pixmap.setAlphaChannel(mask);
       
    41 }