1
0
Fork 0
VideoPlayer/src/qml/NiconicoButtonLayout.qml

93 lines
2.5 KiB
QML
Raw Normal View History

import QtQuick 2.0
2018-12-22 14:13:53 +00:00
import QtQuick.Controls 2.3
import QtQuick.Dialogs 1.3
2018-12-22 14:26:34 +00:00
import QtQuick.Layouts 1.2
2018-12-22 14:21:42 +00:00
import QtQuick.Window 2.2
import Qt.labs.settings 1.0
import Qt.labs.platform 1.0 as LabsPlatform
import player 1.0
Item {
objectName: "buttonLayout"
id: layout
anchors.fill: controlsBar
PlayPauseButton {
id: playPauseButton
2018-12-03 08:21:45 +00:00
anchors.left: parent.left
anchors.top: parent.top
anchors.bottom: parent.bottom
2018-11-30 16:42:19 +00:00
icon.height: parent.height / 2
icon.width: parent.height / 2
}
VolumeButton {
id: volumeButton
anchors.left: playPauseButton.right
anchors.top: parent.top
anchors.bottom: parent.bottom
2018-11-30 16:42:19 +00:00
icon.height: parent.height / 2
icon.width: parent.height / 2
}
VolumeSlider {
anchors.left: volumeButton.right
anchors.top: parent.top
anchors.bottom: parent.bottom
}
PlaylistPrevButton {
id: playlistPrevButton
anchors.right: backwardButton.left
anchors.top: parent.top
anchors.bottom: parent.bottom
2018-11-30 16:42:19 +00:00
icon.height: parent.height / 2
icon.width: parent.height / 2
}
BackwardButton {
id: backwardButton
anchors.right: timeLabel.left
anchors.top: parent.top
anchors.bottom: parent.bottom
2018-11-30 16:42:19 +00:00
icon.height: parent.height / 2
icon.width: parent.height / 2
}
TimeLabel {
id: timeLabel
anchors.centerIn: parent
anchors.top: parent.top
anchors.bottom: parent.bottom
}
ForwardButton {
id: forwardButton
anchors.left: timeLabel.right
anchors.top: parent.top
anchors.bottom: parent.bottom
2018-11-30 16:42:19 +00:00
icon.height: parent.height / 2
icon.width: parent.height / 2
}
PlaylistNextButton {
id: playlistNextButton
anchors.left: forwardButton.right
anchors.top: parent.top
anchors.bottom: parent.bottom
2018-11-30 16:42:19 +00:00
icon.height: parent.height / 2
icon.width: parent.height / 2
}
FullscreenButton {
id: fullscreenButton
anchors.right: settingsButton.left
anchors.top: parent.top
anchors.bottom: parent.bottom
2018-11-30 16:42:19 +00:00
icon.height: parent.height / 2
icon.width: parent.height / 2
}
SettingsButton {
id: settingsButton
anchors.right: parent.right
anchors.top: parent.top
anchors.bottom: parent.bottom
2018-11-30 16:42:19 +00:00
icon.height: parent.height / 2
icon.width: parent.height / 2
}
}