Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
VVave
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cah fofpai
VVave
Commits
ca944dae
Commit
ca944dae
authored
Oct 23, 2019
by
camilo higuita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes on models and better missing dialog message
parent
151658d7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
45 deletions
+21
-45
db/collectionDB.cpp
db/collectionDB.cpp
+6
-6
main.qml
main.qml
+4
-5
models/albums/albumsmodel.cpp
models/albums/albumsmodel.cpp
+1
-1
utils/Player.js
utils/Player.js
+1
-1
view_models/BabeGrid/BabeAlbum.qml
view_models/BabeGrid/BabeAlbum.qml
+9
-32
No files found.
db/collectionDB.cpp
View file @
ca944dae
...
...
@@ -26,12 +26,12 @@ using namespace BAE;
CollectionDB
::
CollectionDB
(
QObject
*
parent
)
:
QObject
(
parent
)
{
QObject
::
connect
(
qApp
,
&
QCoreApplication
::
aboutToQuit
,
[
this
]()
{
this
->
m_db
.
close
();
this
->
instance
->
deleteLater
();
this
->
instance
=
nullptr
;
});
//
QObject::connect(qApp, &QCoreApplication::aboutToQuit, [this]()
//
{
//
this->m_db.close();
//
this->instance->deleteLater();
//
this->instance = nullptr;
//
});
this
->
name
=
QUuid
::
createUuid
().
toString
();
...
...
main.qml
View file @
ca944dae
...
...
@@ -110,12 +110,11 @@ Maui.ApplicationWindow
onClosing
:
Player
.
savePlaylist
()
onMissingAlert
:
{
var
message
=
track
.
title
+
"
by
"
+
track
.
artist
+
"
is missing
"
var
messageBody
=
"
Do you want to remove it from your collection?
"
notify
(
"
alert
"
,
message
,
messageBody
,
function
()
var
message
=
qsTr
(
"
Missing file...
"
)
var
messageBody
=
track
.
title
+
"
by
"
+
track
.
artist
+
"
is missing.
\n
Do you want to remove it from your collection?
"
notify
(
"
dialog-question
"
,
message
,
messageBody
,
function
()
{
// bae.removeTrack(currentTrack.url) //todo
mainPlaylist
.
table
.
model
.
remove
(
mainPlaylist
.
table
.
currentIndex
)
mainPlaylist
.
list
.
remove
(
mainPlaylist
.
table
.
currentIndex
)
})
}
...
...
models/albums/albumsmodel.cpp
View file @
ca944dae
...
...
@@ -118,7 +118,7 @@ void AlbumsModel::setList()
}
});
this
->
fetchInformation
();
//
this->fetchInformation();
this
->
sortList
();
emit
this
->
postListChanged
();
}
...
...
utils/Player.js
View file @
ca944dae
...
...
@@ -8,7 +8,7 @@ function playTrack(index)
if
(
typeof
(
currentTrack
)
===
"
undefined
"
)
return
if
(
Maui
.
FM
.
fileExists
(
currentTrack
.
url
))
if
(
Maui
.
FM
.
fileExists
(
"
pp
"
+
currentTrack
.
url
))
{
player
.
url
=
currentTrack
.
url
;
player
.
playing
=
true
...
...
view_models/BabeGrid/BabeAlbum.qml
View file @
ca944dae
...
...
@@ -140,21 +140,7 @@ Maui.ItemDelegate
Kirigami.Theme.backgroundColor
:
"
#333
"
;
Kirigami.Theme.textColor
:
"
#fafafa
"
LinearGradient
{
id
:
mask
anchors.fill
:
parent
start
:
Qt
.
point
(
0
,
0
)
end
:
Qt
.
point
(
0
,
parent
.
height
)
gradient
:
Gradient
{
GradientStop
{
position
:
0.2
;
color
:
"
transparent
"
}
GradientStop
{
position
:
0.5
;
color
:
_labelBg
.
Kirigami
.
Theme
.
backgroundColor
}
}
visible
:
false
}
MaskedBlur
FastBlur
{
id
:
blur
anchors.fill
:
parent
...
...
@@ -166,10 +152,14 @@ Maui.ItemDelegate
_labelBg
.
width
,
_labelBg
.
height
)
}
maskSource
:
mask
radius
:
16
samples
:
24
radius
:
50
Rectangle
{
anchors.fill
:
parent
color
:
_labelBg
.
Kirigami
.
Theme
.
backgroundColor
opacity
:
0.4
}
layer.enabled
:
true
layer.effect
:
OpacityMask
...
...
@@ -194,20 +184,7 @@ Maui.ItemDelegate
}
}
}
}
LinearGradient
{
anchors.fill
:
parent
start
:
Qt
.
point
(
0
,
0
)
end
:
Qt
.
point
(
0
,
parent
.
height
)
opacity
:
control
.
hovered
?
1
:
0.9
gradient
:
Gradient
{
GradientStop
{
position
:
0.1
;
color
:
"
transparent
"
}
GradientStop
{
position
:
1
;
color
:
_labelBg
.
Kirigami
.
Theme
.
backgroundColor
}
}
}
}
}
ColumnLayout
...
...
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