Fix build on macOS and Windows

This commit is contained in:
Victor Tran 2019-06-15 00:51:42 +10:00
parent 95f9cf77dd
commit 8975be9b41

View file

@ -29,6 +29,10 @@ tSystemSound::tSystemSound(QObject *parent) : QObject(parent)
}
tSystemSound* tSystemSound::play(QString soundName) {
return play(soundName, 1);
}
#ifdef T_OS_UNIX_NOT_MAC
QSettings::Format desktopFormat = QSettings::InvalidFormat;
@ -116,10 +120,6 @@ tSystemSound::tSystemSound(QObject *parent) : QObject(parent)
return "";
}
tSystemSound* tSystemSound::play(QString soundName) {
return play(soundName, 1);
}
tSystemSound* tSystemSound::play(QString soundName, qreal volume) {
QString soundPath = soundLocation(soundName);
if (soundPath != "") {