Make it build on Arch and add back/forward mouse button support.
This commit is contained in:
parent
babc5c582a
commit
0f39f171d2
2 changed files with 12 additions and 1 deletions
|
@ -91,7 +91,7 @@ target_link_libraries(cutefish-filemanager
|
||||||
)
|
)
|
||||||
|
|
||||||
file(GLOB TS_FILES translations/*.ts)
|
file(GLOB TS_FILES translations/*.ts)
|
||||||
qt5_create_translation(QM_FILES ${TS_FILES})
|
qt5_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} ${TS_FILES})
|
||||||
add_custom_target(translations DEPENDS ${QM_FILES} SOURCES ${TS_FILES})
|
add_custom_target(translations DEPENDS ${QM_FILES} SOURCES ${TS_FILES})
|
||||||
add_dependencies(cutefish-filemanager translations)
|
add_dependencies(cutefish-filemanager translations)
|
||||||
|
|
||||||
|
|
11
qml/main.qml
11
qml/main.qml
|
@ -129,4 +129,15 @@ FishUI.Window {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
|
acceptedButtons: Qt.ForwardButton|Qt.BackButton
|
||||||
|
onClicked: {
|
||||||
|
if (mouse.button == Qt.ForwardButton) {
|
||||||
|
_folderPage.goForward()
|
||||||
|
} else if (mouse.button == Qt.BackButton) {
|
||||||
|
_folderPage.goBack()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue