Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/image/qiconengine.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    183183    that should be filled with icon sizes. Engines that work in terms
    184184    of a scalable, vectorial format normally return an empty list.
     185
     186    \value IconNameHook Allows to query the name used to create the
     187    icon, for example when instantiating an icon using
     188    QIcon::fromTheme().
    185189
    186190    \sa virtual_hook()
     
    302306}
    303307
     308/*!
     309    \since 4.7
     310
     311    Returns the name used to create the engine, if available.
     312
     313    \note This is a helper method and the actual work is done by
     314    virtual_hook() method, hence this method depends on icon engine support
     315    and may not work with all icon engines.
     316 */
     317QString QIconEngineV2::iconName()
     318{
     319    QString name;
     320    virtual_hook(QIconEngineV2::IconNameHook, reinterpret_cast<void*>(&name));
     321    return name;
     322}
     323
    304324QT_END_NAMESPACE
Note: See TracChangeset for help on using the changeset viewer.