AJSON_FIELDS_ENTRY#
Json entry of the same C++ and JSON field name.
Header: | #include <AUI/Json/Conversion.h> |
CMake: | aui_link(my_target PUBLIC aui::json) |
Definition#
#define AJSON_FIELDS_ENTRY(name) (name, AUI_PP_STRINGIZE(name))
Examples#
examples/app/notes/src/main.cpp
Notes App - Note taking app that demonstrates usage of AListModel, AProperty, user data saving and loading.
},
/// [scrollarea]
AScrollArea::Builder()
.withContents(
AUI_DECLARATIVE_FOR(note, *mNotes, AVerticalLayout) {
observeChangesForDirty(note);
return notePreview(note) AUI_LET {
connect(it->clicked, [this, note] { mCurrentNote = note; });
it& mCurrentNote > [note](AView& view, const _<Note>& currentNote) {
ALOG_DEBUG(LOG_TAG) << "currentNote == note " << currentNote << " == " << note;