Newer
Older
#include "MantidQtWidgets/Common/Batch/JobTreeViewSignalAdapter.h"
namespace MantidQt {
namespace MantidWidgets {
namespace Batch {
JobTreeViewSignalAdapter::JobTreeViewSignalAdapter(JobTreeView &view,
QObject *parent)
: QObject(parent) {
qRegisterMetaType<RowLocation>("MantidQt::MantidWidgets::Batch::RowLocation");
qRegisterMetaType<std::vector<RowLocation>>(
"std::vector<MantidQt::MantidWidgets::Batch::RowLocation>");
void JobTreeViewSignalAdapter::notifyCellChanged(RowLocation const &itemIndex,
emit cellChanged(itemIndex, column, newValue);
}
void JobTreeViewSignalAdapter::notifyRowInserted(
RowLocation const &newRowLocation) {
emit rowInserted(newRowLocation);
}
void JobTreeViewSignalAdapter::notifyRemoveRowsRequested(
std::vector<RowLocation> const &locationsOfRowsToRemove) {
emit removeRowsRequested(locationsOfRowsToRemove);
}
void JobTreeViewSignalAdapter::notifyCopyRowsRequested() {
emit copyRowsRequested();
void JobTreeViewSignalAdapter::notifyPasteRowsRequested() {
emit pasteRowsRequested();