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) |