connected basic navigation model; completed controller
This commit is contained in:
parent
8a81c48606
commit
717e131b75
10 changed files with 60 additions and 39 deletions
|
|
@ -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";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue