summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-30 20:42:57 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-30 20:42:57 +0900
commit8d72e4c19c6fe86fd9b312f38190dfc7c6026046 (patch)
treeb1f3d6ae717569550bad606bd1390e1adb17cd7a
parent987871f05f53afb7ea9d2b787ff515ab8ae4002a (diff)
downloadk3b-8d72e4c19c6fe86fd9b312f38190dfc7c6026046.tar.gz
k3b-8d72e4c19c6fe86fd9b312f38190dfc7c6026046.zip
Replace 'Event' #define strings
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--libk3b/tools/k3blistview.cpp4
-rw-r--r--libk3b/tools/k3bpushbutton.cpp4
-rw-r--r--libk3b/tools/k3btoolbutton.cpp4
-rw-r--r--src/k3bprojecttabwidget.cpp2
-rw-r--r--src/projects/k3baudiotracksplitdialog.cpp4
5 files changed, 9 insertions, 9 deletions
diff --git a/libk3b/tools/k3blistview.cpp b/libk3b/tools/k3blistview.cpp
index 335bd8d..d00dddc 100644
--- a/libk3b/tools/k3blistview.cpp
+++ b/libk3b/tools/k3blistview.cpp
@@ -1015,7 +1015,7 @@ void K3bListView::slotEditorButtonClicked( K3bListViewItem* item, int col )
bool K3bListView::eventFilter( TQObject* o, TQEvent* e )
{
if( e->type() == TQEvent::KeyPress ) {
- TQKeyEvent* ke = TQT_TQKEYEVENT(e);
+ TQKeyEvent* ke = static_cast<TQKeyEvent*>(e);
if( ke->key() == Key_Tab ) {
if( o == m_editorLineEdit ||
o == d->msfEditLineEdit ||
@@ -1097,7 +1097,7 @@ bool K3bListView::eventFilter( TQObject* o, TQEvent* e )
// first let's grab the focus
viewport()->setFocus();
- TQMouseEvent* me = TQT_TQMOUSEEVENT( e );
+ TQMouseEvent* me = static_cast<TQMouseEvent*>( e );
TQListViewItem* item = itemAt( me->pos() );
int col = header()->sectionAt( me->pos().x() );
if( K3bCheckListViewItem* ci = dynamic_cast<K3bCheckListViewItem*>( item ) ) {
diff --git a/libk3b/tools/k3bpushbutton.cpp b/libk3b/tools/k3bpushbutton.cpp
index 780a338..636cc4b 100644
--- a/libk3b/tools/k3bpushbutton.cpp
+++ b/libk3b/tools/k3bpushbutton.cpp
@@ -99,12 +99,12 @@ bool K3bPushButton::eventFilter( TQObject* o, TQEvent* ev )
// is moved by a small distance.
if( popup() ) {
if( ev->type() == TQEvent::MouseButtonPress ) {
- TQMouseEvent* mev = TQT_TQMOUSEEVENT(ev);
+ TQMouseEvent* mev = static_cast<TQMouseEvent*>(ev);
d->mousePressPos = mev->pos();
d->popupTimer->start( TQApplication::startDragTime() );
}
else if( ev->type() == TQEvent::MouseMove ) {
- TQMouseEvent* mev = TQT_TQMOUSEEVENT(ev);
+ TQMouseEvent* mev = static_cast<TQMouseEvent*>(ev);
if( ( mev->pos() - d->mousePressPos).manhattanLength() > TDEGlobalSettings::dndEventDelay() ) {
d->popupTimer->stop();
slotDelayedPopup();
diff --git a/libk3b/tools/k3btoolbutton.cpp b/libk3b/tools/k3btoolbutton.cpp
index 65e8c51..3544ad6 100644
--- a/libk3b/tools/k3btoolbutton.cpp
+++ b/libk3b/tools/k3btoolbutton.cpp
@@ -83,7 +83,7 @@ bool K3bToolButton::eventFilter( TQObject* o, TQEvent* ev )
// is moved by a small distance.
if( TQToolButton::popup() ) {
if( ev->type() == TQEvent::MouseButtonPress ) {
- TQMouseEvent* mev = TQT_TQMOUSEEVENT(ev);
+ TQMouseEvent* mev = static_cast<TQMouseEvent*>(ev);
if( d->instantMenu ) {
setDown(true);
@@ -95,7 +95,7 @@ bool K3bToolButton::eventFilter( TQObject* o, TQEvent* ev )
}
}
else if( ev->type() == TQEvent::MouseMove ) {
- TQMouseEvent* mev = TQT_TQMOUSEEVENT(ev);
+ TQMouseEvent* mev = static_cast<TQMouseEvent*>(ev);
if( !d->instantMenu &&
( mev->pos() - d->mousePressPos).manhattanLength() > TDEGlobalSettings::dndEventDelay() ) {
openPopup();
diff --git a/src/k3bprojecttabwidget.cpp b/src/k3bprojecttabwidget.cpp
index 88537be..006e045 100644
--- a/src/k3bprojecttabwidget.cpp
+++ b/src/k3bprojecttabwidget.cpp
@@ -176,7 +176,7 @@ bool K3bProjectTabWidget::eventFilter( TQObject* o, TQEvent* e )
{
if( o == tabBar() ) {
if( e->type() == TQEvent::MouseButtonPress ) {
- TQMouseEvent* me = TQT_TQMOUSEEVENT(e);
+ TQMouseEvent* me = static_cast<TQMouseEvent*>(e);
if( me->button() == TQt::RightButton ) {
if( projectAt( me->pos() ) ) {
// we need change the tab because the actions work on the current tab
diff --git a/src/projects/k3baudiotracksplitdialog.cpp b/src/projects/k3baudiotracksplitdialog.cpp
index d6584ae..80426bb 100644
--- a/src/projects/k3baudiotracksplitdialog.cpp
+++ b/src/projects/k3baudiotracksplitdialog.cpp
@@ -164,11 +164,11 @@ bool K3bAudioTrackSplitDialog::eventFilter( TQObject* o, TQEvent* e )
{
if( o == m_editorWidget ) {
if( e->type() == TQEvent::MouseButtonDblClick ) {
- TQMouseEvent* me = TQT_TQMOUSEEVENT( e );
+ TQMouseEvent* me = static_cast<TQMouseEvent*>( e );
splitAt( me->pos() );
}
else if( e->type() == TQEvent::ContextMenu ) {
- TQContextMenuEvent* ce = TQT_TQCONTEXTMENUEVENT( e );
+ TQContextMenuEvent* ce = static_cast<TQContextMenuEvent*>( e );
ce->consume();
m_lastClickPosition = ce->pos();
if( m_editorWidget->findRange( ce->pos().x() ) > 0 )