Skip to content
Snippets Groups Projects
Commit 1f73ab05 authored by Rohan Rajpal's avatar Rohan Rajpal Committed by Jean-Baptiste Kempf
Browse files

qml: Add miniplayer toolbar to Editor


Add the miniplayer tab and toolbar to the editor

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 651dcac0
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,12 @@ Rectangle{
index: 0
text: qsTr("Mainplayer")
}
EditorTabButton {
id: miniPlayerTab
index: 1
text: qsTr("Miniplayer")
}
}
Rectangle{
Layout.preferredHeight: VLCStyle.heightBar_large
......@@ -59,6 +65,14 @@ Rectangle{
Layout.fillWidth: true
model: playerControlBarModel
}
EditorDNDView {
id : miniPlayerBtnDND
Layout.preferredHeight: VLCStyle.heightBar_large
Layout.fillWidth: true
model: miniPlayerModel
}
}
}
......@@ -111,8 +125,8 @@ Rectangle{
}
function getConfig(){
return playerControlBarModel.getConfig()
function getProfileConfig(){
return playerControlBarModel.getConfig() + "|" + miniPlayerModel.getConfig()
}
Connections{
......@@ -120,8 +134,13 @@ Rectangle{
onUpdatePlayerModel: {
if (toolbarName == "MainPlayerToolbar")
playerControlBarModel.reloadConfig(config)
else
miniPlayerModel.reloadConfig(config)
}
onSaveConfig: {
miniPlayerModel.saveConfig()
playerControlBarModel.saveConfig()
}
onSaveConfig: playerControlBarModel.saveConfig()
}
PlayerControlBarModel {
......@@ -132,6 +151,13 @@ Rectangle{
Component.onCompleted: reloadModel()
}
PlayerControlBarModel {
id: miniPlayerModel
mainCtx: mainctx
configName: "MiniPlayerToolbar"
Component.onCompleted: reloadModel()
}
Player.ControlButtons{
id: controlButtons
}
......
......@@ -54,6 +54,7 @@ GridView{
var pos = this.mapToGlobal( mouseX, mouseY)
buttonDragItem.updatePos(pos.x, pos.y)
playerBtnDND.addBtn = true
miniPlayerBtnDND.addBtn = true
}
onReleased: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment