mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-22 01:10:53 +01:00
Desactivation des changements de curseur (trop foireux pour l'instant)
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@90 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -528,15 +528,16 @@ void Conducer::mouseReleaseEvent(QGraphicsSceneMouseEvent *e) {
|
||||
@param e Le QGraphicsSceneHoverEvent decrivant l'evenement
|
||||
*/
|
||||
void Conducer::hoverMoveEvent(QGraphicsSceneHoverEvent *e) {
|
||||
/*
|
||||
if (isSelected()) {
|
||||
QPointF hover_point = mapFromScene(e -> pos());
|
||||
ConducerSegment *segment = segments;
|
||||
bool cursor_set = false;
|
||||
while (segment -> hasNextSegment()) {
|
||||
/*if (hasClickedOn(hover_point, segment -> secondPoint())) {
|
||||
if (hasClickedOn(hover_point, segment -> secondPoint())) {
|
||||
setCursor(Qt::CrossCursor);
|
||||
cursor_set = true;
|
||||
} else */if (hasClickedOn(hover_point, segment -> middle())) {
|
||||
} else if (hasClickedOn(hover_point, segment -> middle())) {
|
||||
setCursor(segment -> isVertical() ? Qt::SplitHCursor : Qt::SplitVCursor);
|
||||
cursor_set = true;
|
||||
}
|
||||
@@ -544,6 +545,7 @@ void Conducer::hoverMoveEvent(QGraphicsSceneHoverEvent *e) {
|
||||
}
|
||||
if (!cursor_set) setCursor(Qt::ArrowCursor);
|
||||
}
|
||||
*/
|
||||
QGraphicsPathItem::hoverMoveEvent(e);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user