Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct SliderWatcher
- {
- public:
- QLabel* theLabel;
- float* Float;
- DebugSlider* theSlider;
- void initialize(float& theFloat,float min,float max,const char* Name)
- {
- theLabel=new QLabel();
- *Float = theFloat;
- theLabel->setText(Name);
- theSlider=new DebugSlider(min,max,true,20.0f);
- theSlider->setValue(*Float);
- }
- void update()
- {
- *Float = theSlider->value();
- }
- };
- QList<SliderWatcher> watchedSl;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement