1
0
mirror of https://github.com/jaredtao/TaoQuick.git synced 2025-01-31 21:22:58 +08:00

update image size

This commit is contained in:
jared 2020-07-17 23:46:24 +08:00
parent 3484df8b11
commit 1470dc06a3
13 changed files with 123 additions and 114 deletions

View File

@ -15,15 +15,15 @@ Item {
spacing: 40
ACircle {
id: s1
width: 460
height: 280
width: 250
height: 375
dir: ASquare.Direct.FromInner
effectSource.sourceItem: src
}
ACircle {
id: s2
width: 460
height: 280
width: 250
height: 375
dir: ASquare.Direct.FromOuter
effectSource.sourceItem: src
}

View File

@ -17,29 +17,29 @@ Item {
spacing: 40
ACleavage {
id: s1
width: 460
height: 280
width: 250
height: 375
dir: ACleavage.Direct.HorizonToInner
effectSource.sourceItem: src
}
ACleavage {
id: s2
width: 460
height: 280
width: 250
height: 375
dir: ACleavage.Direct.HorizonToOuter
effectSource.sourceItem: src
}
ACleavage {
id: s3
width: 460
height: 280
width: 250
height: 375
dir: ACleavage.Direct.VerticalToInner
effectSource.sourceItem: src
}
ACleavage {
id: s4
width: 460
height: 280
width: 250
height: 375
dir: ACleavage.Direct.VerticalToOuter
effectSource.sourceItem: src
}

View File

@ -13,17 +13,18 @@ Item {
anchors.centerIn: parent
columns: 2
spacing: 40
ACross {
id: s1
width: 460
height: 280
width: 250
height: 375
dir: ASquare.Direct.FromInner
effectSource.sourceItem: src
}
ACross {
id: s2
width: 460
height: 280
width: 250
height: 375
dir: ASquare.Direct.FromOuter
effectSource.sourceItem: src
}

View File

@ -15,29 +15,29 @@ Item {
spacing: 40
ADiagonal {
id: d1
width: 460
height: 280
width: 250
height: 375
dir: ADiagonal.Direct.FromLeftTop
effectSource.sourceItem: src
}
ADiagonal {
id: d2
width: 460
height: 280
width: 250
height: 375
dir: ADiagonal.Direct.FromRightBottom
effectSource.sourceItem: src
}
ADiagonal {
id: d3
width: 460
height: 280
width: 250
height: 375
dir: ADiagonal.Direct.FromRightTop
effectSource.sourceItem: src
}
ADiagonal {
id: d4
width: 460
height: 280
width: 250
height: 375
dir: ADiagonal.Direct.FromLeftBottom
effectSource.sourceItem: src
}

View File

@ -24,16 +24,16 @@ Item {
spacing: 40
ADissolve {
id: a1
width: 460
height: 280
width: 250
height: 375
duration: 1800
effectSource.sourceItem: src
dissolveSource.sourceItem: dissolveSrc1
}
ADissolve {
id: a2
width: 460
height: 280
width: 250
height: 375
duration: 1800
effectSource.sourceItem: src
dissolveSource.sourceItem: dissolveSrc2

View File

@ -4,18 +4,6 @@ import TaoQuick 1.0
import "qrc:/TaoQuick"
Item {
anchors.fill: parent
ASlowEnter {
id: a1
width: 320
height: 216
x: (parent.width - width) / 2
targetY: parent.height / 2
dir: ASlowEnter.Direct.FromBottom
Image {
anchors.fill: parent
source: imgPath + "Effect/baby.jpg"
}
}
ASlowEnter {
id: a2
width: 320
@ -28,11 +16,32 @@ Item {
source: imgPath + "Effect/baby.jpg"
}
}
Rectangle {
width: 320
height: 216
anchors.centerIn: parent
border.width: 1
border.color: "red"
color: "transparent"
}
ASlowEnter {
id: a1
width: 320
height: 216
x: (parent.width - width) / 2
targetY: parent.height / 2
dir: ASlowEnter.Direct.FromBottom
Image {
anchors.fill: parent
source: imgPath + "Effect/baby.jpg"
}
}
ASlowEnter {
id: a3
width: 320
height: 216
targetX: parent.width / 2 - width * 1.5
targetX: (parent.width - width) / 2 - width
y: (parent.height - height) / 2
dir: ASlowEnter.Direct.FromLeft
Image {
@ -44,7 +53,7 @@ Item {
id: a4
width: 320
height: 216
targetX: parent.width / 2 + width / 2
targetX: parent.width - (parent.width - width)/2
y: (parent.height - height) / 2
dir: ASlowEnter.Direct.FromRight
Image {
@ -54,10 +63,10 @@ Item {
}
ParallelAnimation {
id: ani
ScriptAction{ script: {a1.animation.restart()} }
ScriptAction{ script: {a2.animation.restart()} }
ScriptAction{ script: {a3.animation.restart()} }
ScriptAction{ script: {a4.animation.restart()} }
ScriptAction{ script: {a1.animation.start()} }
ScriptAction{ script: {a2.animation.start()} }
ScriptAction{ script: {a3.animation.start()} }
ScriptAction{ script: {a4.animation.start()} }
}
Component.onCompleted: {
ani.restart()

View File

@ -16,31 +16,31 @@ Item {
spacing: 40
AGrad {
id: g1
width: 460
height: 280
width: 250
height: 375
effectSource.sourceItem: src
}
AGrad {
id: g2
width: 460
height: 280
width: 250
height: 375
dir: ASlowEnter.Direct.FromRight
effectSource.sourceItem: src
}
AGrad {
id: g3
width: 460
height: 280
width: 250
height: 375
dir: ASlowEnter.Direct.FromTop
effectSource.sourceItem: src
}
AGrad {
id: g4
dir: ASlowEnter.Direct.FromBottom
width: 460
height: 280
width: 250
height: 375
effectSource.sourceItem: src
}

View File

@ -16,28 +16,28 @@ Item {
ALouver {
id: l1
width: 460
height: 280
width: 250
height: 375
effectSource.sourceItem: src
}
ALouver {
id: l2
width: 460
height: 280
width: 250
height: 375
dir: ALouver.Direct.HorizonReverse
effectSource.sourceItem: src
}
ALouver {
id: l3
width: 460
height: 280
width: 250
height: 375
dir: ALouver.Direct.Vertical
effectSource.sourceItem: src
}
ALouver {
id: l4
width: 460
height: 280
width: 250
height: 375
dir: ALouver.Direct.VerticalReverse
effectSource.sourceItem: src
}

View File

@ -16,15 +16,15 @@ Item {
ARhombus {
id: l1
width: 460
height: 280
width: 250
height: 375
dir: ARhombus.Direct.FromInner
effectSource.sourceItem: src
}
ARhombus {
id: l2
width: 460
height: 280
width: 250
height: 375
dir: ARhombus.Direct.FromOuter
effectSource.sourceItem: src
}

View File

@ -15,15 +15,15 @@ Item {
spacing: 40
ASquare {
id: s1
width: 460
height: 280
width: 250
height: 375
dir: ASquare.Direct.FromInner
effectSource.sourceItem: src
}
ASquare {
id: s2
width: 460
height: 280
width: 250
height: 375
dir: ASquare.Direct.FromOuter
effectSource.sourceItem: src
}

View File

@ -15,22 +15,22 @@ Item {
spacing: 40
AWheel {
id: s1
width: 460
height: 280
width: 250
height: 375
dir: AWheel.Direct.Clockwise
effectSource.sourceItem: src
}
AWheel {
id: s2
width: 460
height: 280
width: 250
height: 375
dir: AWheel.Direct.CounterClockwise
effectSource.sourceItem: src
}
ASector {
id: s3
width: 460
height: 280
width: 250
height: 375
effectSource.sourceItem: src
}
}

View File

@ -1,42 +1,41 @@
build_pass {
!exists(TaoVersionDefined) {
TaoVersionDefined=1
!exists(TaoVersionDefined) {
TaoVersionDefined=1
TAO_VERSION_TAG = 1.0
TAO_VERSION_TAG = 1.0
# current commit hash
REVISION=$$system("git rev-parse HEAD")
REVISION=$$str_member($${REVISION}, 0, $$num_add(10, -1))
isEmpty(REVISION) {
REVISION = 0000000000
}
# current commit hash
REVISION=$$system("git rev-parse HEAD")
REVISION=$$str_member($${REVISION}, 0, $$num_add(10, -1))
isEmpty(REVISION) {
REVISION = 0000000000
}
# last tag
Ver=$$system("git describe --abbrev=0 --tags")
isEmpty(Ver) {
Ver=0.0.0
}
VerList =$$split(Ver, .)
MAJ = $$take_first(VerList)
MIN = $$take_first(VerList)
PAT = $$take_first(VerList)
equals(TEMPLATE, lib) {
CONFIG += skip_target_version_ext
VER_MAJ = $${MAJ}
VER_MIN = $${MIN}
VER_PAT = $${PAT}
VERSION = $${Ver}
}
!exists(TaoDefined) {
TaoDefined=1
DEFINES += TaoREVISION=$${REVISION}
DEFINES += TaoREVISIONSTR=\"\\\"$${REVISION}\\\"\"
DEFINES += TaoVer=\"\\\"$${Ver}\\\"\"
DEFINES += TaoMAJ=$${MAJ}
DEFINES += TaoMIN=$${MIN}
DEFINES += TaoPAT=$${PAT}
DEFINES += TaoDATETIME=\"\\\"$${_DATE_}\\\"\"
DEFINES += TaoCompilerVendor=\"\\\"$${QT_VERSION} $${QMAKE_PLATFORM} $${QMAKE_COMPILER} $${QMAKE_TARGET.arch}\\\"\"
}
# last tag
Ver=$$system("git describe --abbrev=0 --tags")
isEmpty(Ver) {
Ver=0.0.0
}
VerList =$$split(Ver, .)
MAJ = $$take_first(VerList)
MIN = $$take_first(VerList)
PAT = $$take_first(VerList)
equals(TEMPLATE, lib) {
CONFIG += skip_target_version_ext
VER_MAJ = $${MAJ}
VER_MIN = $${MIN}
VER_PAT = $${PAT}
VERSION = $${Ver}
}
!exists(TaoDefined) {
TaoDefined=1
DEFINES += TaoREVISION=$${REVISION}
DEFINES += TaoREVISIONSTR=\"\\\"$${REVISION}\\\"\"
DEFINES += TaoVer=\"\\\"$${Ver}\\\"\"
DEFINES += TaoMAJ=$${MAJ}
DEFINES += TaoMIN=$${MIN}
DEFINES += TaoPAT=$${PAT}
DEFINES += TaoDATETIME=\"\\\"$${_DATE_}\\\"\"
DEFINES += TaoCompilerVendor=\"\\\"$${QT_VERSION} $${QMAKE_PLATFORM} $${QMAKE_COMPILER} $${QMAKE_TARGET.arch}\\\"\"
}
}

View File

@ -30,6 +30,6 @@ Item {
to: __toList[dir]
duration: r.duration
loops: 1
alwaysRunToEnd: true
// alwaysRunToEnd: true
}
}