34 #include <QtCore/QThread> 35 #include <QApplication> 56 friend struct EventFilter;
82 value = (value/m_stepping)*m_stepping;
83 if(QThread::currentThread() == QCoreApplication::instance()->thread()){
92 if(m_stepping < 1) m_stepping = 1;
93 m_stepping = stepping;
97 virtual bool event ( QEvent * event );
110 void removeCallbacks();
114 void collectValueChanged(
int);
117 void collectSliderPressed();
120 void collectSliderMoved(
int);
123 void collectSliderReleased();
undocument this line if you encounter any issues!
Definition: Any.h:37
Event
associated event
Definition: ThreadedUpdatableSlider.h:62
Definition: ThreadedUpdatableSlider.h:62
Utility class for threaded updatable sliders.
Definition: SliderUpdateEvent.h:40
int m_stepping
Definition: ThreadedUpdatableSlider.h:69
void setStepping(int stepping)
the given stepping is automatically clipped to [1,...]
Definition: ThreadedUpdatableSlider.h:91
utils::Function< void > f
associated 'void f()' -function
Definition: ThreadedUpdatableSlider.h:63
#define ICLQt_API
Definition: CompatMacros.h:178
std::vector< CB > callbacks
internal list of callbacks
Definition: ThreadedUpdatableSlider.h:67
internally callback type
Definition: ThreadedUpdatableSlider.h:60
Compability class.
Definition: ThreadedUpdatableSlider.h:52
void setValueFromOtherThread(int value)
call this function to update a widget's UI from an external thread
Definition: ThreadedUpdatableSlider.h:81