define QT_NO_ICONV if QT_NO_TEXTCODEC
authorJeremy Katz <jeremy.katz@nokia.com>
Mon, 18 Jun 2012 20:08:00 +0000 (22:08 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 20 Jun 2012 10:38:32 +0000 (12:38 +0200)
This also updates qfeatures.h with various other things that have
been neglected. Run $QTSRCDIR/util/scripts/make_qfeatures_dot_h
after changing qfeatures.txt

Task-number: QTBUG-24816

Change-Id: I18b71fcec71efa9cfe3425fb1a7833456ec411b9
Reviewed-by: Tasuku Suzuki <tasuku.suzuki@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
src/corelib/codecs/qiconvcodec.cpp
src/corelib/global/qfeatures.h
src/corelib/global/qfeatures.txt

index 84a8e8d..c7c1d36 100644 (file)
@@ -39,6 +39,8 @@
 **
 ****************************************************************************/
 
+#ifndef QT_NO_ICONV
+
 #include "qiconvcodec_p.h"
 #include "qtextcodec_p.h"
 #include <qlibrary.h>
@@ -553,3 +555,5 @@ iconv_t QIconvCodec::createIconv_t(const char *to, const char *from)
 }
 
 QT_END_NAMESPACE
+
+#endif /* #ifndef QT_NO_ICONV */
index 3267e3e..7d1551a 100644 (file)
 // QImage::createHeuristicMask()
 //#define QT_NO_IMAGE_HEURISTIC_MASK
 
+// Image Text
+//#define QT_NO_IMAGE_TEXT
+
 // QLCDNumber
 //#define QT_NO_LCDNUMBER
 
 #define QT_NO_FILESYSTEMMODEL
 #endif
 
+// File Transfer Protocol
+#if !defined(QT_NO_FTP) && (defined(QT_NO_TEXTDATE))
+#define QT_NO_FTP
+#endif
+
 // Hyper Text Transfer Protocol
 #if !defined(QT_NO_HTTP) && (defined(QT_NO_HOSTINFO))
 #define QT_NO_HTTP
 #endif
 
+// iconv
+#if !defined(QT_NO_ICONV) && (defined(QT_NO_TEXTCODEC))
+#define QT_NO_ICONV
+#endif
+
 // QLibrary
 #if !defined(QT_NO_LIBRARY) && (defined(QT_NO_SETTINGS))
 #define QT_NO_LIBRARY
 #define QT_NO_XMLSTREAMWRITER
 #endif
 
-// Bearer Management
-#if !defined(QT_NO_BEARERMANAGEMENT) && (defined(QT_NO_LIBRARY) || defined(QT_NO_PROPERTIES))
-#define QT_NO_BEARERMANAGEMENT
-#endif
-
 // Context menu
 #if !defined(QT_NO_CONTEXTMENU) && (defined(QT_NO_MENU))
 #define QT_NO_CONTEXTMENU
 #define QT_NO_DBUS
 #endif
 
-// File Transfer Protocol
-#if !defined(QT_NO_FTP) && (defined(QT_NO_TEXTDATE))
-#define QT_NO_FTP
-#endif
-
 // QInputContext
 #if !defined(QT_NO_IM) && (defined(QT_NO_LIBRARY))
 #define QT_NO_IM
 #define QT_NO_STYLE_STYLESHEET
 #endif
 
+// Bearer Management
+#if !defined(QT_NO_BEARERMANAGEMENT) && (defined(QT_NO_LIBRARY) || defined(QT_NO_NETWORKINTERFACE) || defined(QT_NO_PROPERTIES))
+#define QT_NO_BEARERMANAGEMENT
+#endif
+
 // QColorDialog
 #if !defined(QT_NO_COLORDIALOG) && (defined(QT_NO_SPINBOX))
 #define QT_NO_COLORDIALOG
index f0b8b47..564884c 100644 (file)
@@ -960,6 +960,13 @@ Requires: TEXTCODEC
 Name: Big Codecs
 SeeAlso: ???
 
+Feature: ICONV
+Description: Supports conversions between text encodings using iconv.
+Section: Internationalization
+Requires: TEXTCODEC
+Name: iconv
+SeeAlso: ???
+
 # Networking
 
 Feature: HOSTINFO