summaryrefslogtreecommitdiffstats
path: root/kbfxlib/common/kbfxpixmaplabel.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-05 22:07:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-05 22:07:15 +0000
commit421b60af92c83b889f8903c2898f2bd07186fcd8 (patch)
treead873a24c9438baed4942fda795430a4c3dc9a9a /kbfxlib/common/kbfxpixmaplabel.cpp
parent39e896bddf25bf34cbf8be814d959181e2c1d1dd (diff)
downloadkbfx-421b60af92c83b889f8903c2898f2bd07186fcd8.tar.gz
kbfx-421b60af92c83b889f8903c2898f2bd07186fcd8.zip
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
Diffstat (limited to 'kbfxlib/common/kbfxpixmaplabel.cpp')
-rw-r--r--kbfxlib/common/kbfxpixmaplabel.cpp34
1 files changed, 17 insertions, 17 deletions
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();