summaryrefslogtreecommitdiffstats
path: root/kmix
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-30 21:31:00 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-12-02 22:46:24 +0900
commit452c1e8191d38a7449364467ae0601ace808e7f7 (patch)
treed468d9f534be62e275feb15dc903af92f02e7547 /kmix
parentbd26faa962728155a0a4337ea54b3eb6a454df0b (diff)
downloadtdemultimedia-452c1e8191d38a7449364467ae0601ace808e7f7.tar.gz
tdemultimedia-452c1e8191d38a7449364467ae0601ace808e7f7.zip
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 7ef70d6552605c1df5653f039314c3ac568069cc)
Diffstat (limited to 'kmix')
-rw-r--r--kmix/mdwenum.cpp2
-rw-r--r--kmix/mdwslider.cpp4
-rw-r--r--kmix/mdwswitch.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/kmix/mdwenum.cpp b/kmix/mdwenum.cpp
index 04500df7..ceeac1f3 100644
--- a/kmix/mdwenum.cpp
+++ b/kmix/mdwenum.cpp
@@ -194,7 +194,7 @@ void MDWEnum::setDisabled( bool value ) {
bool MDWEnum::eventFilter( TQObject* obj, TQEvent* e )
{
if (e->type() == TQEvent::MouseButtonPress) {
- TQMouseEvent *qme = TQT_TQMOUSEEVENT(e);
+ TQMouseEvent *qme = static_cast<TQMouseEvent*>(e);
if (qme->button() == TQt::RightButton) {
showContextMenu();
return true;
diff --git a/kmix/mdwslider.cpp b/kmix/mdwslider.cpp
index f75041d9..6b493e48 100644
--- a/kmix/mdwslider.cpp
+++ b/kmix/mdwslider.cpp
@@ -934,7 +934,7 @@ TQSize MDWSlider::sizeHint() const {
bool MDWSlider::eventFilter( TQObject* obj, TQEvent* e )
{
if (e->type() == TQEvent::MouseButtonPress) {
- TQMouseEvent *qme = TQT_TQMOUSEEVENT(e);
+ TQMouseEvent *qme = static_cast<TQMouseEvent*>(e);
if (qme->button() == TQt::RightButton) {
showContextMenu();
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
else if ( (e->type() == TQEvent::Wheel) && !obj->isA("KSmallSlider") ) {
- TQWheelEvent *qwe = TQT_TQWHEELEVENT(e);
+ TQWheelEvent *qwe = static_cast<TQWheelEvent*>(e);
if (qwe->delta() > 0) {
increaseVolume();
}
diff --git a/kmix/mdwswitch.cpp b/kmix/mdwswitch.cpp
index 9a59028e..48b918a3 100644
--- a/kmix/mdwswitch.cpp
+++ b/kmix/mdwswitch.cpp
@@ -219,7 +219,7 @@ void MDWSwitch::setDisabled( bool value ) {
bool MDWSwitch::eventFilter( TQObject* obj, TQEvent* e )
{
if (e->type() == TQEvent::MouseButtonPress) {
- TQMouseEvent *qme = TQT_TQMOUSEEVENT(e);
+ TQMouseEvent *qme = static_cast<TQMouseEvent*>(e);
if (qme->button() == TQt::RightButton) {
showContextMenu();
return true;