Skip to content

Commit 5306286

Browse files
committed
core/itemimagegrab: add path to saved signal
1 parent 7531266 commit 5306286

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/itemimagegrab.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ void ItemImageGrab::cropAndGrab(
5757
const QString localFile = path.toLocalFile();
5858

5959
if (image.save(localFile)) {
60-
emit this->saved(localFile);
60+
emit this->saved(localFile, path);
6161
} else {
6262
emit this->failed(path);
6363
}

src/core/itemimagegrab.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ class ItemImageGrab: public QObject {
2020
cropAndGrab(QQuickItem* target, const QUrl& path, const QRect& rect, const QSize& targetSize);
2121

2222
signals:
23-
void saved(const QString& path);
23+
void saved(const QString& file, const QUrl& path);
2424
void failed(const QUrl& path);
2525
};

0 commit comments

Comments
 (0)