changeset 4458 | 7351e6f1ee28 |
parent 4442 | f8424e1bc936 |
child 4477 | 63a21fac8bf7 |
--- a/tools/drawMapTest/mainwindow.cpp Sat Dec 04 22:33:14 2010 +0300 +++ b/tools/drawMapTest/mainwindow.cpp Sat Dec 04 23:29:59 2010 +0300 @@ -63,7 +63,7 @@ QFile f(fileName); f.open(QIODevice::WriteOnly); - f.write(qCompress(scene->encode()).toBase64()); + f.write(scene->encode()); } } @@ -76,7 +76,7 @@ QFile f(fileName); f.open(QIODevice::ReadOnly); - QByteArray data = qUncompress(QByteArray::fromBase64(f.readAll())); + QByteArray data = f.readAll(); scene->decode(data); } }