src/libraries.cpp

changeset 100
43ce3672648a
parent 41
0abada2a9802
child 112
5760cbb32bc0
equal deleted inserted replaced
99:05ce5a34c497 100:43ce3672648a
374 QDataStream& operator>>(QDataStream& stream, Library& library) 374 QDataStream& operator>>(QDataStream& stream, Library& library)
375 { 375 {
376 QString path; 376 QString path;
377 int role; 377 int role;
378 QDataStream& result = stream >> path >> role; 378 QDataStream& result = stream >> path >> role;
379 library.path = path; 379 library.path.setPath(path);
380 library.role = static_cast<Library::Role>(role); 380 library.role = static_cast<Library::Role>(role);
381 return result; 381 return result;
382 } 382 }
383 383
384 bool operator==(const Library& one, const Library& other) 384 bool operator==(const Library& one, const Library& other)

mercurial