1
0
mirror of https://github.com/jaredtao/TaoQuick.git synced 2025-01-17 20:12:54 +08:00

fixed some warning

This commit is contained in:
jared 2020-12-28 22:54:01 +08:00
parent c6ed4cf680
commit 77878da1b8
3 changed files with 7 additions and 5 deletions

View File

@ -310,7 +310,7 @@ Item {
Column {
x: cusHeader.x + cusHeader.mouseX
y: cusView.y
visible: cusHeader.isSpliting && !cusHeader.isOut
visible: cusHeader.splitingIndex >= 1
height: cusView.height
width: 1
spacing: 2

View File

@ -86,6 +86,8 @@ int main(int argc, char **argv)
});
//qml call 'Qt.quit()' will emit engine::quit, here should call qApp->quit
QObject::connect(view.engine(), &QQmlEngine::quit, qApp, &QCoreApplication::quit);
//qml clear content before quit
QObject::connect(qApp, &QGuiApplication::aboutToQuit, qApp, [&view](){view.setSource({});});
view.setSource(url);
view.moveToScreenCenter();

View File

@ -126,7 +126,7 @@ Item {
hoverEnabled: true
anchors {
left: parent.left
leftMargin: 4
leftMargin: 2
right: parent.right
top: parent.top
bottom: parent.bottom
@ -146,10 +146,11 @@ Item {
}
MoveArea {
id: moveArea
width: 4
width: 2
height: parent.height
enabled: index > 0
hoverEnabled: true
z: 9
anchors {
left: parent.left
}
@ -160,8 +161,7 @@ Item {
splitingIndex = -1
}
}
cursorShape: (pressed
|| containsMouse) ? Qt.SplitHCursor : Qt.ArrowCursor
cursorShape: (pressed || containsMouse) ? Qt.SplitHCursor : Qt.ArrowCursor
onMove: {
var wList = widthList
if (index === 0) {