|
|
@ -934,7 +934,7 @@ TQSize MDWSlider::sizeHint() const {
|
|
|
|
bool MDWSlider::eventFilter( TQObject* obj, TQEvent* e )
|
|
|
|
bool MDWSlider::eventFilter( TQObject* obj, TQEvent* e )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (e->type() == TQEvent::MouseButtonPress) {
|
|
|
|
if (e->type() == TQEvent::MouseButtonPress) {
|
|
|
|
TQMouseEvent *qme = TQT_TQMOUSEEVENT(e);
|
|
|
|
TQMouseEvent *qme = static_cast<TQMouseEvent*>(e);
|
|
|
|
if (qme->button() == TQt::RightButton) {
|
|
|
|
if (qme->button() == TQt::RightButton) {
|
|
|
|
showContextMenu();
|
|
|
|
showContextMenu();
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
@ -942,7 +942,7 @@ bool MDWSlider::eventFilter( TQObject* obj, TQEvent* e )
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// Attention: We don't filter WheelEvents for KSmallSlider, because it handles WheelEvents itself
|
|
|
|
// Attention: We don't filter WheelEvents for KSmallSlider, because it handles WheelEvents itself
|
|
|
|
else if ( (e->type() == TQEvent::Wheel) && !obj->isA("KSmallSlider") ) {
|
|
|
|
else if ( (e->type() == TQEvent::Wheel) && !obj->isA("KSmallSlider") ) {
|
|
|
|
TQWheelEvent *qwe = TQT_TQWHEELEVENT(e);
|
|
|
|
TQWheelEvent *qwe = static_cast<TQWheelEvent*>(e);
|
|
|
|
if (qwe->delta() > 0) {
|
|
|
|
if (qwe->delta() > 0) {
|
|
|
|
increaseVolume();
|
|
|
|
increaseVolume();
|
|
|
|
}
|
|
|
|
}
|
|
|
|