|
Mantid
|
A class derived from QTreeWidgetItem, to accomodate sorting on the items in a MantidTreeWidget. More...
#include <MantidTreeWidgetItem.h>
Public Member Functions | |
| void | disableIfNode (bool) |
| int | getSortPos () const |
| MantidTreeWidgetItem (const QStringList &, MantidTreeWidget *) | |
| Constructor. | |
| MantidTreeWidgetItem (MantidTreeWidget *) | |
| Constructor. | |
| void | setSortPos (int o) |
Private Member Functions | |
| std::size_t | getMemorySize () const |
| bool | operator< (const QTreeWidgetItem &other) const override |
| Overidden operator. | |
Static Private Member Functions | |
| static Mantid::Types::Core::DateAndTime | getLastModified (const QTreeWidgetItem *) |
| Finds the date and time of the last modification made to the workspace who's details are found in the given QTreeWidgetItem. | |
Private Attributes | |
| MantidTreeWidget * | m_parent |
| int | m_sortPos |
A class derived from QTreeWidgetItem, to accomodate sorting on the items in a MantidTreeWidget.
Definition at line 22 of file MantidTreeWidgetItem.h.
|
explicit |
Constructor.
Must be passed its parent MantidTreeWidget, to facilitate correct sorting.
Definition at line 21 of file MantidTreeWidgetItem.cpp.
| MantidQt::MantidWidgets::MantidTreeWidgetItem::MantidTreeWidgetItem | ( | const QStringList & | list, |
| MantidTreeWidget * | parent | ||
| ) |
Constructor.
Must be passed its parent MantidTreeWidget, to facilitate correct sorting.
Definition at line 27 of file MantidTreeWidgetItem.cpp.
| void MantidQt::MantidWidgets::MantidTreeWidgetItem::disableIfNode | ( | bool | ) |
|
staticprivate |
Finds the date and time of the last modification made to the workspace who's details are found in the given QTreeWidgetItem.
Definition at line 97 of file MantidTreeWidgetItem.cpp.
References Mantid::API::WorkspaceHistory::size(), and workspace.
Referenced by operator<().
|
private |
Definition at line 111 of file MantidTreeWidgetItem.cpp.
References getMemorySize().
Referenced by getMemorySize(), and operator<().
|
inline |
Definition at line 28 of file MantidTreeWidgetItem.h.
Referenced by operator<().
|
overrideprivate |
Overidden operator.
Must be passed its parent MantidTreeWidget, to facilitate correct sorting.
Definition at line 33 of file MantidTreeWidgetItem.cpp.
References MantidQt::MantidWidgets::ByMemorySize, MantidQt::MantidWidgets::ByName, getLastModified(), getMemorySize(), MantidQt::MantidWidgets::MantidTreeWidget::getSortOrder(), getSortPos(), MantidQt::MantidWidgets::MantidTreeWidget::getSortScheme(), MantidQt::MantidWidgets::MantidTreeWidget::logWarningMessage(), m_parent, and m_sortPos.
|
inline |
Definition at line 27 of file MantidTreeWidgetItem.h.
Referenced by MantidQt::MantidWidgets::WorkspaceTreeWidget::excludeItemFromSort().
|
private |
Definition at line 32 of file MantidTreeWidgetItem.h.
Referenced by operator<().
|
private |
Definition at line 35 of file MantidTreeWidgetItem.h.
Referenced by operator<().