#include <KDGanttGlobal>
Definition at line 221 of file kdganttglobal.h.
Public Member Functions | |
qreal | end () const |
bool | equals (const Span &other) const |
Span | expandedTo (const Span &other) const |
bool | isValid () const |
qreal | length () const |
Span & | operator= (const Span &other) |
void | setEnd (qreal end) |
void | setLength (qreal length) |
void | setStart (qreal start) |
Span (const Span &other) | |
Span (qreal start, qreal length) | |
Span () | |
qreal | start () const |
KDGantt::Span::Span | ( | ) |
Definition at line 225 of file kdganttglobal.h.
00225 : inline Span() : m_start( -1 ), m_length( 0 ) {}
KDGantt::Span::Span | ( | qreal | start, | |
qreal | length | |||
) |
KDGantt::Span::Span | ( | const Span & | other | ) |
qreal KDGantt::Span::end | ( | ) | const |
Definition at line 234 of file kdganttglobal.h.
Referenced by KDGantt::AbstractGrid::isSatisfiedConstraint().
00234 { m_length = m_start-end; }
bool KDGantt::Span::equals | ( | const Span & | other | ) | const |
Definition at line 241 of file kdganttglobal.h.
References m_length, and m_start.
Referenced by KDGantt::operator!=().
bool KDGantt::Span::isValid | ( | ) | const |
qreal KDGantt::Span::length | ( | ) | const |
Definition at line 237 of file kdganttglobal.h.
Referenced by KDAB_SCOPED_UNITTEST_SIMPLE(), KDGantt::DateTimeGrid::mapFromChart(), operator<<(), KDGantt::DateTimeGrid::paintGrid(), and KDGantt::GraphicsItem::updateItem().
00237 { m_length=length; }
void KDGantt::Span::setEnd | ( | qreal | end | ) |
void KDGantt::Span::setLength | ( | qreal | length | ) |
Definition at line 236 of file kdganttglobal.h.
Referenced by KDAB_SCOPED_UNITTEST_SIMPLE().
00237 { m_length=length; }
void KDGantt::Span::setStart | ( | qreal | start | ) |
Definition at line 231 of file kdganttglobal.h.
Referenced by KDAB_SCOPED_UNITTEST_SIMPLE().
00232 { m_start=start; }
qreal KDGantt::Span::start | ( | ) | const |
Definition at line 232 of file kdganttglobal.h.
Referenced by KDAB_SCOPED_UNITTEST_SIMPLE(), KDGantt::DateTimeGrid::mapFromChart(), operator<<(), KDGantt::DateTimeGrid::paintGrid(), and KDGantt::GraphicsItem::updateItem().
00232 { m_start=start; }