Skip to content

Commit

Permalink
PanelSettings: Add 'autoPlay' button.
Browse files Browse the repository at this point in the history
PanelSettings: Update 'quality' implementation
  • Loading branch information
3unjee committed Jun 4, 2019
1 parent e44bbb9 commit 6ba547b
Show file tree
Hide file tree
Showing 7 changed files with 120 additions and 253 deletions.
4 changes: 4 additions & 0 deletions content/PageSubtitles.qml
Expand Up @@ -197,6 +197,8 @@ Item
pShowSearch();

pApplyQuery();

lineEdit.focus();
}
else pHideSearch();
}
Expand Down Expand Up @@ -292,6 +294,8 @@ Item
if (controllerPlaylist.urlIsVideo(title))
{
pApplyUrl(title);

lineEdit.selectAll();
}
}
else if (pSearch)
Expand Down
28 changes: 0 additions & 28 deletions content/PanelApplication.qml
Expand Up @@ -43,15 +43,8 @@ Panel
// Settings
//---------------------------------------------------------------------------------------------

//#QT_4
anchors.right : parent.left
anchors.bottom: barWindow.bottom
//#ELSE
// FIXME Qt5.12: Panel size changes for no reason when hidden.
x: -width

y: barWindow.y + barWindow.height - height
//#END

width: st.dp320 + borderRight

Expand All @@ -74,7 +67,6 @@ Panel
{
name: "visible"; when: isExposed

//#QT_4
AnchorChanges
{
target: panelApplication
Expand All @@ -85,38 +77,18 @@ Panel
anchors.top : barWindow.bottom
anchors.bottom: undefined
}
//#ELSE
PropertyChanges
{
target: panelApplication

x: 0
y: barWindow.y + barWindow.height
}
//#END
}

transitions: Transition
{
SequentialAnimation
{
//#QT_4
AnchorAnimation
{
duration: st.duration_fast

easing.type: st.easing
}
//#ELSE
NumberAnimation
{
properties: "x, y"

duration: st.duration_fast

easing.type: st.easing
}
//#END

ScriptAction
{
Expand Down
2 changes: 2 additions & 0 deletions content/PanelPlayer.qml
Expand Up @@ -231,6 +231,8 @@ Item

player.hook: core.createHook(player.backend)

player.autoPlay: local.autoPlay

player.shuffle: (player.isPlaying) ? local.shuffle : false

playerMouseArea.anchors.leftMargin: (gui.isExpanded) ? st.dp16 : 0
Expand Down

0 comments on commit 6ba547b

Please sign in to comment.