Changeset 8521:217ef99fb156 in orange


Ignore:
Timestamp:
07/29/11 08:01:31 (3 years ago)
Author:
Noughmad <Noughmad@…>
Branch:
default
Convert:
75fb20f913b3c07463351fcd5f7b70e7ca6dfe3b
Message:

Install an event filter on the scene, because some of these events lead to crashes

Location:
source/orangeplot
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • source/orangeplot/CMakeLists.txt

    r8501 r8521  
    2121    networkcurve.cpp 
    2222    plot.cpp  
     23    sceneeventfilter.cpp 
    2324) 
    2425qt4_automoc(${orangeplot_SRCS}) 
  • source/orangeplot/networkcurve.sip

    r8518 r8521  
    9292    void set_nodes(QMap<int, NodeItem*> nodes); 
    9393    void remove_nodes(const QList<int> nodes); 
     94    void remove_node(int index); 
     95 
    9496    void set_edges(Edges edges); 
    9597    QList<QPair<int, int> > edge_indices(); 
  • source/orangeplot/plot.cpp

    r8511 r8521  
    66#include <QtCore/qmath.h> 
    77#include <limits> 
     8#include "sceneeventfilter.h" 
    89 
    910inline uint qHash(const DataPoint& pos) 
     
    4546{ 
    4647    setScene(new QGraphicsScene(this)); 
     48    scene()->installEventFilter(new SceneEventFilter(this)); 
    4749    clipItem = new QGraphicsRectItem(); 
    4850    clipItem->setPen(Qt::NoPen); 
Note: See TracChangeset for help on using the changeset viewer.