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/kasgroupitem.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/kasgroupitem.cpp')
-rw-r--r-- | kicker/extensions/kasbar/kasgroupitem.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kicker/extensions/kasbar/kasgroupitem.cpp b/kicker/extensions/kasbar/kasgroupitem.cpp index a4435f7c2..6e03e8e3c 100644 --- a/kicker/extensions/kasbar/kasgroupitem.cpp +++ b/kicker/extensions/kasbar/kasgroupitem.cpp @@ -51,10 +51,10 @@ /* ** Bug reports and questions can be sent to [email protected] */ -#include <qpainter.h> -#include <qbitmap.h> -#include <qtimer.h> -#include <qwmatrix.h> +#include <tqpainter.h> +#include <tqbitmap.h> +#include <tqtimer.h> +#include <tqwmatrix.h> #include <kdebug.h> #include <kglobal.h> @@ -83,10 +83,10 @@ KasGroupItem::KasGroupItem( KasTasker *parent ) setGroupItem( true ); setText( i18n("Group") ); - connect( parent, SIGNAL( layoutChanged() ), this, SLOT( hidePopup() ) ); - connect( parent, SIGNAL( layoutChanged() ), this, SLOT( update() ) ); - connect( this, SIGNAL(leftButtonClicked(QMouseEvent *)), SLOT(togglePopup()) ); - connect( this, SIGNAL(rightButtonClicked(QMouseEvent *)), SLOT(showGroupMenuAt(QMouseEvent *) ) ); + connect( parent, TQT_SIGNAL( layoutChanged() ), this, TQT_SLOT( hidePopup() ) ); + connect( parent, TQT_SIGNAL( layoutChanged() ), this, TQT_SLOT( update() ) ); + connect( this, TQT_SIGNAL(leftButtonClicked(TQMouseEvent *)), TQT_SLOT(togglePopup()) ); + connect( this, TQT_SIGNAL(rightButtonClicked(TQMouseEvent *)), TQT_SLOT(showGroupMenuAt(TQMouseEvent *) ) ); } KasGroupItem::~KasGroupItem() @@ -109,7 +109,7 @@ void KasGroupItem::addTask( Task::Ptr t ) updateIcon(); } - connect( t, SIGNAL( changed(bool) ), this, SLOT( update() ) ); + connect( t, TQT_SIGNAL( changed(bool) ), this, TQT_SLOT( update() ) ); update(); } @@ -140,7 +140,7 @@ void KasGroupItem::removeTask( Task::Ptr t ) void KasGroupItem::updateIcon() { - QPixmap p; + TQPixmap p; bool usedIconLoader = false; Task::Ptr t = items.first(); if (!t) @@ -162,7 +162,7 @@ void KasGroupItem::updateIcon() setIcon( p ); } -void KasGroupItem::paint( QPainter *p ) +void KasGroupItem::paint( TQPainter *p ) { KasItem::paint( p ); @@ -180,7 +180,7 @@ void KasGroupItem::paint( QPainter *p ) p->setPen( isShowingPopup() ? res->activePenColor() : res->inactivePenColor() ); if ( modCount ) { - QString modCountStr; + TQString modCountStr; modCountStr.setNum( modCount ); p->drawText( extent()-fontMetrics().width( modCountStr )-3, 15+fontMetrics().ascent(), @@ -226,7 +226,7 @@ void KasGroupItem::paint( QPainter *p ) } if ( ((int) items.count() > microsPerCol) && ( kasbar()->itemSize() != KasBar::Small ) ) { - QString countStr; + TQString countStr; countStr.setNum( items.count() ); p->drawText( extent()-fontMetrics().width( countStr )-3, extent()+fontMetrics().ascent()-16, @@ -257,7 +257,7 @@ KasPopup *KasGroupItem::createPopup() KasPopup *pop = new KasPopup( this ); bar = kasbar()->createChildBar( ( kasbar()->orientation() == Horizontal ) ? Vertical : Horizontal, pop ); - connect( pop, SIGNAL(shown()), SLOT(updatePopup()) ); + connect( pop, TQT_SIGNAL(shown()), TQT_SLOT(updatePopup()) ); return pop; @@ -283,15 +283,15 @@ void KasGroupItem::ungroup() kasbar()->moveToMain( this ); } -void KasGroupItem::showGroupMenuAt( QMouseEvent *ev ) +void KasGroupItem::showGroupMenuAt( TQMouseEvent *ev ) { showGroupMenuAt( ev->globalPos() ); } -void KasGroupItem::showGroupMenuAt( const QPoint &p ) +void KasGroupItem::showGroupMenuAt( const TQPoint &p ) { TaskRMBMenu *tm = new TaskRMBMenu(items, true, kasbar()); - tm->insertItem( i18n("&Ungroup" ), this, SLOT( ungroup() ) ); + tm->insertItem( i18n("&Ungroup" ), this, TQT_SLOT( ungroup() ) ); tm->insertSeparator(); tm->insertItem( i18n("&Kasbar"), kasbar()->contextMenu() ); |