added ability to use keyboard to navigate through slides
This commit is contained in:
parent
38f3ed245a
commit
acbd167697
2 changed files with 14 additions and 2 deletions
4
TODO.org
4
TODO.org
|
@ -3,9 +3,8 @@
|
||||||
:CATEGORY: dev
|
:CATEGORY: dev
|
||||||
:END:
|
:END:
|
||||||
|
|
||||||
* Tasks [64%] [20/31]
|
* Tasks [67%] [21/31]
|
||||||
|
|
||||||
** TODO Add ability to use arrow keys to move through slides :core:feature:
|
|
||||||
** TODO bug in dragging servicelist items to reorder. Maybe I can fix with me simplified model system :bug:
|
** TODO bug in dragging servicelist items to reorder. Maybe I can fix with me simplified model system :bug:
|
||||||
** TODO VideoSQL Model and SQLite system needs fixing :bug:
|
** TODO VideoSQL Model and SQLite system needs fixing :bug:
|
||||||
[[file:src/videosqlmodel.cpp::if (!query.exec("CREATE TABLE IF NOT EXISTS 'videos' ("]]
|
[[file:src/videosqlmodel.cpp::if (!query.exec("CREATE TABLE IF NOT EXISTS 'videos' ("]]
|
||||||
|
@ -68,6 +67,7 @@ This thread helped a lot
|
||||||
|
|
||||||
|
|
||||||
** DONE Unload video when switching to something with just image :core:bug:
|
** DONE Unload video when switching to something with just image :core:bug:
|
||||||
|
** DONE Add ability to use arrow keys to move through slides :core:feature:
|
||||||
** DONE Make sure the video gets changed in a proper manner to not have left over video showing from previous items :video:slide:
|
** DONE Make sure the video gets changed in a proper manner to not have left over video showing from previous items :video:slide:
|
||||||
[[file:~/dev/church-presenter/src/qml/presenter/Presentation.qml::currentServiceItem++;]]
|
[[file:~/dev/church-presenter/src/qml/presenter/Presentation.qml::currentServiceItem++;]]
|
||||||
|
|
||||||
|
|
|
@ -130,6 +130,18 @@ Controls.Page {
|
||||||
id: serviceItemModel
|
id: serviceItemModel
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Item {
|
||||||
|
id: keyHandler
|
||||||
|
anchors.fill: parent
|
||||||
|
focus: true
|
||||||
|
Keys.onLeftPressed: presentation.previousSlideAction()
|
||||||
|
Keys.onRightPressed: presentation.nextSlideAction()
|
||||||
|
Keys.onUpPressed: presentation.previousSlideAction()
|
||||||
|
Keys.onDownPressed: presentation.nextSlideAction()
|
||||||
|
Keys.onSpacePressed: presentation.nextSlideAction()
|
||||||
|
}
|
||||||
|
|
||||||
function changeServiceItem(index) {
|
function changeServiceItem(index) {
|
||||||
const item = serviceItemModel.getItem(index);
|
const item = serviceItemModel.getItem(index);
|
||||||
print("index grabbed: " + index);
|
print("index grabbed: " + index);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue