Fixed deadlock in RSGraphWidget (Patch from Cyril)

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7908 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2015-02-04 10:56:19 +00:00
parent 0ebc1223b3
commit 6cad38bd7c
2 changed files with 25 additions and 4 deletions

View file

@ -93,6 +93,7 @@ protected slots:
// Calls the internal source for a new data points; called by the timer. You might want to overload this
// if the collection system needs it. Otherwise, the default method will call getValues()
void update() ;
void updateIfPossible() ;
protected:
virtual void getValues(std::map<std::string,float>& values) const = 0 ;// overload this in your own class to fill in the values you want to display.
@ -156,7 +157,7 @@ class RSGraphWidget: public QFrame
void paintEvent(QPaintEvent *event);
protected slots:
void updateDisplay() {}
void updateIfPossible() ;
private:
/** Gets the width of the desktop, the max # of points. */