Skip to content

Commit

Permalink
fix: [qml] fix QML version dependency issue
Browse files Browse the repository at this point in the history
reduce the version of QML from 5.15 to 5.11

Log: fix QML version dependency issue
Bug: no
  • Loading branch information
pppanghu77 authored and re2zero committed Sep 1, 2023
1 parent 68961ab commit 02e6a1d
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 21 deletions.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
dde-cooperation (0.1.0) unstable; urgency=medium

* adaptation dependency V20 1060 UOS

-- liujinchang <[email protected]> Fri, 1 Sep 2023 16:05:29 +0800

dde-cooperation (0.0.10) unstable; urgency=medium

* hide the desktop entry
Expand Down
6 changes: 3 additions & 3 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ Package: dde-cooperation
Architecture: any
Depends:
adb,
qml-module-qtmultimedia (>= 5.15.2~),
qml-module-qtquick-controls (>= 5.15.2~),
qml-module-qtquick2 (>= 5.15.2~),
qml-module-qtmultimedia (>= 5.11.2~),
qml-module-qtquick-controls (>= 5.11.2~),
qml-module-qtquick2 (>= 5.11.2~),
${misc:Depends},
${shlibs:Depends},
Description: cross-device collaboration by deepin
Expand Down
8 changes: 4 additions & 4 deletions src/dde-cooperation/Android/qml/MainWindow.qml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import QtQuick 2.12
import QtQuick.Window 2.15
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.15
import QtQuick 2.11
import QtQuick.Window 2.11
import QtQuick.Controls 2.4
import QtQuick.Layouts 1.3
import QtMultimedia 5.8

Window {
Expand Down
21 changes: 11 additions & 10 deletions src/dde-cooperation/Android/qml/NewDevice.qml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import QtQuick 2.12
import QtQuick.Window 2.15
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.15
import QtQuick 2.11
import QtQuick.Window 2.11
import QtQuick.Controls 2.4
import QtQuick.Layouts 1.3
import QtMultimedia 5.8

ColumnLayout {
Expand Down Expand Up @@ -50,8 +50,8 @@ ColumnLayout {
ctx.reset();
ctx.fillStyle = Qt.rgba(0, 0, 0, 1);

for (let y = 0; y < s; y++) {
for (let x = 0; x < s; x++) {
for (var y = 0; y < s; y++) {
for (var x = 0; x < s; x++) {
if (qrCode.getModule(x, y)) {
const rx1 = x * scale;
const ry1 = y * scale;
Expand All @@ -64,10 +64,11 @@ ColumnLayout {
}

Component.onCompleted: {
qrCode.textChanged.connect(() => {
console.debug("update")
canvas.requestPaint()
})
id: qrCode
ontextChanged: {
console.debug("update");
canvas.requestPaint();
}
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions src/dde-cooperation/Android/qml/VideoPlayer.qml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import QtQuick 2.12
import QtQuick.Window 2.15
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.15
import QtQuick 2.11
import QtQuick.Window 2.11
import QtQuick.Controls 2.4
import QtQuick.Layouts 1.3
import QtMultimedia 5.8

Rectangle {
Expand Down

0 comments on commit 02e6a1d

Please sign in to comment.