MacOS: Replace qrencode executable with dynamically loaded libqrencode.

This commit is contained in:
Felix Kauselmann
2018-03-30 14:40:54 +02:00
parent d9d94b103a
commit 39a626625d
3 changed files with 10 additions and 23 deletions

View File

@ -321,7 +321,11 @@ void ServerConfigDialog::updatePort()
QrEncoder::QrEncoder()
{
#ifdef Q_OS_MACOS
QLibrary encoder(QCoreApplication::applicationDirPath() + "/utils/libqrencode.dylib");
#else
QLibrary encoder("qrencode");
#endif
QRcode_encodeString8bit = (_QRcode_encodeString8bit) encoder.resolve("QRcode_encodeString8bit");
QRcode_free = (_QRcode_free) encoder.resolve("QRcode_free");
}