From 421b60af92c83b889f8903c2898f2bd07186fcd8 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 5 May 2011 22:07:15 +0000 Subject: TQt4 port kbfx This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kbfx@1230544 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kbfxlib/common/kbfxpixmaplabel.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'kbfxlib/common/kbfxpixmaplabel.cpp') diff --git a/kbfxlib/common/kbfxpixmaplabel.cpp b/kbfxlib/common/kbfxpixmaplabel.cpp index a85627e..9907473 100644 --- a/kbfxlib/common/kbfxpixmaplabel.cpp +++ b/kbfxlib/common/kbfxpixmaplabel.cpp @@ -21,15 +21,15 @@ #include "kbfxpixmaplabel.h" -KbfxPixmapLabel::KbfxPixmapLabel ( QWidget *parent, const char *name, WFlags fl ) - : QLabel ( parent, name, fl ) +KbfxPixmapLabel::KbfxPixmapLabel ( TQWidget *tqparent, const char *name, WFlags fl ) + : TQLabel ( tqparent, name, fl ) { - // setFrameShape(QLabel::WinPanel); - // setFrameShadow(QLabel::Sunken); - setFrameShape ( QLabel::LineEditPanel ); - setFrameShadow ( QLabel::Plain ); + // setFrameShape(TQLabel::WinPanel); + // setFrameShadow(TQLabel::Sunken); + setFrameShape ( TQLabel::LineEditPanel ); + setFrameShadow ( TQLabel::Plain ); setScaledContents ( FALSE ); - setAlignment ( int ( QLabel::WordBreak | QLabel::AlignCenter ) ); + tqsetAlignment ( int ( TQLabel::WordBreak | TQLabel::AlignCenter ) ); setMouseTracking ( TRUE ); } @@ -40,25 +40,25 @@ KbfxPixmapLabel::~KbfxPixmapLabel() /* normalize label */ void KbfxPixmapLabel::normalize () { - setFrameShape ( QLabel::NoFrame ); - setFrameShadow ( QLabel::Plain ); + setFrameShape ( TQLabel::NoFrame ); + setFrameShadow ( TQLabel::Plain ); setScaledContents ( FALSE ); - setAlignment ( int ( QLabel::WordBreak | QLabel::AlignCenter ) ); + tqsetAlignment ( int ( TQLabel::WordBreak | TQLabel::AlignCenter ) ); } /* processing drag events over label */ -void KbfxPixmapLabel::dragEnterEvent ( QDragEnterEvent *mouseDragEnterEvent ) +void KbfxPixmapLabel::dragEnterEvent ( TQDragEnterEvent *mouseDragEnterEvent ) { kdDebug() << "Accepting drag..." << endl; - mouseDragEnterEvent->accept ( QTextDrag::canDecode ( mouseDragEnterEvent ) ); + mouseDragEnterEvent->accept ( TQTextDrag::canDecode ( mouseDragEnterEvent ) ); } /* processing drop events over label */ -void KbfxPixmapLabel::dropEvent ( QDropEvent *mouseDropEvent ) +void KbfxPixmapLabel::dropEvent ( TQDropEvent *mouseDropEvent ) { - QString text; + TQString text; - if ( QTextDrag::decode ( mouseDropEvent,text ) ) + if ( TQTextDrag::decode ( mouseDropEvent,text ) ) { if ( text.startsWith ( "file://" ) ) text.remove ( "file://" ); @@ -69,7 +69,7 @@ void KbfxPixmapLabel::dropEvent ( QDropEvent *mouseDropEvent ) } /* processing mouse click events over label */ -void KbfxPixmapLabel::mousePressEvent ( QMouseEvent * e ) +void KbfxPixmapLabel::mousePressEvent ( TQMouseEvent * e ) { e->accept(); ButtonState _btn = e->button(); @@ -80,7 +80,7 @@ void KbfxPixmapLabel::mousePressEvent ( QMouseEvent * e ) } /* processing mouse double click events over label */ -void KbfxPixmapLabel::mouseDoubleClickEvent ( QMouseEvent * e ) +void KbfxPixmapLabel::mouseDoubleClickEvent ( TQMouseEvent * e ) { e->accept(); ButtonState _btn = e->button(); -- cgit v1.2.3