Skip to content

Commit

Permalink
update function
Browse files Browse the repository at this point in the history
  • Loading branch information
jared2020 committed Dec 5, 2024
1 parent aba13d5 commit 8db7fbd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions examples/TaoQuickShow/Contents.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,18 @@
<file>Contents/General/Tables.qml</file>
<file>Trans/language_zh.json</file>
<file>Contents/Effect/EditJoggle.qml</file>
<file>Contents/General/EdgeTabBar.qml</file>
<file>Contents/General/ListViewWithTab.qml</file>
<file>Contents/General/RoundRects.qml</file>
<file>Contents/General/Shapes.qml</file>
<file>Contents/ShapeGallery/ShapeCapStyles.qml</file>
<file>Contents/ShapeGallery/ShapeCircle.qml</file>
<file>Contents/ShapeGallery/ShapeCubicBezier.qml</file>
<file>Contents/ShapeGallery/ShapeEllipse.qml</file>
<file>Contents/ShapeGallery/ShapeEllipticalArc.qml</file>
<file>Contents/ShapeGallery/ShapeJoinStyles.qml</file>
<file>Contents/ShapeGallery/ShapeQuadraticBezier.qml</file>
<file>Contents/ShapeGallery/ShapeRectrangle.qml</file>
<file>Contents/ShapeGallery/ShapeTriangle.qml</file>
</qresource>
</RCC>
2 changes: 1 addition & 1 deletion examples/TaoQuickShow/Contents/General/Drags.qml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Item {

MoveArea {
anchors.fill: parent
onMove: {
onMove: function(xOffset, yOffset){
parent.x += xOffset
parent.y += yOffset
}
Expand Down
2 changes: 1 addition & 1 deletion src/TaoQuick/Qml/Misc/CusRectDraw.qml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Item {
anchors.fill: parent
hoverEnabled: true
acceptedButtons: Qt.LeftButton | Qt.RightButton
onPressed: {
onPressed: function(mouse) {
if (mouse.button === Qt.LeftButton) {
bPressed = true
oldX = Math.floor(mouseX)
Expand Down

0 comments on commit 8db7fbd

Please sign in to comment.