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:
parent
c6ed4cf680
commit
77878da1b8
@ -310,7 +310,7 @@ Item {
|
|||||||
Column {
|
Column {
|
||||||
x: cusHeader.x + cusHeader.mouseX
|
x: cusHeader.x + cusHeader.mouseX
|
||||||
y: cusView.y
|
y: cusView.y
|
||||||
visible: cusHeader.isSpliting && !cusHeader.isOut
|
visible: cusHeader.splitingIndex >= 1
|
||||||
height: cusView.height
|
height: cusView.height
|
||||||
width: 1
|
width: 1
|
||||||
spacing: 2
|
spacing: 2
|
||||||
|
@ -86,6 +86,8 @@ int main(int argc, char **argv)
|
|||||||
});
|
});
|
||||||
//qml call 'Qt.quit()' will emit engine::quit, here should call qApp->quit
|
//qml call 'Qt.quit()' will emit engine::quit, here should call qApp->quit
|
||||||
QObject::connect(view.engine(), &QQmlEngine::quit, qApp, &QCoreApplication::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.setSource(url);
|
||||||
view.moveToScreenCenter();
|
view.moveToScreenCenter();
|
||||||
|
@ -126,7 +126,7 @@ Item {
|
|||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
anchors {
|
anchors {
|
||||||
left: parent.left
|
left: parent.left
|
||||||
leftMargin: 4
|
leftMargin: 2
|
||||||
right: parent.right
|
right: parent.right
|
||||||
top: parent.top
|
top: parent.top
|
||||||
bottom: parent.bottom
|
bottom: parent.bottom
|
||||||
@ -146,10 +146,11 @@ Item {
|
|||||||
}
|
}
|
||||||
MoveArea {
|
MoveArea {
|
||||||
id: moveArea
|
id: moveArea
|
||||||
width: 4
|
width: 2
|
||||||
height: parent.height
|
height: parent.height
|
||||||
enabled: index > 0
|
enabled: index > 0
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
z: 9
|
||||||
anchors {
|
anchors {
|
||||||
left: parent.left
|
left: parent.left
|
||||||
}
|
}
|
||||||
@ -160,8 +161,7 @@ Item {
|
|||||||
splitingIndex = -1
|
splitingIndex = -1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
cursorShape: (pressed
|
cursorShape: (pressed || containsMouse) ? Qt.SplitHCursor : Qt.ArrowCursor
|
||||||
|| containsMouse) ? Qt.SplitHCursor : Qt.ArrowCursor
|
|
||||||
onMove: {
|
onMove: {
|
||||||
var wList = widthList
|
var wList = widthList
|
||||||
if (index === 0) {
|
if (index === 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user