camper/src
jordi fita mas d0e2659c30 List the labels of all lodgings in QML
To query the database, i have to run the query inside the same thread
where the database was created, which means that Database should be a
singleton not only within QML, but also in C++, and has to be the _same_
singleton in both worlds.

Although i expose an object that i have created, i followed the same
section titled “Exposing an existing object as a singleton” from Qt’s
documentation[0].  The only difference is that i do not have to declare
the element as a foreign type, because it is a bona fide QObject.

[0]: https://doc.qt.io/qt-6/qml-singleton.html#exposing-an-existing-
object-as-a-singleton
2024-12-24 03:46:20 +01:00
..
CMakeLists.txt List the labels of all lodgings in QML 2024-12-24 03:46:20 +01:00
ErrorNotification.qml Stop ErrorNotification’s time on close 2024-12-22 04:20:04 +01:00
Expander.qml Add Expander control to show “advanced controls” on login 2024-12-22 04:18:56 +01:00
LoginPage.qml Use database “advanced options” and persist them 2024-12-23 20:54:04 +01:00
Main.qml Use database “advanced options” and persist them 2024-12-23 20:54:04 +01:00
MnemonicAction.qml Add MnemonicLabel and MnemonicAction components 2024-12-21 05:13:46 +01:00
MnemonicLabel.qml Add MnemonicLabel and MnemonicAction components 2024-12-21 05:13:46 +01:00
ReservationsPage.qml List the labels of all lodgings in QML 2024-12-24 03:46:20 +01:00
SelectableLabel.qml Add ComponentBehavior QML pragma 2024-12-19 01:05:12 +01:00
calendarlistmodel.cpp List the labels of all lodgings in QML 2024-12-24 03:46:20 +01:00
calendarlistmodel.h List the labels of all lodgings in QML 2024-12-24 03:46:20 +01:00
database.cpp List the labels of all lodgings in QML 2024-12-24 03:46:20 +01:00
database.h List the labels of all lodgings in QML 2024-12-24 03:46:20 +01:00
main.cpp List the labels of all lodgings in QML 2024-12-24 03:46:20 +01:00
mnemonicattached.cpp Add Mnemonic attached property 2024-12-21 04:56:09 +01:00
mnemonicattached.h Add Mnemonic attached property 2024-12-21 04:56:09 +01:00