Advertisement
Validrian

Untitled

Aug 20th, 2014
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1.  
  2. struct SliderWatcher
  3. {
  4. public:
  5. QLabel* theLabel;
  6. float* Float;
  7. DebugSlider* theSlider;
  8.  
  9. void initialize(float& theFloat,float min,float max,const char* Name)
  10. {
  11. theLabel=new QLabel();
  12. *Float = theFloat;
  13. theLabel->setText(Name);
  14. theSlider=new DebugSlider(min,max,true,20.0f);
  15. theSlider->setValue(*Float);
  16. }
  17. void update()
  18. {
  19. *Float = theSlider->value();
  20. }
  21. };
  22. QList<SliderWatcher> watchedSl;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement