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
Artikulate
Commits
ad00c559
Commit
ad00c559
authored
Feb 02, 2022
by
Laurent Montel
😁
Browse files
Use not deprecated enum
parent
ab06b824
Pipeline
#131948
passed with stage
in 52 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
liblearnerprofile/src/learner_p.h
View file @
ad00c559
...
...
@@ -37,7 +37,7 @@ public:
}
QString
imageDirectory
()
const
{
return
QStandardPaths
::
writableLocation
(
QStandardPaths
::
DataLocation
)
+
QLatin1Char
(
'/'
)
+
QStringLiteral
(
"images"
)
+
QLatin1Char
(
'/'
);
return
QStandardPaths
::
writableLocation
(
QStandardPaths
::
AppLocal
DataLocation
)
+
QLatin1Char
(
'/'
)
+
QStringLiteral
(
"images"
)
+
QLatin1Char
(
'/'
);
}
QString
m_name
;
...
...
liblearnerprofile/src/storage.cpp
View file @
ad00c559
...
...
@@ -21,7 +21,7 @@ using namespace LearnerProfile;
Storage
::
Storage
(
QObject
*
parent
)
:
QObject
(
parent
)
,
m_databasePath
(
QStandardPaths
::
writableLocation
(
QStandardPaths
::
DataLocation
)
+
QLatin1Char
(
'/'
)
+
"learnerdata.db"
)
,
m_databasePath
(
QStandardPaths
::
writableLocation
(
QStandardPaths
::
AppLocal
DataLocation
)
+
QLatin1Char
(
'/'
)
+
"learnerdata.db"
)
,
m_errorMessage
(
QString
())
{
}
...
...
@@ -515,9 +515,9 @@ QSqlDatabase Storage::database()
}
// create data directory if it does not exist
QDir
dir
=
QDir
(
QStandardPaths
::
writableLocation
(
QStandardPaths
::
DataLocation
));
QDir
dir
=
QDir
(
QStandardPaths
::
writableLocation
(
QStandardPaths
::
AppLocal
DataLocation
));
if
(
!
dir
.
exists
())
{
dir
.
mkpath
(
QStandardPaths
::
writableLocation
(
QStandardPaths
::
DataLocation
));
dir
.
mkpath
(
QStandardPaths
::
writableLocation
(
QStandardPaths
::
AppLocal
DataLocation
));
}
qCDebug
(
LIBLEARNER_LOG
)
<<
"Database path: "
<<
m_databasePath
;
...
...
src/core/resourcerepository.cpp
View file @
ad00c559
...
...
@@ -13,7 +13,7 @@
#include <QStandardPaths>
ResourceRepository
::
ResourceRepository
()
:
ResourceRepository
(
QUrl
::
fromLocalFile
(
QStandardPaths
::
standardLocations
(
QStandardPaths
::
DataLocation
).
constFirst
()
+
QStringLiteral
(
"/courses/"
)))
:
ResourceRepository
(
QUrl
::
fromLocalFile
(
QStandardPaths
::
standardLocations
(
QStandardPaths
::
AppLocal
DataLocation
).
constFirst
()
+
QStringLiteral
(
"/courses/"
)))
{
}
...
...
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