1 #ifndef GRAPH_ANALYSIS_GUI_ITEMS_LABEL_HPP 2 #define GRAPH_ANALYSIS_GUI_ITEMS_LABEL_HPP 4 #include <QGraphicsSceneDragDropEvent> 5 #include <QGraphicsTextItem> 11 #include "../../Vertex.hpp" 27 class Label :
public QGraphicsTextItem
31 QPointF mDragStartPosition;
38 Label(
const std::string& label, QGraphicsItem* parent);
49 QVariant
itemChange(QGraphicsItem::GraphicsItemChange change,
const QVariant& value);
55 #endif // GRAPH_ANALYSIS_GUI_ITEMS_LABEL_HPP void setTextInteraction(bool on, bool selectAll=false)
toggles direct editing options of the displayed text
Definition: Label.cpp:25
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
qt mouse double-click callback
Definition: Label.cpp:49
graphical node text label and Cluster label implementation
Definition: Label.hpp:27
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
Label(const std::string &label, QGraphicsItem *parent)
constructor
Definition: Label.cpp:14
QVariant itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant &value)
qt item changed callback
Definition: Label.cpp:61