mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-22 06:09:09 -04:00
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:
parent
0ebc1223b3
commit
6cad38bd7c
2 changed files with 25 additions and 4 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue