connected basic navigation model; completed controller

This commit is contained in:
Anika Raemer 2018-10-19 19:45:37 +02:00
parent 8a81c48606
commit 717e131b75
10 changed files with 60 additions and 39 deletions

View file

@ -31,9 +31,9 @@ bool NavigationItemModel::setPath(const QString &path)
mPath = path;
/// @todo move default image to qrc
auto source = dir.filePath("file.jpg");
auto source = dir.filePath("image.jpg");
if(QFile(source).exists())
mImageSource = source;
mImageSource = "file:///" + source;
else
mImageSource = "file:///home/ar/source/LenaPi/pics/benjamin.jpeg";