summaryrefslogtreecommitdiffstats
path: root/tdeui/tdetoolbarbutton.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-13 20:33:00 +0900
committerMichele Calgaro <[email protected]>2023-11-15 23:44:25 +0900
commitc8ece3630d4d21acaf1749fc2cf660a0463070c3 (patch)
treebae3d3c70886ceeffd914cac031dfeab532a607a /tdeui/tdetoolbarbutton.cpp
parent419c185be746df8bba59fe5de991b4a2b3977897 (diff)
downloadtdelibs-c8ece3630d4d21acaf1749fc2cf660a0463070c3.tar.gz
tdelibs-c8ece3630d4d21acaf1749fc2cf660a0463070c3.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'tdeui/tdetoolbarbutton.cpp')
-rw-r--r--tdeui/tdetoolbarbutton.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tdeui/tdetoolbarbutton.cpp b/tdeui/tdetoolbarbutton.cpp
index c5f0eb99f..2c859ab2f 100644
--- a/tdeui/tdetoolbarbutton.cpp
+++ b/tdeui/tdetoolbarbutton.cpp
@@ -455,10 +455,10 @@ void TDEToolBarButton::mousePressEvent( TQMouseEvent * e )
{
d->m_buttonDown = true;
- if ( e->button() == Qt::MidButton )
+ if ( e->button() == TQt::MidButton )
{
// Get TQToolButton to show the button being down while pressed
- TQMouseEvent ev( TQEvent::MouseButtonPress, e->pos(), e->globalPos(), Qt::LeftButton, e->state() );
+ TQMouseEvent ev( TQEvent::MouseButtonPress, e->pos(), e->globalPos(), TQt::LeftButton, e->state() );
TQToolButton::mousePressEvent(&ev);
return;
}
@@ -468,9 +468,9 @@ void TDEToolBarButton::mousePressEvent( TQMouseEvent * e )
void TDEToolBarButton::mouseReleaseEvent( TQMouseEvent * e )
{
TQt::ButtonState state = TQt::ButtonState(e->button() | (e->state() & KeyButtonMask));
- if ( e->button() == Qt::MidButton )
+ if ( e->button() == TQt::MidButton )
{
- TQMouseEvent ev( TQEvent::MouseButtonRelease, e->pos(), e->globalPos(), Qt::LeftButton, e->state() );
+ TQMouseEvent ev( TQEvent::MouseButtonRelease, e->pos(), e->globalPos(), TQt::LeftButton, e->state() );
TQToolButton::mouseReleaseEvent(&ev);
}
else
@@ -676,8 +676,8 @@ void TDEToolBarButton::slotClicked()
// emit buttonClicked when the button was clicked while being in an extension popupmenu
if ( d->m_parent && !d->m_parent->rect().contains( geometry().center() ) ) {
ButtonState state = TDEApplication::keyboardMouseState();
- if ( ( state & Qt::MouseButtonMask ) == Qt::NoButton )
- state = ButtonState( Qt::LeftButton | state );
+ if ( ( state & TQt::MouseButtonMask ) == TQt::NoButton )
+ state = ButtonState( TQt::LeftButton | state );
emit buttonClicked( d->m_id, state ); // Doesn't work with MidButton
}
}