diff -r 000000000000 -r 4a5361db8937 logsui/logsengine/tsrc/hbstubs/qiconstubs.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/logsui/logsengine/tsrc/hbstubs/qiconstubs.cpp Tue May 04 12:39:37 2010 +0300 @@ -0,0 +1,96 @@ +/* +* 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 +#include +#include + + +// ----------------------------------------------------------------------------- +// 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); +} + +