Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
9
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Elias Steurer
ScreenPlay
Commits
c823c525
Commit
c823c525
authored
Jan 21, 2021
by
Elias Steurer
🇩🇪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix enum names and casings
parent
5a8583cd
Pipeline
#245084164
failed with stages
in 8 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
ScreenPlay/src/installedlistmodel.cpp
ScreenPlay/src/installedlistmodel.cpp
+1
-0
ScreenPlayWallpaper/src/basewindow.cpp
ScreenPlayWallpaper/src/basewindow.cpp
+6
-6
No files found.
ScreenPlay/src/installedlistmodel.cpp
View file @
c823c525
...
...
@@ -175,6 +175,7 @@ void InstalledListModel::loadInstalledContent()
continue
;
if
(
GlobalVariables
::
getAvailableTypes
().
contains
(
obj
->
value
(
"type"
).
toString
()))
{
if
(
GlobalVariables
::
getAvailableTypes
().
contains
(
obj
->
value
(
"type"
).
toString
(),
Qt
::
CaseInsensitive
))
{
emit
addInstalledItem
(
*
obj
,
item
.
baseName
());
}
...
...
ScreenPlayWallpaper/src/basewindow.cpp
View file @
c823c525
...
...
@@ -189,27 +189,27 @@ QString BaseWindow::loadFromFile(const QString& filename)
BaseWindow
::
WallpaperType
BaseWindow
::
parseWallpaperType
(
const
QString
&
type
)
{
if
(
type
.
contains
(
"
V
ideoWallpaper"
,
Qt
::
CaseInsensitive
))
{
if
(
type
.
contains
(
"
v
ideoWallpaper"
,
Qt
::
CaseInsensitive
))
{
return
(
BaseWindow
::
WallpaperType
::
Video
);
}
if
(
type
.
contains
(
"
Q
mlWallpaper"
,
Qt
::
CaseInsensitive
))
{
if
(
type
.
contains
(
"
q
mlWallpaper"
,
Qt
::
CaseInsensitive
))
{
return
(
BaseWindow
::
WallpaperType
::
Qml
);
}
if
(
type
.
contains
(
"
H
tmlWallpaper"
,
Qt
::
CaseInsensitive
))
{
if
(
type
.
contains
(
"
h
tmlWallpaper"
,
Qt
::
CaseInsensitive
))
{
return
(
BaseWindow
::
WallpaperType
::
Html
);
}
if
(
type
.
contains
(
"
G
odotWallpaper"
,
Qt
::
CaseInsensitive
))
{
if
(
type
.
contains
(
"
g
odotWallpaper"
,
Qt
::
CaseInsensitive
))
{
return
(
BaseWindow
::
WallpaperType
::
Godot
);
}
if
(
type
.
contains
(
"
G
ifWallpaper"
,
Qt
::
CaseInsensitive
))
{
if
(
type
.
contains
(
"
g
ifWallpaper"
,
Qt
::
CaseInsensitive
))
{
return
(
BaseWindow
::
WallpaperType
::
Gif
);
}
if
(
type
.
contains
(
"
W
ebsiteWallpaper"
,
Qt
::
CaseInsensitive
))
{
if
(
type
.
contains
(
"
w
ebsiteWallpaper"
,
Qt
::
CaseInsensitive
))
{
return
(
BaseWindow
::
WallpaperType
::
Website
);
}
...
...
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