Is this possible? For some projects we'll never translate any of the internal strings, and so not bother with unicode either. So QApplication::translate(x,x,x,QApplication::Unicod eUTF8) seems a little redundant. Is it possible to disable these?
Printable View
Is this possible? For some projects we'll never translate any of the internal strings, and so not bother with unicode either. So QApplication::translate(x,x,x,QApplication::Unicod eUTF8) seems a little redundant. Is it possible to disable these?
What is the problem you are trying to solve?
Further down the line when I need to squash the file as much as possible, I'd like to disable unicode, but I'm guessing thats going to be difficult with the designer creating such source code.
See which features can be disabled in qfeatures.h and qconfig.h.
But I doubt that unicode is in one of these because it is a real core feature.
[oops, please delete]
According to the code, it can be disabled, and its seems configurable as to how featureless(featurefull?) you want it to be:
Code:
#ifdef QT_NO_TRANSLATION // Simple versions const char *, Encoding encoding) { #ifndef QT_NO_TEXTCODEC if (encoding == UnicodeUTF8) #else Q_UNUSED(encoding) #endif }
But, looking at that, it'll just return whatever you pass into it, so maybe it'll "just work" after all.