git-svn-id: svn://db.shs.com.ru/libs@618 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2019-10-11 19:50:58 +00:00
parent ca3fe6e788
commit e1aa29bd3a
2 changed files with 17 additions and 0 deletions

View File

@@ -825,3 +825,18 @@ void QGLView::restoreCamera(const QByteArray &ba) {
camera()->setAngles(ang);
}
QByteArray QGLView::saveFeatures() {
QByteArray ba;
QDataStream ds(&ba, QIODevice::WriteOnly);
ds << features_;
}
void QGLView::restoreFeatures(const QByteArray & ba) {
QHash<int, QVariant> f;
QDataStream ds(ba);
ds >> f;
features_ = f;
}