1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-27 07:44:34 +02:00

qt5 support for snore

This commit is contained in:
Patrick von Reth
2014-04-04 10:55:08 +02:00
parent 7c8cd78169
commit 1b85b9c0d6
3 changed files with 18 additions and 36 deletions

View File

@@ -33,8 +33,20 @@
#include <QApplication>
#include <QImage>
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
namespace Qt
{
inline QString escape( const QString &x )
{
x.toHtmlEscaped();
}
}
#else
// QTextDocument provides Qt::escape()
#include <QTextDocument>
#endif
namespace Tomahawk
{