Commit be788d07 authored by Julian Helfferich's avatar Julian Helfferich

Use AppDataLocation instead of DataLocation

QStandardPaths::DataLocation is deprecated. It is recommended to use
QStandardPaths::AppDataLocation instead.
parent b8936ab6
......@@ -21,11 +21,11 @@
KBlocksSound::KBlocksSound()
{
m_blockFallSound = new KgSound(QStandardPaths::locate(
QStandardPaths::DataLocation, "sounds/block-fall.ogg"));
QStandardPaths::AppDataLocation, "sounds/block-fall.ogg"));
m_blockMoveSound = new KgSound(QStandardPaths::locate(
QStandardPaths::DataLocation, "sounds/block-move.ogg"));
QStandardPaths::AppDataLocation, "sounds/block-move.ogg"));
m_blockRemoveSound = new KgSound(QStandardPaths::locate(
QStandardPaths::DataLocation, "sounds/block-remove.ogg"));
QStandardPaths::AppDataLocation, "sounds/block-remove.ogg"));
setSoundsEnabled(Settings::sounds());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment