logsui/logsengine/tsrc/hbstubs/qiconstubs.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 02 Sep 2010 20:27:05 +0300
changeset 16 c5af8598d22c
parent 0 4a5361db8937
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  
*
*/

// Orbit classes
#include <qicon.h>
#include <QVariant>
#include <QPixmap>


// -----------------------------------------------------------------------------
// QIcon::QIcon
// -----------------------------------------------------------------------------
//
QIcon::QIcon()
{   
    mName = QString();
}

// -----------------------------------------------------------------------------
// QIcon::QIcon  
// -----------------------------------------------------------------------------
//
QIcon::QIcon(const QString &iconName)
{
    mName = iconName;
}

// -----------------------------------------------------------------------------
// QIcon::QIcon  
// -----------------------------------------------------------------------------
//
QIcon::QIcon(const QPixmap &pixmap)
{
    mName = "c:\\data\\images\\bg_1.png";
}

// -----------------------------------------------------------------------------
// QIcon::QIcon  
// -----------------------------------------------------------------------------
//
QIcon::QIcon(const QIcon &icon)
{
    mName = "c:\\data\\images\\bg_1.png";
}

// -----------------------------------------------------------------------------
// QIcon::~QIcon  
// -----------------------------------------------------------------------------
//
QIcon::~QIcon()
{
}

// -----------------------------------------------------------------------------
// QIcon::isNull
// -----------------------------------------------------------------------------
//
bool QIcon::isNull() const
{
	return false;
}

// -----------------------------------------------------------------------------
// QIcon::operator==
// -----------------------------------------------------------------------------
//
bool QIcon::operator==(const QIcon   &other) const
{
    return (other.mName == mName);
}

// -----------------------------------------------------------------------------
// QIcon::operator QVariant
// Returns the icon as a QVariant.
// -----------------------------------------------------------------------------
//
QIcon::operator QVariant() const
{
    return QVariant::fromValue(*this);
}