Widget class for graphical representation of sequence lines.
More...
#include <seqlinewidget.h>
Widget class for graphical representation of sequence lines.
- Author
- Paul Hensgen Bugs and comments to umbre.nosp@m.llo-.nosp@m.devel.nosp@m.@kde.nosp@m..org or https://bugs.kde.org
◆ SeqLineWidget()
◆ ~SeqLineWidget()
SeqLineWidget::~SeqLineWidget |
( |
| ) |
|
|
virtual |
◆ cleanup()
void SeqLineWidget::cleanup |
( |
| ) |
|
Clean up anything before deletion.
◆ cleanupDestructionBox()
void SeqLineWidget::cleanupDestructionBox |
( |
| ) |
|
|
protected |
Clean up destruction box.
◆ contextMenuEvent()
void SeqLineWidget::contextMenuEvent |
( |
QGraphicsSceneContextMenuEvent * |
event | ) |
|
|
protected |
◆ getLineLength()
int SeqLineWidget::getLineLength |
( |
| ) |
|
|
inline |
Gets the length of the line.
- Returns
- Length of the line.
◆ getObjectWidget()
◆ moveDestructionBox()
void SeqLineWidget::moveDestructionBox |
( |
| ) |
|
|
protected |
◆ onDestructionBox()
bool SeqLineWidget::onDestructionBox |
( |
const QPointF & |
p | ) |
|
Return whether point is on the destruction box.
- Parameters
-
p | The point to investigate. |
- Returns
- True if point is on the destruction box of this sequence line.
◆ onWidget()
bool SeqLineWidget::onWidget |
( |
const QPointF & |
p | ) |
|
Return whether point is on sequence line. Takes into account destruction box if shown.
- Parameters
-
p | The point to investigate. |
- Returns
- True if point is on this sequence line.
◆ setEndOfLine()
void SeqLineWidget::setEndOfLine |
( |
int |
yPosition | ) |
|
Sets the y position of the bottom of the vertical line.
- Parameters
-
yPosition | The y coordinate for the bottom of the line. |
◆ setLineColorCmd()
void SeqLineWidget::setLineColorCmd |
( |
const QColor & |
color | ) |
|
◆ setStartPoint()
void SeqLineWidget::setStartPoint |
( |
int |
startX, |
|
|
int |
startY |
|
) |
| |
Set the start point of the line.
- Parameters
-
startX | X coordinate of the start point. |
startY | Y coordinate of the start point. |
◆ setupDestructionBox()
void SeqLineWidget::setupDestructionBox |
( |
| ) |
|
◆ m_DestructionBox
◆ m_nLengthY
int SeqLineWidget::m_nLengthY |
|
protected |
◆ m_nMouseDownEpsilonX
int const SeqLineWidget::m_nMouseDownEpsilonX = 20 |
|
staticprotected |
margin used for mouse clicks
◆ m_pObject
◆ m_scene
The documentation for this class was generated from the following files: