Mantid
Loading...
Searching...
No Matches
RepoTreeView.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2013 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 +
7#pragma once
8
9#include "DllOption.h"
10#include <QTreeView>
11
12namespace MantidQt {
13namespace API {
18class EXPORT_OPT_MANTIDQT_COMMON RepoTreeView : public QTreeView {
19 Q_OBJECT
20
21public:
22 // constuctor
23 RepoTreeView(QWidget *parent = nullptr) : QTreeView(parent){};
24 // destructor - not virtual, because this is not intended to be base
25 ~RepoTreeView() override{};
26
27signals:
28 void currentCell(const QModelIndex & /*_t1*/);
29
30protected slots:
31
32 void currentChanged(const QModelIndex &current, const QModelIndex &previous) override {
33 QTreeView::currentChanged(current, previous);
34 emit currentCell(current);
35 };
36};
37
38} // namespace API
39} // namespace MantidQt
#define EXPORT_OPT_MANTIDQT_COMMON
Definition: DllOption.h:15
RepoTreeView : A specialization of QTreeView class that emits signal every time the selection change.
Definition: RepoTreeView.h:18
void currentCell(const QModelIndex &)
void currentChanged(const QModelIndex &current, const QModelIndex &previous) override
Definition: RepoTreeView.h:32
RepoTreeView(QWidget *parent=nullptr)
Definition: RepoTreeView.h:23
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...