Commit ea50133c authored by Camilo Higuita's avatar Camilo Higuita

table delegates now are swipeable and have quick qction buttons

parent a51d2d2e
breeze-icons @ a54611fa
Subproject commit dc7909ded2d29e27956f6df0a61fc10d890ba2c6
Subproject commit a54611fafe2c47d2f2ff2bbe21dbcf234a855ec2
<?xml version="1.0" encoding="UTF-8"?>
<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 46.2 (44496) - http://www.bohemiancoding.com/sketch -->
<title>playing_normal</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="playing_normal" fill-rule="nonzero" fill="#303030">
<path d="M12,6 L13,6 L13,19 L12,19 L12,6 Z M8,11 L9,11 L9,19 L8,19 L8,11 Z M16,8 L17,8 L17,19 L16,19 L16,8 Z M20,13 L21,13 L21,19 L20,19 L20,13 Z M4,16 L5,16 L5,19 L4,19 L4,16 Z" id="Combined-Shape"></path>
</g>
</g>
</svg>
\ No newline at end of file
......@@ -93,5 +93,6 @@
<file>icons/Luv/actions/22/view-right-new.svg</file>
<file>icons/Luv/actions/22/visibility.svg</file>
<file>icons/Luv/actions/22/window-close.svg</file>
<file>icons/Luv/actions/22/handle-left.svg</file>
</qresource>
</RCC>
......@@ -368,7 +368,7 @@ Kirigami.ApplicationWindow
{
id: playbackControls
position: ToolBar.Footer
height: toolBarHeight
height: toolBarHeight + space.medium
width: root.width
visible: true
......@@ -414,7 +414,6 @@ Kirigami.ApplicationWindow
Slider
{
id: progressBar
height: iconSizes.big
width: parent.width
anchors.left: parent.left
......
#ifndef LASTFM_H
#define LASTFM_H
#ifndef LASTFMSERVICE_H
#define LASTFMSERVICE_H
#include <QObject>
#include "../pulpo.h"
......
......@@ -241,6 +241,7 @@ Page
headerBarVisible: true
headerBarExit: true
headerBarExitIcon: "edit-clear"
headerBarTitle: "YouTube"
holder.message: "No YouTube results!"
coverArtVisible: true
trackDuration: true
......
......@@ -21,7 +21,7 @@ Page
ToolBar
{
id: headerRoot
width: parent.width
width: parent.width
Layout.fillWidth: true
focus: true
......@@ -45,7 +45,7 @@ Page
Layout.fillHeight : true
Layout.fillWidth : true
Layout.alignment : Qt.AlignCenter
color: textColor
elide : Text.ElideRight
font.bold : false
font.pointSize: fontSizes.big
......
......@@ -19,7 +19,7 @@ BabeList
property bool trackNumberVisible
property bool quickPlayVisible : true
property bool coverArtVisible : false
property bool menuItemVisible : isMobile
property bool menuItemVisible : true
property bool trackDuration
property bool trackRating
property bool allowMenu: true
......@@ -88,6 +88,13 @@ BabeList
id: contextMenu
}
list.highlightFollowsCurrentItem: false
list.highlightMoveDuration: 0
list.highlight: Rectangle
{
}
ListModel { id: listModel }
model: listModel
......@@ -106,39 +113,34 @@ BabeList
trackDurationVisible : trackDuration
trackRatingVisible : trackRating
menuItem: menuItemVisible
color: babeTableRoot.labelColor
bgColor: headerBarColor
remoteArtwork: isArtworkRemote
playingIndicator: showIndicator
Connections
{
target: delegate
onPressAndHold: if(isMobile && allowMenu) openItemMenu(index)
onRightClicked: if(allowMenu) openItemMenu(index)
onPressAndHold: if(isMobile && allowMenu) openItemMenu(index)
onRightClicked: if(allowMenu) openItemMenu(index)
onClicked:
{
currentIndex = index
if(root.isMobile)
rowClicked(index)
onClicked:
{
currentIndex = index
if(root.isMobile)
rowClicked(index)
}
}
onDoubleClicked:
{
if(!root.isMobile)
rowClicked(index)
}
onDoubleClicked:
{
if(!root.isMobile)
rowClicked(index)
}
onPlay: quickPlayTrack(index)
onPlay: quickPlayTrack(index)
onArtworkCoverDoubleClicked: artworkDoubleClicked(index)
onArtworkCoverDoubleClicked: artworkDoubleClicked(index)
}
}
function openItemMenu(index)
{
currentIndex = index
......
This diff is collapsed.
......@@ -120,7 +120,7 @@ Item
}
hoverEnabled: !isMobile
hoverEnabled: true
onEntered: isHovered = true
onExited: isHovered = false
}
......
......@@ -15,7 +15,6 @@ ListView
highlightFollowsCurrentItem: true
highlightMoveDuration: 0
snapMode: ListView.SnapOneItem
cacheBuffer: width
model : ListModel{}
onMovementEnded:
......@@ -34,7 +33,7 @@ ListView
albumRadius : 0
showLabels: false
showIndicator: true
hideRepeated: true
hideRepeated: false
anchors.verticalCenter: parent.verticalCenter
// increaseCurrentItem : true
......
......@@ -43,12 +43,12 @@ Item
onSaveToClicked: table.saveList()
}
// Rectangle
// {
// anchors.fill: parent
// color: darkDarkColor
// z: -999
// }
// Rectangle
// {
// anchors.fill: parent
// color: darkDarkColor
// z: -999
// }
GridLayout
{
......@@ -95,7 +95,7 @@ Item
radius: 100
transparentBorder: false
cached: true
}
}
}
Item
......@@ -129,13 +129,13 @@ Item
leftPadding: 0
rightPadding: 0
// Rectangle
// {
// anchors.fill: parent
// color: darkDarkColor
// opacity: opacityLevel
// z: -999
// }
// Rectangle
// {
// anchors.fill: parent
// color: darkDarkColor
// opacity: opacityLevel
// z: -999
// }
MouseArea
{
......@@ -175,7 +175,7 @@ Item
{
id: infoBtn
anchors.centerIn: parent
// iconColor: darkTextColor
// iconColor: darkTextColor
iconName: stackView.currentItem === table ? "documentinfo" : "go-previous"
onClicked:
{
......@@ -191,18 +191,18 @@ Item
}
}
Item
{
Layout.fillWidth: true
// Item
// {
// Layout.fillWidth: true
BabeButton
{
anchors.centerIn: parent
// iconColor: darkTextColor
iconName: "headphones"
onClicked: goFocusMode()
}
}
// BabeButton
// {
// anchors.centerIn: parent
//// iconColor: darkTextColor
// iconName: "headphones"
// onClicked: goFocusMode()
// }
// }
Item
{
......@@ -211,7 +211,7 @@ Item
BabeButton
{
anchors.centerIn: parent
// iconColor: darkTextColor
// iconColor: darkTextColor
iconName: "videoclip-amarok"
onClicked:
{
......@@ -233,7 +233,7 @@ Item
Layout.fillWidth: true
iconName: "overflow-menu"
onClicked: isMobile ? playlistMenu.open() : playlistMenu.popup()
// iconColor: darkTextColor
// iconColor: darkTextColor
}
}
......@@ -309,19 +309,10 @@ Item
coverArtVisible: true
trackRating: true
showIndicator : true
menuItemVisible: false
holder.message : "<h2>Meh!</h2><p>Start putting together your playlist!</p>"
holder.emoji: "qrc:/assets/face-sleeping.png"
// labelColor: darkTextColor
// Rectangle
// {
// anchors.fill: parent
// z: -999
// color: darkDarkColor
// }
onRowClicked: play(index)
onArtworkDoubleClicked: contextMenu.babeIt(index)
......
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