Add debug messages

This commit is contained in:
Igor Malinovskiy
2022-07-28 13:07:49 +03:00
parent 88fb114796
commit 2583513898
2 changed files with 5 additions and 1 deletions
+2
View File
@@ -257,6 +257,8 @@ bool QmlUtils::saveToFile(const QVariant &value, const QString &path) {
outStream.writeRawData(val, val.size());
outputFile.close();
return true;
} else {
qDebug() << "Cannot get access to file " << path;
}
return false;
});
+3 -1
View File
@@ -1,7 +1,7 @@
import QtQuick 2.0
import QtQuick.Controls 2.13
import Qt.labs.platform 1.1
import QtQuick.Dialogs 1.3
import QtQuick.Layouts 1.15
import "./platformutils.js" as PlatformUtils
ImageButton {
@@ -31,6 +31,8 @@ ImageButton {
onAccepted: {
root.fileUrl = fileUrl
console.log(fileUrl)
var path = qmlUtils.getPathFromUrl(fileUrl)
root.folderUrl = qmlUtils.getUrlFromPath(qmlUtils.getDir(path))
root.path = qmlUtils.getNativePath(path)