Make it build on Arch and add back/forward mouse button support.

This commit is contained in:
Zachary Hall 2024-01-23 13:22:08 -08:00
parent babc5c582a
commit 0f39f171d2
2 changed files with 12 additions and 1 deletions

View file

@ -91,7 +91,7 @@ target_link_libraries(cutefish-filemanager
)
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_dependencies(cutefish-filemanager translations)

View file

@ -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()
}
}
}
}