Commit 253aa346 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use not deprecated enum

parent 5851b1f0
Pipeline #131947 passed with stage
in 3 minutes and 19 seconds
......@@ -63,7 +63,7 @@ static const QString typesFile = QStringLiteral("macros.kigt");
QStringList getDataFiles( const QString & folder )
{
QStringList dataFiles;
const QStringList allFolders = QStandardPaths::locateAll( QStandardPaths::DataLocation, folder, QStandardPaths::LocateDirectory );
const QStringList allFolders = QStandardPaths::locateAll( QStandardPaths::AppLocalDataLocation, folder, QStandardPaths::LocateDirectory );
for( const QString & folderPath : allFolders )
{
......@@ -1102,7 +1102,7 @@ void KigPart::coordSystemChanged( int id )
void KigPart::saveTypes()
{
const QDir writeableDataLocation ( QStandardPaths::writableLocation( QStandardPaths::DataLocation ) );
const QDir writeableDataLocation ( QStandardPaths::writableLocation( QStandardPaths::AppLocalDataLocation ) );
const QDir typesDir( writeableDataLocation.absoluteFilePath( QStringLiteral("kig-types") ) );
if ( !typesDir.exists() )
......@@ -1122,7 +1122,7 @@ void KigPart::saveTypes()
void KigPart::loadTypes()
{
const QDir writeableDataLocation ( QStandardPaths::writableLocation( QStandardPaths::DataLocation ) );
const QDir writeableDataLocation ( QStandardPaths::writableLocation( QStandardPaths::AppLocalDataLocation ) );
const QDir typesDir( writeableDataLocation.absoluteFilePath( QStringLiteral("kig-types") ) );
if ( typesDir.exists() )
......
......@@ -54,7 +54,7 @@ static void dataMigration()
if ( !file.isEmpty() )
{
QFile macros( file );
const QDir writeableDataLocation ( QStandardPaths::writableLocation( QStandardPaths::DataLocation ) );
const QDir writeableDataLocation ( QStandardPaths::writableLocation( QStandardPaths::AppLocalDataLocation ) );
const QDir typesDir( writeableDataLocation.absoluteFilePath( QStringLiteral("kig-types") ) );
if ( !typesDir.exists() )
......
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