diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2011-07-12 11:16:45 (GMT) |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2011-07-12 12:42:06 (GMT) |
commit | 5ee3e4964d60f4d9cd7026c6f8b6fb93ddd39588 (patch) | |
tree | 842c2b33b52b503924be4924ac5468d912b92d8c /src/gui/image | |
parent | da0e1e101bb4c44c25b6523357fa81ad1b2d6539 (diff) | |
download | Qt-5ee3e4964d60f4d9cd7026c6f8b6fb93ddd39588.zip Qt-5ee3e4964d60f4d9cd7026c6f8b6fb93ddd39588.tar.gz Qt-5ee3e4964d60f4d9cd7026c6f8b6fb93ddd39588.tar.bz2 |
Deprecate some functions in QImage (that have been obsolete since 4.1).
Reviewed-by: Olivier Goffart
Diffstat (limited to 'src/gui/image')
-rw-r--r-- | src/gui/image/qimage.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/gui/image/qimage.h b/src/gui/image/qimage.h index c783b76..57d7169 100644 --- a/src/gui/image/qimage.h +++ b/src/gui/image/qimage.h @@ -66,7 +66,8 @@ template <class T> class QVector; struct QImageData; class QImageDataMisc; // internal #ifndef QT_NO_IMAGE_TEXT -class Q_GUI_EXPORT QImageTextKeyLang { +#ifdef QT_DEPRECATED +class Q_GUI_EXPORT QT_DEPRECATED QImageTextKeyLang { public: QImageTextKeyLang(const char* k, const char* l) : key(k), lang(l) { } QImageTextKeyLang() { } @@ -81,6 +82,7 @@ public: inline bool operator!= (const QImageTextKeyLang &other) const { return !operator==(other); } }; +#endif #endif //QT_NO_IMAGE_TEXT @@ -275,12 +277,13 @@ public: QString text(const QString &key = QString()) const; void setText(const QString &key, const QString &value); - // The following functions are obsolete as of 4.1 - QString text(const char* key, const char* lang=0) const; - QList<QImageTextKeyLang> textList() const; - QStringList textLanguages() const; - QString text(const QImageTextKeyLang&) const; - void setText(const char* key, const char* lang, const QString&); +#ifdef QT_DEPRECATED + QT_DEPRECATED QString text(const char* key, const char* lang=0) const; + QT_DEPRECATED QList<QImageTextKeyLang> textList() const; + QT_DEPRECATED QStringList textLanguages() const; + QT_DEPRECATED QString text(const QImageTextKeyLang&) const; + QT_DEPRECATED void setText(const char* key, const char* lang, const QString&); +#endif #endif #ifdef QT3_SUPPORT |