Mantid
Loading...
Searching...
No Matches
MantidTreeWidgetItem.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 +
7#pragma once
8
13#include <QTreeWidgetItem>
14
15namespace MantidQt {
16namespace MantidWidgets {
17class MantidTreeWidget;
18
22class EXPORT_OPT_MANTIDQT_COMMON MantidTreeWidgetItem : public QTreeWidgetItem {
23public:
24 explicit MantidTreeWidgetItem(MantidTreeWidget * /*parent*/);
25 MantidTreeWidgetItem(const QStringList & /*list*/, MantidTreeWidget * /*parent*/);
26 void disableIfNode(bool);
27 void setSortPos(int o) { m_sortPos = o; }
28 int getSortPos() const { return m_sortPos; }
29
30private:
31 bool operator<(const QTreeWidgetItem &other) const override;
33 static Mantid::Types::Core::DateAndTime getLastModified(const QTreeWidgetItem * /*item*/);
34 std::size_t getMemorySize() const;
36};
37} // namespace MantidWidgets
38} // namespace MantidQt
#define EXPORT_OPT_MANTIDQT_COMMON
Definition: DllOption.h:15
A class derived from QTreeWidgetItem, to accomodate sorting on the items in a MantidTreeWidget.
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...