fix: dbus存在问题,已经修改

Description: dbus和本地代码不一样,合并错误,带名称的打开图像接口

Log: 与dbus有关
Change-Id: Ica50c51011fee5ab39a0c46351da446dcc13ea67
This commit is contained in:
liuminghang 2021-06-24 14:28:21 +08:00
parent 9d1d8aafc1
commit 6292e44721
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}
}

View File

@ -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