Mantid
Loading...
Searching...
No Matches
CellDelegate.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
11#pragma once
13#include <QStandardItemModel>
14#include <QStyledItemDelegate>
15#include <QTreeView>
16
17namespace MantidQt {
18namespace MantidWidgets {
19namespace Batch {
20class CellDelegate : public QStyledItemDelegate {
21public:
22 explicit CellDelegate(QObject *parent, QTreeView const &view, FilteredTreeModel const &filterModel,
23 QStandardItemModel const &mainModel);
24 void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
25
26private:
27 QTreeView const &m_view;
29 QStandardItemModel const &m_mainModel;
30};
31} // namespace Batch
32} // namespace MantidWidgets
33} // namespace MantidQt
std::map< DeltaEMode::Type, std::string > index
Definition: DeltaEMode.cpp:19
QStandardItemModel const & m_mainModel
Definition: CellDelegate.h:29
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
FilteredTreeModel const & m_filteredModel
Definition: CellDelegate.h:28
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...