Move settings into a separate window, prepare YouAds component for a native rewrite
This commit is contained in:
15
Main.qml
15
Main.qml
@@ -2,24 +2,15 @@ import QtQuick 6.8
|
||||
import QtQuick.Controls 6.8
|
||||
import QtQuick.Controls.Basic 6.8
|
||||
import QtQuick.Layouts 6.8
|
||||
import QtQuick.Dialogs 6.10
|
||||
|
||||
import QYRComponents 1.0
|
||||
|
||||
ApplicationWindow {
|
||||
id: root
|
||||
width: 1280
|
||||
height: 800
|
||||
title: qsTr("QYouRadio")
|
||||
|
||||
Dialog {
|
||||
id: dialogSettings
|
||||
// modality: Qt.WindowModal
|
||||
popupType: Popup.Window
|
||||
title: qsTr("Settings")
|
||||
|
||||
ViewSettings {}
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
anchors.fill: parent
|
||||
anchors.margins: 10
|
||||
@@ -64,7 +55,9 @@ ApplicationWindow {
|
||||
Button {
|
||||
text: "S"
|
||||
onClicked: function() {
|
||||
dialogSettings.open()
|
||||
var component = Qt.createComponent("ViewSettings.qml")
|
||||
var window = component.createObject(root)
|
||||
window.show()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user