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

93 lines
2.5 KiB
QML
Raw Normal View History

import QtQuick 2.0
import QtQuick.Controls 2.4
import QtQuick.Dialogs 1.3
import QtQuick.Layouts 1.11
import QtQuick.Window 2.11
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
}
}