From 17ebedf5fc640abbe7af9ffc97bb62404a7eefdd Mon Sep 17 00:00:00 2001 From: Konstantin Ritt Date: Tue, 24 Apr 2012 18:38:57 +0300 Subject: get rid of QT_NO_IMAGE_TEXT switcher Change-Id: Ie72f907ffb959f629af6a414959348a992c4c941 Reviewed-by: aavit --- src/gui/image/qimage.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/gui/image/qimage.h') diff --git a/src/gui/image/qimage.h b/src/gui/image/qimage.h index 3565547fe0..e59aa20549 100644 --- a/src/gui/image/qimage.h +++ b/src/gui/image/qimage.h @@ -68,7 +68,6 @@ template class QVector; struct QImageData; class QImageDataMisc; // internal -#ifndef QT_NO_IMAGE_TEXT #if QT_DEPRECATED_SINCE(5, 0) class QImageTextKeyLang { public: @@ -86,7 +85,6 @@ public: { return !operator==(other); } }; #endif -#endif //QT_NO_IMAGE_TEXT typedef void (*QImageCleanupFunction)(void*); @@ -267,7 +265,7 @@ public: void setDotsPerMeterY(int); QPoint offset() const; void setOffset(const QPoint&); -#ifndef QT_NO_IMAGE_TEXT + QStringList textKeys() const; QString text(const QString &key = QString()) const; void setText(const QString &key, const QString &value); @@ -279,7 +277,6 @@ public: QT_DEPRECATED inline QString text(const QImageTextKeyLang&) const; QT_DEPRECATED inline void setText(const char* key, const char* lang, const QString&); #endif -#endif #if QT_DEPRECATED_SINCE(5, 0) QT_DEPRECATED inline int numColors() const; @@ -314,7 +311,6 @@ inline QRgb QImage::pixel(const QPoint &pt) const { return pixel(pt.x(), pt.y()) inline void QImage::setPixel(const QPoint &pt, uint index_or_rgb) { setPixel(pt.x(), pt.y(), index_or_rgb); } #if QT_DEPRECATED_SINCE(5, 0) -#ifndef QT_NO_IMAGE_TEXT #if defined(Q_CC_GNU) && !defined(Q_CC_INTEL) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 406) # pragma GCC diagnostic push @@ -399,8 +395,6 @@ inline void QImage::setText(const char* key, const char* lang, const QString &s) # pragma warning(default: 4996) #endif -#endif - inline int QImage::numColors() const { return colorCount(); -- cgit v1.2.3