diff --git a/NOTES.txt b/NOTES.txt index 1897a55ba..5dde45eae 100644 --- a/NOTES.txt +++ b/NOTES.txt @@ -1346,6 +1346,25 @@ Torrent &operator=(Torrent &&torrent) noexcept } +Model QDebug operator<<(): +-------------------------- + +/* Non-member functions */ + +template +QDebug operator<<(QDebug debug, const Model &model) +{ + const QDebugStateSaver saver(debug); + + debug.nospace() << Orm::Utils::Type::classPureBasename().toUtf8().constData() + << model.getKey().template value() << ", " + << model.getAttribute("name").template value() + << ')'; + + return debug; +} + + conversions: ------------