summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-05 15:23:04 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-05 15:23:04 +0900
commit67a9fd3225cb598a4731ae04d41f254fc3d1a255 (patch)
tree11521abbd9f4c23c60e07161b82ba536d0b902ec /src
parent9119aa80e2361c34c3e03919f97262a068c4d5d8 (diff)
downloadkbfx-67a9fd3225cb598a4731ae04d41f254fc3d1a255.tar.gz
kbfx-67a9fd3225cb598a4731ae04d41f254fc3d1a255.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src')
-rw-r--r--src/kbfxbutton.cpp4
-rw-r--r--src/kbfxplasmacanvasview.cpp4
-rw-r--r--src/kbfxplasmaindexview.cpp6
-rw-r--r--src/kbfxspinxmenu.cpp2
-rw-r--r--src/kbfxtooltip.cpp4
5 files changed, 10 insertions, 10 deletions
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;