summaryrefslogtreecommitdiffstats
path: root/juk
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-11-30 21:31:00 +0900
commit7ef70d6552605c1df5653f039314c3ac568069cc (patch)
treedb2665f267bfba3c2eac260ba5c5fcc29b1ff4d7 /juk
parent1304109bee51323c2fb7258df91b2d4eccd83030 (diff)
downloadtdemultimedia-7ef70d6552605c1df5653f039314c3ac568069cc.tar.gz
tdemultimedia-7ef70d6552605c1df5653f039314c3ac568069cc.zip
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'juk')
-rw-r--r--juk/playlist.cpp4
-rw-r--r--juk/searchwidget.cpp2
-rw-r--r--juk/statuslabel.cpp2
-rw-r--r--juk/tageditor.cpp2
-rw-r--r--juk/viewmode.cpp2
5 files changed, 6 insertions, 6 deletions
diff --git a/juk/playlist.cpp b/juk/playlist.cpp
index 38cdb73f..21df8553 100644
--- a/juk/playlist.cpp
+++ b/juk/playlist.cpp
@@ -1116,7 +1116,7 @@ bool Playlist::eventFilter(TQObject *watched, TQEvent *e)
switch(e->type()) {
case TQEvent::MouseMove:
{
- if((TQT_TQMOUSEEVENT(e)->state() & TQt::LeftButton) == TQt::LeftButton &&
+ if((static_cast<TQMouseEvent*>(e)->state() & TQt::LeftButton) == TQt::LeftButton &&
!action<TDEToggleAction>("resizeColumnsManually")->isChecked())
{
m_columnWidthModeChanged = true;
@@ -1129,7 +1129,7 @@ bool Playlist::eventFilter(TQObject *watched, TQEvent *e)
}
case TQEvent::MouseButtonPress:
{
- if(TQT_TQMOUSEEVENT(e)->button() == TQt::RightButton)
+ if(static_cast<TQMouseEvent*>(e)->button() == TQt::RightButton)
m_headerMenu->popup(TQCursor::pos());
break;
diff --git a/juk/searchwidget.cpp b/juk/searchwidget.cpp
index be489358..19e98c33 100644
--- a/juk/searchwidget.cpp
+++ b/juk/searchwidget.cpp
@@ -139,7 +139,7 @@ bool SearchLine::eventFilter(TQObject *watched, TQEvent *e)
if(watched != m_lineEdit || e->type() != TQEvent::KeyPress)
return TQHBox::eventFilter(watched, e);
- TQKeyEvent *key = TQT_TQKEYEVENT(e);
+ TQKeyEvent *key = static_cast<TQKeyEvent*>(e);
if(key->key() == TQt::Key_Down)
emit signalDownPressed();
diff --git a/juk/statuslabel.cpp b/juk/statuslabel.cpp
index c3c2da0f..a590362c 100644
--- a/juk/statuslabel.cpp
+++ b/juk/statuslabel.cpp
@@ -175,7 +175,7 @@ bool StatusLabel::eventFilter(TQObject *o, TQEvent *e)
if(!o || !e)
return false;
- TQMouseEvent *mouseEvent = TQT_TQMOUSEEVENT(e);
+ TQMouseEvent *mouseEvent = static_cast<TQMouseEvent*>(e);
if(e->type() == TQEvent::MouseButtonRelease &&
mouseEvent->button() == TQt::LeftButton)
{
diff --git a/juk/tageditor.cpp b/juk/tageditor.cpp
index c0b0a183..c1200e3d 100644
--- a/juk/tageditor.cpp
+++ b/juk/tageditor.cpp
@@ -768,7 +768,7 @@ void TagEditor::showEvent(TQShowEvent *e)
bool TagEditor::eventFilter(TQObject *watched, TQEvent *e)
{
- TQKeyEvent *ke = TQT_TQKEYEVENT(e);
+ TQKeyEvent *ke = static_cast<TQKeyEvent*>(e);
if(watched->inherits("TQSpinBox") && e->type() == TQEvent::KeyRelease && ke->state() == 0)
slotDataChanged();
diff --git a/juk/viewmode.cpp b/juk/viewmode.cpp
index bdb2b7a8..040bf3a3 100644
--- a/juk/viewmode.cpp
+++ b/juk/viewmode.cpp
@@ -105,7 +105,7 @@ void ViewMode::paintCell(PlaylistBox::Item *item,
bool ViewMode::eventFilter(TQObject *watched, TQEvent *e)
{
if(m_visible && watched == m_playlistBox->viewport() && e->type() == TQEvent::Resize) {
- TQResizeEvent *re = TQT_TQRESIZEEVENT(e);
+ TQResizeEvent *re = static_cast<TQResizeEvent*>(e);
if(re->size().width() != re->oldSize().width())
m_needsRefresh = true;
}