ginebra2/iconsnippet.cpp
branchGCC_SURGE
changeset 8 2e16851ffecd
parent 2 bf4420e9fa4d
parent 6 1c3b8676e58c
equal deleted inserted replaced
2:bf4420e9fa4d 8:2e16851ffecd
     1 /*
       
     2 * Copyright (c) 2010 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 #include "iconsnippet.h"
       
    19 #include "iconwidget.h"
       
    20 
       
    21 namespace GVA {
       
    22 
       
    23 IconSnippet::IconSnippet(const QString & elementId, ChromeWidget * chrome, QGraphicsWidget * widget, const QWebElement & element) :
       
    24         ChromeSnippet(elementId, chrome, widget, element)
       
    25 {
       
    26 
       
    27 }
       
    28 IconSnippet::~IconSnippet()
       
    29 {
       
    30 
       
    31 }
       
    32 void IconSnippet::connectToWebpageController()
       
    33 {
       
    34     static_cast<IconWidget*>(m_widget)->connectToWebpageController();
       
    35 }
       
    36 
       
    37 void IconSnippet::setIconForUrl(const QUrl& url)
       
    38 {
       
    39     static_cast<IconWidget*>(m_widget)->setIconForUrl(url);
       
    40 }
       
    41 
       
    42 void IconSnippet::setDefaultImage(const QImage& image)
       
    43 {
       
    44     static_cast<IconWidget*>(m_widget)->setDefaultImage(image);
       
    45 }
       
    46 }