15using Mantid::Types::Core::DateAndTime;
22 : QTreeWidgetItem(parent), m_parent(parent), m_sortPos(0) {}
28 : QTreeWidgetItem(list), m_parent(parent), m_sortPos(0) {}
40 int otherSortPos = mantidOther ? mantidOther->
getSortPos() : 0;
41 bool otherShouldBeSorted = otherSortPos == 0;
48 if (!thisShouldBeSorted && !otherShouldBeSorted) {
53 }
else if (thisShouldBeSorted && !otherShouldBeSorted) {
58 }
else if (!thisShouldBeSorted && otherShouldBeSorted) {
67 return QString::compare(text(0), other.text(0), Qt::CaseInsensitive) < 0;
76 if (childCount() > 0 && other.childCount() > 0) {
77 const QTreeWidgetItem *other_ptr = &other;
81 }
catch (std::out_of_range &e) {
98 QVariant userData = item->data(0, Qt::UserRole);
99 if (userData.isNull())
100 return DateAndTime();
105 return DateAndTime();
107 const size_t indexOfLast = wsHist.size() - 1;
108 const auto lastAlgHist = wsHist.getAlgorithmHistory(indexOfLast);
109 return lastAlgHist->executionDate();
IPeaksWorkspace_sptr workspace
This class stores information about the Workspace History used by algorithms on a workspace and the e...
Exception for when an item is not found in a collection.
std::shared_ptr< Workspace > Workspace_sptr
shared pointer to Mantid::API::Workspace