diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
commit | c663b6440964f6ac48027143ac9e63298991f9d0 (patch) | |
tree | 6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kicker/extensions/kasbar/kastaskpopup.cpp | |
parent | a061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff) | |
download | tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kicker/extensions/kasbar/kastaskpopup.cpp')
-rw-r--r-- | kicker/extensions/kasbar/kastaskpopup.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kicker/extensions/kasbar/kastaskpopup.cpp b/kicker/extensions/kasbar/kastaskpopup.cpp index 91f3ecbc9..25c096a65 100644 --- a/kicker/extensions/kasbar/kastaskpopup.cpp +++ b/kicker/extensions/kasbar/kastaskpopup.cpp @@ -51,8 +51,8 @@ /* ** Bug reports and questions can be sent to kde-devel@kde.org */ -#include <qpainter.h> -#include <qapplication.h> +#include <tqpainter.h> +#include <tqapplication.h> #include <kdebug.h> #include <kglobalsettings.h> @@ -76,7 +76,7 @@ KasTaskPopup::KasTaskPopup( KasTaskItem *item, const char *name ) setFont(KGlobalSettings::generalFont()); setMouseTracking( true ); - QString text = item->task()->visibleIconicName(); + TQString text = item->task()->visibleIconicName(); if ( item->kasbar()->thumbnailsEnabled() && item->task()->hasThumbnail() ) { titleBg.resize( width(), TITLE_HEIGHT ); @@ -94,7 +94,7 @@ KasTaskPopup::KasTaskPopup( KasTaskItem *item, const char *name ) Qt::black, colorGroup().mid(), KPixmapEffect::DiagonalGradient ); - connect( item->task(), SIGNAL( thumbnailChanged() ), SLOT( refresh() ) ); + connect( item->task(), TQT_SIGNAL( thumbnailChanged() ), TQT_SLOT( refresh() ) ); } KasTaskPopup::~KasTaskPopup() @@ -103,7 +103,7 @@ KasTaskPopup::~KasTaskPopup() void KasTaskPopup::refresh() { - QString text = item->task()->visibleIconicName(); + TQString text = item->task()->visibleIconicName(); if ( item->kasbar()->thumbnailsEnabled() && item->task()->hasThumbnail() ) { resize( item->task()->thumbnail().width() + 2, TITLE_HEIGHT + item->task()->thumbnail().height() + 2 ); @@ -112,12 +112,12 @@ void KasTaskPopup::refresh() update(); } -void KasTaskPopup::paintEvent( QPaintEvent * ) +void KasTaskPopup::paintEvent( TQPaintEvent * ) { - QPainter p( this ); + TQPainter p( this ); p.drawPixmap( 0, 0, titleBg ); - QString text = item->task()->visibleIconicName(); + TQString text = item->task()->visibleIconicName(); p.setPen( Qt::white ); if ( fontMetrics().width( text ) > width() - 4 ) @@ -126,7 +126,7 @@ void KasTaskPopup::paintEvent( QPaintEvent * ) else p.drawText( 1, 1, width() - 4, TITLE_HEIGHT - 1, AlignCenter, text ); - QPixmap thumb = item->task()->thumbnail(); + TQPixmap thumb = item->task()->thumbnail(); if ( !thumb.isNull() ) p.drawPixmap( 1, TITLE_HEIGHT, thumb ); |