From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- korn/hvitem.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'korn/hvitem.cpp') diff --git a/korn/hvitem.cpp b/korn/hvitem.cpp index e8cc2483d..7d836da3c 100644 --- a/korn/hvitem.cpp +++ b/korn/hvitem.cpp @@ -27,10 +27,10 @@ #include #include -#include -#include +#include +#include -HVItem::HVItem( QWidget *parent, const char *name ) +HVItem::HVItem( TQWidget *parent, const char *name ) : BoxContainerItem( 0, name ), _label( new Label( parent, "label" ) ), _popup( new KPopupMenu( _label, "popupmenu" ) ), @@ -39,9 +39,9 @@ HVItem::HVItem( QWidget *parent, const char *name ) _popup->insertTitle( kapp->miniIcon(), kapp->caption() ); this->fillKPopupMenu( _popup, _actions ); _popup->insertSeparator(); - KStdAction::quit( kapp, SLOT( quit() ), _actions )->plug( _popup ); + KStdAction::quit( kapp, TQT_SLOT( quit() ), _actions )->plug( _popup ); - connect( _label, SIGNAL( mouseButtonPressed( Qt::ButtonState ) ), this, SLOT( mouseButtonPressed( Qt::ButtonState ) ) ); + connect( _label, TQT_SIGNAL( mouseButtonPressed( Qt::ButtonState ) ), this, TQT_SLOT( mouseButtonPressed( Qt::ButtonState ) ) ); } HVItem::~HVItem() @@ -59,24 +59,24 @@ void HVItem::setCount( const int count, const bool newMessages ) drawLabel( _label, count, newMessages ); } -void HVItem::setTooltip( const QString& string ) +void HVItem::setTooltip( const TQString& string ) { - QToolTip::add( _label, string ); + TQToolTip::add( _label, string ); } -void HVItem::slotShowPassivePopup( QPtrList< KornMailSubject >* list, int total, bool date, const QString& name ) +void HVItem::slotShowPassivePopup( TQPtrList< KornMailSubject >* list, int total, bool date, const TQString& name ) { showPassivePopup( _label, list, total, name, date ); } -void HVItem::slotShowPassivePopup( const QString& errorMessage, const QString& name ) +void HVItem::slotShowPassivePopup( const TQString& errorMessage, const TQString& name ) { - KPassivePopup::message( QString( "korn-%1-%2" ).arg( objId() ).arg( name ), errorMessage, _label, "Passive error message" ); + KPassivePopup::message( TQString( "korn-%1-%2" ).arg( objId() ).arg( name ), errorMessage, _label, "Passive error message" ); } void HVItem::doPopup() { - _popup->popup( QCursor::pos() ); + _popup->popup( TQCursor::pos() ); } #include "hvitem.moc" -- cgit v1.2.1