From ebcc95da4c26369511caa90d89c5ed06e1e4853a Mon Sep 17 00:00:00 2001 From: Treeki Date: Thu, 14 Oct 2010 20:17:20 +0200 Subject: brlyt packing added, plus some changes in the existing API (mostly for const correctness). brlyt writing may still need some testing (especially for the material structs) --- lyt/bounding.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'lyt/bounding.cpp') diff --git a/lyt/bounding.cpp b/lyt/bounding.cpp index fea80d1..ce506b3 100644 --- a/lyt/bounding.cpp +++ b/lyt/bounding.cpp @@ -24,7 +24,12 @@ LYTBounding::LYTBounding(LYTLayout &layout) : LYTPane(layout) { } -void LYTBounding::dumpToDebug(bool showHeading) { +Magic LYTBounding::magic() const { + return Magic('bnd1'); +} + + +void LYTBounding::dumpToDebug(bool showHeading) const { if (showHeading) qDebug() << "LYTBounding" << name << "@" << (void*)this; @@ -33,7 +38,7 @@ void LYTBounding::dumpToDebug(bool showHeading) { -void LYTBounding::writeToDataStream(QDataStream &out) { +void LYTBounding::writeToDataStream(QDataStream &out) const { LYTPane::writeToDataStream(out); } -- cgit v1.2.3