fhackenberger / ktikz

KtikZ provides a nice user interface for making pictures using TikZ.
Other
350 stars 34 forks source link

Fix QString for no QT_NO_CAST_FROM_ASCII #16

Closed llimeht closed 6 years ago

llimeht commented 6 years ago

When building with Qt 5.9 in Debian and the standard Qt/KDE build helpers, QT_NO_CAST_FROM_ASCII is set, which prevents using ASCII strings directly within the QString constructor.

The attached patch is required to build; the relevant QString constructor is otherwise private. http://doc.qt.io/qt-5/qstring.html#converting-between-8-bit-strings-and-unicode-strings