Fixed tone on IOS
Fixed bug that made the button getting out of the screen if the screen was too thin
This commit is contained in:
parent
5058c42845
commit
04293363e2
2 changed files with 7 additions and 4 deletions
8
main.qml
8
main.qml
|
@ -80,7 +80,7 @@ Window {
|
|||
}
|
||||
|
||||
height: parent.height - (parent.height * 0.5)
|
||||
width: height
|
||||
width: height > parent.width ? parent.width * 0.8:height
|
||||
color: "white"
|
||||
border.color: "grey"
|
||||
border.width: 1
|
||||
|
@ -151,16 +151,16 @@ Window {
|
|||
]
|
||||
transitions: [
|
||||
Transition {
|
||||
NumberAnimation { properties: "height,bottomMargin,font.pixelSize"; easing.type: Easing.InOutQuad; duration: 700 }
|
||||
NumberAnimation { properties: "height,width,bottomMargin,font.pixelSize"; easing.type: Easing.InOutQuad; duration: 700 }
|
||||
FadeAnimation { target: time; fadeDuration_in: 0; fadeDuration_out: 0 }
|
||||
},
|
||||
Transition {
|
||||
to: "STOPPED"
|
||||
NumberAnimation { properties: "height,bottomMargin,font.pixelSize"; easing.type: Easing.InOutQuad; duration: 700 }
|
||||
NumberAnimation { properties: "height,width,bottomMargin,font.pixelSize"; easing.type: Easing.InOutQuad; duration: 700 }
|
||||
},
|
||||
Transition {
|
||||
to: "IDLE"
|
||||
NumberAnimation { properties: "height,bottomMargin,font.pixelSize"; easing.type: Easing.InOutQuad; duration: 700 }
|
||||
NumberAnimation { properties: "height,width,bottomMargin,font.pixelSize"; easing.type: Easing.InOutQuad; duration: 700 }
|
||||
FadeAnimation { target: time; fadeDuration_out: 1000; fadeDuration_in: 0}
|
||||
},
|
||||
|
||||
|
|
|
@ -26,6 +26,9 @@ QML_IMPORT_PATH =
|
|||
# Additional import path used to resolve QML modules just for Qt Quick Designer
|
||||
QML_DESIGNER_IMPORT_PATH =
|
||||
|
||||
#Plugins
|
||||
QTPLUGIN += qtaudio_coreaudio
|
||||
|
||||
# Default rules for deployment.
|
||||
qnx: target.path = /tmp/$${TARGET}/bin
|
||||
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
||||
|
|
Reference in a new issue