summaryrefslogtreecommitdiffstats
path: root/src/qt-test.cpp
diff options
context:
space:
mode:
authorNikos Chantziaras <realnc@arcor.de>2011-06-28 19:16:19 (GMT)
committerNikos Chantziaras <realnc@arcor.de>2011-06-28 19:16:19 (GMT)
commit788de552d0b424024f0c4ba0b28ccf845428f799 (patch)
treee07987cab2dc73f6ca5ca97ba02f96126c5d5300 /src/qt-test.cpp
parentb78b6fa5308d889209d34ba30d071f0002c669b9 (diff)
downloadmxe-788de552d0b424024f0c4ba0b28ccf845428f799.zip
mxe-788de552d0b424024f0c4ba0b28ccf845428f799.tar.gz
mxe-788de552d0b424024f0c4ba0b28ccf845428f799.tar.bz2
package qt: build with -no-iconv
mingw-cross-env should build Qt with "-no-iconv". That way, the programmer will get linker errors when trying to build his application. That way, he will know that he *must* include the text codec plugins.
Diffstat (limited to 'src/qt-test.cpp')
-rw-r--r--src/qt-test.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qt-test.cpp b/src/qt-test.cpp
index 6f3797a..b29c6e4 100644
--- a/src/qt-test.cpp
+++ b/src/qt-test.cpp
@@ -2,6 +2,7 @@
/* See doc/index.html for further information. */
#include <QApplication>
+#include <QtPlugin>
#include "ui_qt-test.h"
#ifdef Q_OS_AIX
@@ -144,6 +145,11 @@
#error "Q_WS_WIN is not defined"
#endif
+Q_IMPORT_PLUGIN(qcncodecs)
+Q_IMPORT_PLUGIN(qjpcodecs)
+Q_IMPORT_PLUGIN(qtwcodecs)
+Q_IMPORT_PLUGIN(qkrcodecs)
+
int main(int argc, char *argv[])
{
QApplication a(argc, argv);