Files
Jungfraujoch/viewer/dbus/JFJochViewerAdaptor.cpp
T
leonarski_f 4b7827d42c
Build Packages / build:rpm (ubuntu2404) (push) Has been cancelled
Build Packages / Generate python client (push) Has been cancelled
Build Packages / Build documentation (push) Has been cancelled
Build Packages / Unit tests (push) Has been cancelled
Build Packages / Create release (push) Has been cancelled
Build Packages / build:rpm (rocky8) (push) Has been cancelled
Build Packages / build:rpm (ubuntu2204) (push) Has been cancelled
Build Packages / build:rpm (rocky9) (push) Has been cancelled
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Has been cancelled
Build Packages / build:rpm (rocky8_sls9) (push) Has been cancelled
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Has been cancelled
Build Packages / build:rpm (rocky9_nocuda) (push) Has been cancelled
Build Packages / build:rpm (rocky8_nocuda) (push) Has been cancelled
jfjoch_viewer: DBus fix
2025-11-14 12:29:50 +01:00

20 lines
909 B
C++

// SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
// SPDX-License-Identifier: GPL-3.0-only
#include "JFJochViewerAdaptor.h"
void JFJochViewerAdaptor::LoadFile(const QString &filename, int image_number, int summation) {
// Your logic to handle the filename
// Forward to parent (JFJochViewerWindow)
QMetaObject::invokeMethod(parent(), "LoadFile",
Q_ARG(QString, filename),
Q_ARG(qint64, static_cast<qint64>(image_number)),
Q_ARG(qint64, static_cast<qint64>(summation)));
}
void JFJochViewerAdaptor::LoadImage(int image_number, int summation) {
QMetaObject::invokeMethod(parent(), "LoadImage",
Q_ARG(qint64, static_cast<qint64>(image_number)),
Q_ARG(qint64, static_cast<qint64>(summation)));
}