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 )
{
TQCursor kbfxCursor;
kbfxCursor.setShape ( Qt::PointingHandCursor );
kbfxCursor.setShape ( TQt::PointingHandCursor );
this->setCursor ( ( const TQCursor ) kbfxCursor );
if ( ev->type() == TQEvent::FocusIn || ev->type() == TQEvent::Enter )

@ -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();

@ -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 ();

@ -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 ();

@ -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();

@ -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;

Loading…
Cancel
Save