Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: working on support for autosave with multiple instances #355

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
1 change: 1 addition & 0 deletions YUViewLib/src/common/EnumMapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <optional>
#include <string>
#include <vector>
#include <stdexcept>

/* This class implement mapping of "enum class" values to and from names (string).
*/
Expand Down
3 changes: 2 additions & 1 deletion YUViewLib/src/playlistitem/playlistItemCompressedVideo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,8 @@ playlistItemCompressedVideo::newPlaylistItemCompressedVideo(const YUViewDomEleme
const QString &playlistFilePath)
{
// Parse the DOM element. It should have all values of a playlistItemRawCodedVideo
auto absolutePath = root.findChildValue("absolutePath");
QUrl absoluteUrl = root.findChildValue("absolutePath");
auto absolutePath = absoluteUrl.toLocalFile();
auto relativePath = root.findChildValue("relativePath");
int displaySignal = root.findChildValue("displayComponent").toInt();

Expand Down
3 changes: 2 additions & 1 deletion YUViewLib/src/playlistitem/playlistItemImageFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ playlistItemImageFile::newplaylistItemImageFile(const YUViewDomElement &root,
const QString & playlistFilePath)
{
// Parse the DOM element. It should have all values of a playlistItemImageFile
QString absolutePath = root.findChildValue("absolutePath");
QUrl absoluteUrl = root.findChildValue("absolutePath");
auto absolutePath = absoluteUrl.toLocalFile();
QString relativePath = root.findChildValue("relativePath");

// check if file with absolute path exists, otherwise check relative path
Expand Down
3 changes: 2 additions & 1 deletion YUViewLib/src/playlistitem/playlistItemRawFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,8 @@ playlistItemRawFile *playlistItemRawFile::newplaylistItemRawFile(const YUViewDom
const QString &playlistFilePath)
{
// Parse the DOM element. It should have all values of a playlistItemRawFile
auto absolutePath = root.findChildValue("absolutePath");
QUrl absoluteUrl = root.findChildValue("absolutePath");
auto absolutePath = absoluteUrl.toLocalFile();
auto relativePath = root.findChildValue("relativePath");
auto type = root.findChildValue("type");

Expand Down
3 changes: 2 additions & 1 deletion YUViewLib/src/playlistitem/playlistItemStatisticsFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ playlistItemStatisticsFile *playlistItemStatisticsFile::newplaylistItemStatistic
const YUViewDomElement &root, const QString &playlistFilePath, OpenMode openMode)
{
// Parse the DOM element. It should have all values of a playlistItemStatisticsFile
auto absolutePath = root.findChildValue("absolutePath");
QUrl absoluteUrl = root.findChildValue("absolutePath");
auto absolutePath = absoluteUrl.toLocalFile();
auto relativePath = root.findChildValue("relativePath");

// check if file with absolute path exists, otherwise check relative path
Expand Down