From 67a9fd3225cb598a4731ae04d41f254fc3d1a255 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 5 Nov 2023 15:23:04 +0900 Subject: [PATCH] Replace Qt with TQt Signed-off-by: Michele Calgaro --- configdialog/kbfxconfigdlgabout.ui.h | 2 +- src/kbfxbutton.cpp | 4 ++-- src/kbfxplasmacanvasview.cpp | 4 ++-- src/kbfxplasmaindexview.cpp | 6 +++--- src/kbfxspinxmenu.cpp | 2 +- src/kbfxtooltip.cpp | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/configdialog/kbfxconfigdlgabout.ui.h b/configdialog/kbfxconfigdlgabout.ui.h index 1ee1a23..3e7c2f5 100644 --- a/configdialog/kbfxconfigdlgabout.ui.h +++ b/configdialog/kbfxconfigdlgabout.ui.h @@ -77,7 +77,7 @@ void KbfxConfigDlgAbout::init() bool KbfxConfigDlgAbout::eventFilter ( TQObject *obj, TQEvent *ev ) { TQCursor kbfxCursor; - kbfxCursor.setShape ( Qt::PointingHandCursor ); + kbfxCursor.setShape ( TQt::PointingHandCursor ); this->setCursor ( ( const TQCursor ) kbfxCursor ); if ( ev->type() == TQEvent::FocusIn || ev->type() == TQEvent::Enter ) diff --git a/src/kbfxbutton.cpp b/src/kbfxbutton.cpp index f89a61a..585b36e 100644 --- a/src/kbfxbutton.cpp +++ b/src/kbfxbutton.cpp @@ -237,7 +237,7 @@ void KbfxButton::toggleKMenu() void KbfxButton::mousePressEvent ( TQMouseEvent * e ) { e->accept(); - if ( e->button() == Qt::LeftButton ) + if ( e->button() == TQt::LeftButton ) { if ( m_toggle == false ) { @@ -264,7 +264,7 @@ void KbfxButton::mousePressEvent ( TQMouseEvent * e ) emit clicked (); } - if ( e->button() == Qt::RightButton ) + if ( e->button() == TQt::RightButton ) { m_fadePix = m_normal_skin; fade(); diff --git a/src/kbfxplasmacanvasview.cpp b/src/kbfxplasmacanvasview.cpp index 6be8623..5fec81e 100644 --- a/src/kbfxplasmacanvasview.cpp +++ b/src/kbfxplasmacanvasview.cpp @@ -174,7 +174,7 @@ KbfxPlasmaCanvasView::contentsMouseMoveEvent ( TQMouseEvent * me ) if ( canvas () == NULL ) return; - if ( me->state () & Qt::LeftButton ) + if ( me->state () & TQt::LeftButton ) { int distance = ( me->pos () - m_dragPos ).manhattanLength (); if ( distance > TQApplication::startDragDistance () ) @@ -227,7 +227,7 @@ KbfxPlasmaCanvasView::contentsMousePressEvent ( TQMouseEvent * me ) tmp->shade (); m_clickPos = me->pos (); - if ( me->button () == Qt::LeftButton ) + if ( me->button () == TQt::LeftButton ) m_dragPos = me->pos (); TQScrollView::contentsMousePressEvent ( me ); canvas ()->update (); diff --git a/src/kbfxplasmaindexview.cpp b/src/kbfxplasmaindexview.cpp index 303b612..a1e575d 100644 --- a/src/kbfxplasmaindexview.cpp +++ b/src/kbfxplasmaindexview.cpp @@ -61,8 +61,8 @@ KbfxPlasmaIndexView::checkMousePos () if ( TQCursor::pos () == mapToGlobal ( contentsToViewport ( m_currentPos ) ) ) { TQMouseEvent me ( TQEvent::MouseButtonPress, - this->mapToGlobal ( m_currentPos ), Qt::LeftButton, - Qt::LeftButton ); + this->mapToGlobal ( m_currentPos ), TQt::LeftButton, + TQt::LeftButton ); clearAll (); @@ -360,7 +360,7 @@ KbfxPlasmaIndexView::contentsMouseMoveEvent ( TQMouseEvent * me ) void KbfxPlasmaIndexView::contentsMousePressEvent ( TQMouseEvent * me ) { - if ( me->button () == Qt::RightButton ) + if ( me->button () == TQt::RightButton ) return; clearAll (); diff --git a/src/kbfxspinxmenu.cpp b/src/kbfxspinxmenu.cpp index 4506da0..f881de4 100644 --- a/src/kbfxspinxmenu.cpp +++ b/src/kbfxspinxmenu.cpp @@ -212,7 +212,7 @@ KbfxSpinxMenuWidget::~KbfxSpinxMenuWidget () void KbfxSpinxMenuWidget::search_clear ( const ButtonState & _btn ) { - if ( _btn == Qt::LeftButton ) + if ( _btn == TQt::LeftButton ) { /* Clear the search box */ m_search->clear(); diff --git a/src/kbfxtooltip.cpp b/src/kbfxtooltip.cpp index a34e724..b929380 100644 --- a/src/kbfxtooltip.cpp +++ b/src/kbfxtooltip.cpp @@ -66,7 +66,7 @@ KbfxToolTip::KbfxToolTip ( TQWidget * parent, const char *name, WFlags fl ) : connect ( _update_timer, TQT_SIGNAL ( timeout () ), this, TQT_SLOT ( logoMove () ) ); TQCursor kbfxCursor; - kbfxCursor.setShape ( Qt::PointingHandCursor ); + kbfxCursor.setShape ( TQt::PointingHandCursor ); this->setCursor ( ( const TQCursor ) kbfxCursor ); } @@ -266,7 +266,7 @@ KbfxToolTip::paintEvent ( TQPaintEvent * pe ) TQPainter p; p.begin ( this ); - p.setBackgroundMode ( Qt::TransparentMode ); + p.setBackgroundMode ( TQt::TransparentMode ); p.drawPixmap ( TQRect ( 7, 16, _dude_box.width (), _dude_box.height () ), _dude_box ); int _paddingX = ( ( _dude_box.height () - _dude.height () ) / 2 ) + 16;