mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-13 11:32:48 -04:00
Code maintenance for Qt 5:
- Added usage of QUrlQuery - Removed QSound::isAvailable() - Changed Qt::escape() to QString::toHtmlEscaped() - Changed QAbstractItemModel::setSupportedDragActions() to virtual QAbstractItemModel::supportedDragActions() git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6851 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
68922f45a2
commit
f10f029d45
8 changed files with 195 additions and 149 deletions
|
@ -115,7 +115,13 @@ void SoundManager::setEventFilename(const QString &event, const QString &filenam
|
|||
|
||||
void SoundManager::play(const QString &event)
|
||||
{
|
||||
if (isMute() || !QSound::isAvailable() || !eventEnabled(event)) {
|
||||
#if QT_VERSION < QT_VERSION_CHECK (5, 0, 0)
|
||||
if (!QSound::isAvailable()) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (isMute() || !eventEnabled(event)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue