diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-04-22 00:10:44 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-04-22 00:10:44 (GMT) |
commit | ef06a357aaeb83768d9170859bd99f0ceaf7e82b (patch) | |
tree | d0d25b71f0e8f9d7fc88ab0afeabcd2ff1c41409 /src/gui/image/qicon.h | |
parent | 2ca4e77f0a29bc6d7571ca614a6101d9e1bd83e0 (diff) | |
parent | 0ed389f6d1bedb4caffde70f22efae91d70c4a90 (diff) | |
download | Qt-ef06a357aaeb83768d9170859bd99f0ceaf7e82b.zip Qt-ef06a357aaeb83768d9170859bd99f0ceaf7e82b.tar.gz Qt-ef06a357aaeb83768d9170859bd99f0ceaf7e82b.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2: (22 commits)
Fixes wrong QGraphicsView's viewport cursor reset.
Optimize ~QObject
Document that QFileSystemWatcher needs to be destroyed before ~QCoreApp
Build fix for mingw
Fixes keyboard shortcuts for QGraphicsTextItem.
Optimize QMetaObject::activate
Benchmark emission of signal connected to nothing
Micro optimisations in QMutexLocker
Fixed assert failure when trying to load invalid SVG file.
Added QIcon::name()
QDialog: user-moved dialog would not show on the same place after hide
Fixed image drawing inconsistencies when drawing 1x1 images/subrects.
Fixed pixel-bleeding when stretching subrected pixmaps.
Fixed a crash when declaring an animation with Q_GLOBAL_STATIC
Add a test to QListView to check initialisation of style option index, similar to QTreeView test.
Odf export: Remove double namespace in tab-stops and fix table padding
Mac: Fix off-by-one in vertical position for elided and non-elided text
QX11GL: Fix bug with pixmaps drawn on multiple top-levels
Use QGLContextPrivate to track attribarray enabled state.
Don't crash when calling drawPixmapFragements with a null pixmap
...
Diffstat (limited to 'src/gui/image/qicon.h')
-rw-r--r-- | src/gui/image/qicon.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/image/qicon.h b/src/gui/image/qicon.h index 2812703..faef07b 100644 --- a/src/gui/image/qicon.h +++ b/src/gui/image/qicon.h @@ -81,6 +81,8 @@ public: QSize actualSize(const QSize &size, Mode mode = Normal, State state = Off) const; + QString name() const; + void paint(QPainter *painter, const QRect &rect, Qt::Alignment alignment = Qt::AlignCenter, Mode mode = Normal, State state = Off) const; inline void paint(QPainter *painter, int x, int y, int w, int h, Qt::Alignment alignment = Qt::AlignCenter, Mode mode = Normal, State state = Off) const { paint(painter, QRect(x, y, w, h), alignment, mode, state); } |