Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/7/head
Michele Calgaro 1 year ago
parent 9119aa80e2
commit 67a9fd3225
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -77,7 +77,7 @@ void KbfxConfigDlgAbout::init()
bool KbfxConfigDlgAbout::eventFilter ( TQObject *obj, TQEvent *ev ) bool KbfxConfigDlgAbout::eventFilter ( TQObject *obj, TQEvent *ev )
{ {
TQCursor kbfxCursor; TQCursor kbfxCursor;
kbfxCursor.setShape ( Qt::PointingHandCursor ); kbfxCursor.setShape ( TQt::PointingHandCursor );
this->setCursor ( ( const TQCursor ) kbfxCursor ); this->setCursor ( ( const TQCursor ) kbfxCursor );
if ( ev->type() == TQEvent::FocusIn || ev->type() == TQEvent::Enter ) if ( ev->type() == TQEvent::FocusIn || ev->type() == TQEvent::Enter )

@ -237,7 +237,7 @@ void KbfxButton::toggleKMenu()
void KbfxButton::mousePressEvent ( TQMouseEvent * e ) void KbfxButton::mousePressEvent ( TQMouseEvent * e )
{ {
e->accept(); e->accept();
if ( e->button() == Qt::LeftButton ) if ( e->button() == TQt::LeftButton )
{ {
if ( m_toggle == false ) if ( m_toggle == false )
{ {
@ -264,7 +264,7 @@ void KbfxButton::mousePressEvent ( TQMouseEvent * e )
emit clicked (); emit clicked ();
} }
if ( e->button() == Qt::RightButton ) if ( e->button() == TQt::RightButton )
{ {
m_fadePix = m_normal_skin; m_fadePix = m_normal_skin;
fade(); fade();

@ -174,7 +174,7 @@ KbfxPlasmaCanvasView::contentsMouseMoveEvent ( TQMouseEvent * me )
if ( canvas () == NULL ) if ( canvas () == NULL )
return; return;
if ( me->state () & Qt::LeftButton ) if ( me->state () & TQt::LeftButton )
{ {
int distance = ( me->pos () - m_dragPos ).manhattanLength (); int distance = ( me->pos () - m_dragPos ).manhattanLength ();
if ( distance > TQApplication::startDragDistance () ) if ( distance > TQApplication::startDragDistance () )
@ -227,7 +227,7 @@ KbfxPlasmaCanvasView::contentsMousePressEvent ( TQMouseEvent * me )
tmp->shade (); tmp->shade ();
m_clickPos = me->pos (); m_clickPos = me->pos ();
if ( me->button () == Qt::LeftButton ) if ( me->button () == TQt::LeftButton )
m_dragPos = me->pos (); m_dragPos = me->pos ();
TQScrollView::contentsMousePressEvent ( me ); TQScrollView::contentsMousePressEvent ( me );
canvas ()->update (); canvas ()->update ();

@ -61,8 +61,8 @@ KbfxPlasmaIndexView::checkMousePos ()
if ( TQCursor::pos () == mapToGlobal ( contentsToViewport ( m_currentPos ) ) ) if ( TQCursor::pos () == mapToGlobal ( contentsToViewport ( m_currentPos ) ) )
{ {
TQMouseEvent me ( TQEvent::MouseButtonPress, TQMouseEvent me ( TQEvent::MouseButtonPress,
this->mapToGlobal ( m_currentPos ), Qt::LeftButton, this->mapToGlobal ( m_currentPos ), TQt::LeftButton,
Qt::LeftButton ); TQt::LeftButton );
clearAll (); clearAll ();
@ -360,7 +360,7 @@ KbfxPlasmaIndexView::contentsMouseMoveEvent ( TQMouseEvent * me )
void void
KbfxPlasmaIndexView::contentsMousePressEvent ( TQMouseEvent * me ) KbfxPlasmaIndexView::contentsMousePressEvent ( TQMouseEvent * me )
{ {
if ( me->button () == Qt::RightButton ) if ( me->button () == TQt::RightButton )
return; return;
clearAll (); clearAll ();

@ -212,7 +212,7 @@ KbfxSpinxMenuWidget::~KbfxSpinxMenuWidget ()
void void
KbfxSpinxMenuWidget::search_clear ( const ButtonState & _btn ) KbfxSpinxMenuWidget::search_clear ( const ButtonState & _btn )
{ {
if ( _btn == Qt::LeftButton ) if ( _btn == TQt::LeftButton )
{ {
/* Clear the search box */ /* Clear the search box */
m_search->clear(); m_search->clear();

@ -66,7 +66,7 @@ KbfxToolTip::KbfxToolTip ( TQWidget * parent, const char *name, WFlags fl ) :
connect ( _update_timer, TQT_SIGNAL ( timeout () ), this, TQT_SLOT ( logoMove () ) ); connect ( _update_timer, TQT_SIGNAL ( timeout () ), this, TQT_SLOT ( logoMove () ) );
TQCursor kbfxCursor; TQCursor kbfxCursor;
kbfxCursor.setShape ( Qt::PointingHandCursor ); kbfxCursor.setShape ( TQt::PointingHandCursor );
this->setCursor ( ( const TQCursor ) kbfxCursor ); this->setCursor ( ( const TQCursor ) kbfxCursor );
} }
@ -266,7 +266,7 @@ KbfxToolTip::paintEvent ( TQPaintEvent * pe )
TQPainter p; TQPainter p;
p.begin ( this ); p.begin ( this );
p.setBackgroundMode ( Qt::TransparentMode ); p.setBackgroundMode ( TQt::TransparentMode );
p.drawPixmap ( TQRect ( 7, 16, _dude_box.width (), _dude_box.height () ), p.drawPixmap ( TQRect ( 7, 16, _dude_box.width (), _dude_box.height () ),
_dude_box ); _dude_box );
int _paddingX = ( ( _dude_box.height () - _dude.height () ) / 2 ) + 16; int _paddingX = ( ( _dude_box.height () - _dude.height () ) / 2 ) + 16;

Loading…
Cancel
Save