diff --git a/src/mainwidget.cpp b/src/mainwidget.cpp index 4feee30..afbf6ab 100644 --- a/src/mainwidget.cpp +++ b/src/mainwidget.cpp @@ -287,7 +287,7 @@ void MainWidget::openImage(const QString &path) if (m_imageview) { QImage img(path); m_imgName = path; - openImage(img); + openImage(img, m_imgName); } } diff --git a/src/service/ocrinterface.h b/src/service/ocrinterface.h index 14a0859..5a98256 100644 --- a/src/service/ocrinterface.h +++ b/src/service/ocrinterface.h @@ -88,7 +88,7 @@ public Q_SLOTS: // METHODS * @return: QDBusPendingReply * @note: */ - inline QDBusPendingReply<> openImageAndName(const QImage &image,const QString &imageName) + inline QDBusPendingReply<> openImageAndName(const QImage &image, const QString &imageName) { qDebug() << __FUNCTION__; QByteArray data; @@ -97,7 +97,7 @@ public Q_SLOTS: // METHODS data = qCompress(data, 9); data = data.toBase64(); } - return call(QStringLiteral("openImage"), QVariant::fromValue(data),imageName); + return call(QStringLiteral("openImageAndName"), QVariant::fromValue(data), imageName); } Q_SIGNALS: // SIGNALS