Disconnect temporary connections on the Profile.

This code adds the disconnections of temporaries. A temporary connection
is a connection that should be active only on a certain state, and we need
to clean that for the new state that will enter after.

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2014-05-21 21:23:19 -03:00 committed by Dirk Hohndel
parent 27afb33806
commit e249fe8703
2 changed files with 19 additions and 1 deletions

View file

@ -67,7 +67,6 @@ public:
ProfileWidget2(QWidget *parent = 0);
void plotDives(QList<dive *> dives);
void replot();
virtual bool eventFilter(QObject *, QEvent *);
void setupItem(AbstractProfilePolygonItem *item, DiveCartesianAxis *hAxis, DiveCartesianAxis *vAxis, DivePlotDataModel *model, int vData, int hData, int zValue);
void setPrintMode(bool mode, bool grayscale = false);
@ -90,6 +89,7 @@ slots: // Necessary to call from QAction's signals.
void makeFirstDC();
void pointInserted(const QModelIndex &parent, int start, int end);
void pointsRemoved(const QModelIndex &, int start, int end);
void replot();
protected:
virtual void resizeEvent(QResizeEvent *event);
@ -105,6 +105,8 @@ private: /*methods*/
void setupItemSizes();
void addItemsToScene();
void setupItemOnScene();
void disconnectTemporaryConnections();
private:
DivePlotDataModel *dataModel;
int zoomLevel;