blob: 3a4153fa222d1af6bb87d5be367951fec045f7cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import QtQuick 2.0
Row {
id: root
spacing: controlBar.margin
property bool isPlaybackEnabled: false
property bool isPlaying: false
signal playButtonPressed()
ImageButton {
id: playButton
enabled: isPlaybackEnabled
imageSource: !isPlaying ? "images/PlayButton.png" : "images/PauseButton.png"
anchors.verticalCenter: root.verticalCenter
onClicked: {
playButtonPressed();
}
}
}
|