* \note consider conversion via usual char-by-char for loop to avoid UTF16->UTF8->UTF16
* conversion happening in the background
*/
+
+#if QT_VERSION >= 0x040000
+#define QStringToTString(s) TagLib::String(s.toUtf8().data(), TagLib::String::UTF8)
+#else
#define QStringToTString(s) TagLib::String(s.utf8().data(), TagLib::String::UTF8)
+#endif
/*!
* \relates TagLib::String
* conversion happening in the background
*
*/
+
#define TStringToQString(s) QString::fromUtf8(s.toCString(true))
namespace TagLib {