Port from QStandardPaths::DataLocation to QStandardPaths::AppDataLocation
They are the same on Linux (but DataLocation is deprecated). On Windows this enables the use of the roaming path. NO_CHANGELOG
This commit is contained in:
parent
694c42c440
commit
8563f1f54f
2 changed files with 3 additions and 3 deletions
|
@ -34,7 +34,7 @@
|
|||
<default code="true">QColor(KColorScheme(QPalette::Active, KColorScheme::Window).background().color())</default>
|
||||
</entry>
|
||||
<entry name="CapPath" type="String">
|
||||
<default code="true">QStandardPaths::locate(QStandardPaths::DataLocation, QStringLiteral("cubecap.png"))</default>
|
||||
<default code="true">QStandardPaths::locate(QStandardPaths::AppDataLocation, QStringLiteral("cubecap.png"))</default>
|
||||
</entry>
|
||||
<entry name="TexturedCaps" type="Bool">
|
||||
<default>true</default>
|
||||
|
|
|
@ -267,8 +267,8 @@ void TrackMouseEffect::slotMouseChanged(const QPoint&, const QPoint&,
|
|||
|
||||
void TrackMouseEffect::loadTexture()
|
||||
{
|
||||
QString f[2] = {QStandardPaths::locate(QStandardPaths::DataLocation, QStringLiteral("tm_outer.png")),
|
||||
QStandardPaths::locate(QStandardPaths::DataLocation, QStringLiteral("tm_inner.png"))};
|
||||
QString f[2] = {QStandardPaths::locate(QStandardPaths::AppDataLocation, QStringLiteral("tm_outer.png")),
|
||||
QStandardPaths::locate(QStandardPaths::AppDataLocation, QStringLiteral("tm_inner.png"))};
|
||||
if (f[0].isEmpty() || f[1].isEmpty())
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in a new issue