logsui/logsengine/tsrc/hbstubs/qiconstubs.cpp
changeset 0 4a5361db8937
equal deleted inserted replaced
-1:000000000000 0:4a5361db8937
       
     1 /*
       
     2 * Copyright (c) 2009 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:  
       
    15 *
       
    16 */
       
    17 
       
    18 // Orbit classes
       
    19 #include <qicon.h>
       
    20 #include <QVariant>
       
    21 #include <QPixmap>
       
    22 
       
    23 
       
    24 // -----------------------------------------------------------------------------
       
    25 // QIcon::QIcon
       
    26 // -----------------------------------------------------------------------------
       
    27 //
       
    28 QIcon::QIcon()
       
    29 {   
       
    30     mName = QString();
       
    31 }
       
    32 
       
    33 // -----------------------------------------------------------------------------
       
    34 // QIcon::QIcon  
       
    35 // -----------------------------------------------------------------------------
       
    36 //
       
    37 QIcon::QIcon(const QString &iconName)
       
    38 {
       
    39     mName = iconName;
       
    40 }
       
    41 
       
    42 // -----------------------------------------------------------------------------
       
    43 // QIcon::QIcon  
       
    44 // -----------------------------------------------------------------------------
       
    45 //
       
    46 QIcon::QIcon(const QPixmap &pixmap)
       
    47 {
       
    48     mName = "c:\\data\\images\\bg_1.png";
       
    49 }
       
    50 
       
    51 // -----------------------------------------------------------------------------
       
    52 // QIcon::QIcon  
       
    53 // -----------------------------------------------------------------------------
       
    54 //
       
    55 QIcon::QIcon(const QIcon &icon)
       
    56 {
       
    57     mName = "c:\\data\\images\\bg_1.png";
       
    58 }
       
    59 
       
    60 // -----------------------------------------------------------------------------
       
    61 // QIcon::~QIcon  
       
    62 // -----------------------------------------------------------------------------
       
    63 //
       
    64 QIcon::~QIcon()
       
    65 {
       
    66 }
       
    67 
       
    68 // -----------------------------------------------------------------------------
       
    69 // QIcon::isNull
       
    70 // -----------------------------------------------------------------------------
       
    71 //
       
    72 bool QIcon::isNull() const
       
    73 {
       
    74 	return false;
       
    75 }
       
    76 
       
    77 // -----------------------------------------------------------------------------
       
    78 // QIcon::operator==
       
    79 // -----------------------------------------------------------------------------
       
    80 //
       
    81 bool QIcon::operator==(const QIcon   &other) const
       
    82 {
       
    83     return (other.mName == mName);
       
    84 }
       
    85 
       
    86 // -----------------------------------------------------------------------------
       
    87 // QIcon::operator QVariant
       
    88 // Returns the icon as a QVariant.
       
    89 // -----------------------------------------------------------------------------
       
    90 //
       
    91 QIcon::operator QVariant() const
       
    92 {
       
    93     return QVariant::fromValue(*this);
       
    94 }
       
    95 
       
    96