Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Education
Kig
Commits
253aa346
Commit
253aa346
authored
Feb 02, 2022
by
Laurent Montel
😁
Browse files
Use not deprecated enum
parent
5851b1f0
Pipeline
#131947
passed with stage
in 3 minutes and 19 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
kig/kig_part.cpp
View file @
253aa346
...
...
@@ -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
::
AppLocal
DataLocation
,
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
::
AppLocal
DataLocation
)
);
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
::
AppLocal
DataLocation
)
);
const
QDir
typesDir
(
writeableDataLocation
.
absoluteFilePath
(
QStringLiteral
(
"kig-types"
)
)
);
if
(
typesDir
.
exists
()
)
...
...
kig/main.cpp
View file @
253aa346
...
...
@@ -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
::
AppLocal
DataLocation
)
);
const
QDir
typesDir
(
writeableDataLocation
.
absoluteFilePath
(
QStringLiteral
(
"kig-types"
)
)
);
if
(
!
typesDir
.
exists
()
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment