82 m_start = other.m_start;
95 return m_start == other.m_start && m_end == other.m_end;
98#ifndef QT_NO_DEBUG_STREAM
104 dbg <<
"KDGantt::StartTimeRole";
107 dbg <<
"KDGantt::EndTimeRole";
110 dbg <<
"KDGantt::TaskCompletionRole";
113 dbg <<
"KDGantt::ItemTypeRole";
116 dbg <<
"KDGantt::LegendRole";
119 dbg << static_cast<Qt::ItemDataRole>(r);
128 dbg <<
"KDGantt::TypeNone";
131 dbg <<
"KDGantt::TypeEvent";
134 dbg <<
"KDGantt::TypeTask";
137 dbg <<
"KDGantt::TypeSummary";
140 dbg <<
"KDGantt::TypeMulti";
143 dbg <<
"KDGantt::TypeUser";
146 dbg << static_cast<int>(t);
153 dbg <<
"KDGantt::Span[ start=" << s.
start() <<
" length=" << s.
length() <<
"]";
158 dbg <<
"KDGantt::DateTimeSpan[ start=" << s.
start() <<
" end=" << s.
end() <<
"]";
164#ifndef KDAB_NO_UNIT_TESTS
170 os <<
"Span[ start=" << span.
start() <<
", length=" << span.
length() <<
"]";
186#include "unittest/test.h"
214 assertNotEqual(s1, s3);
QDebug operator<<(QDebug dbg, const KDChart::ThreeDBarAttributes &a)
bool equals(const DateTimeSpan &other) const
void setStart(const QDateTime &start)
DateTimeSpan & operator=(const DateTimeSpan &other)
void setEnd(const QDateTime &end)
A class representing a start point and a length.
void setStart(qreal start)
void setLength(qreal length)
KDAB_SCOPED_UNITTEST_SIMPLE(KDGantt, Constraint, "test")
ItemDataRole
KDGantt::KDGanttRoleBase The base value used for the KDGantt role enum values.
const char * constData() const const
QDateTime addDays(qint64 ndays) const const
QDateTime currentDateTime()
bool isValid() const const
QString toString(Qt::DateFormat format) const const
QByteArray toLatin1() const const
std::string toStdString() const const