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 {
|
||||
x: cusHeader.x + cusHeader.mouseX
|
||||
y: cusView.y
|
||||
visible: cusHeader.isSpliting && !cusHeader.isOut
|
||||
visible: cusHeader.splitingIndex >= 1
|
||||
height: cusView.height
|
||||
width: 1
|
||||
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
|
||||
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();
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user