Skip to content

Commit

Permalink
Merge pull request #1202 from AleziaKurdis/createApp_QmlPasteSoundUrl
Browse files Browse the repository at this point in the history
Create App.: Add "Paste" button for NewSoundDialog QML.
  • Loading branch information
ksuprynowicz authored Nov 3, 2024
2 parents ba2e6d9 + 4d5a6e0 commit 362e8b0
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions scripts/system/create/qml/NewSoundDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// NewSoundDialog.qml
// qml/hifi
//
// Created by HifiExperiments on 4/7/24
// Created by HifiExperiments on April 7th, 2024
// Copyright 2024 Overte e.V.
//
// Distributed under the Apache License, Version 2.0.
Expand Down Expand Up @@ -53,17 +53,32 @@ Rectangle {

Text {
id: text1
text: qsTr("Sound URL")
text: qsTr("Sound URL <i></i>&nbsp;&nbsp;&nbsp;")
color: "#ffffff"
font.pixelSize: 12
}

Button {
id: pasteBtn
text: "Paste"
font.pixelSize: 11
height: 16
width: 40
radius: 4
anchors.top: text1.top
anchors.left: text1.right
anchors.bottom: text1.bottom
onClicked: {
soundURL.paste()
}
}

TextInput {
id: soundURL
height: 20
text: qsTr("")
color: "white"
anchors.top: text1.bottom
anchors.top: pasteBtn.bottom
anchors.topMargin: 5
anchors.left: parent.left
anchors.leftMargin: 0
Expand Down

0 comments on commit 362e8b0

Please sign in to comment.