You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

78 lines
1.4 KiB

import QtQuick 2.12
import QtQuick.Window 2.12
import Qt.labs.platform 1.1
import QtMultimedia 5.15
Window {
title: qsTr("Tangra Mega Rock")
id: mainWindow
visible: true
width: 640
maximumWidth: 640
height: 480
maximumHeight: 480
flags: Qt.FramelessWindowHint
FontLoader { id: mainfont; source: "Resources/KellySlab-Regular.ttf" }
Connections {
target: tangraTray
function onSignalIconActivated() {
mainWindow.show()
mainWindow.raise()
mainWindow.requestActivate()
}
function onSignalQuit(){
Qt.quit()
}
}
AboutProgram {
id: aboutDialog
}
AudioPlayer {
id: tangraplay
}
function mediaControl() {
if (tangraplay.playbackState != Audio.PlayingState) {
tangraplay.play();
}
else {
tangraplay.stop();
}
return 0;
}
Image {
id: background
anchors.fill: parent
visible: true
fillMode: Image.Tile
source: "Resources/dark_leather.png"
MenuToolbar {}
PgLive {
id: pgLive1
}
// PgNews {
// id: pgNews1
// visible: false
// }
// Item {
// Component {
// id: myComp
// }
// Loader { id: contentLoader }
// }
}
}