summaryrefslogtreecommitdiffstats
path: root/karm/kaccelmenuwatch.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /karm/kaccelmenuwatch.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'karm/kaccelmenuwatch.cpp')
-rw-r--r--karm/kaccelmenuwatch.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/karm/kaccelmenuwatch.cpp b/karm/kaccelmenuwatch.cpp
index f3aac3230..ddabb1d86 100644
--- a/karm/kaccelmenuwatch.cpp
+++ b/karm/kaccelmenuwatch.cpp
@@ -5,12 +5,12 @@
*/
#include <assert.h>
-#include <qpopupmenu.h>
+#include <tqpopupmenu.h>
#include "kaccelmenuwatch.h"
-KAccelMenuWatch::KAccelMenuWatch( KAccel *accel, QObject *parent )
- : QObject( parent ),
+KAccelMenuWatch::KAccelMenuWatch( KAccel *accel, TQObject *parent )
+ : TQObject( parent ),
_accel( accel ),
_menu ( 0 )
{
@@ -18,7 +18,7 @@ KAccelMenuWatch::KAccelMenuWatch( KAccel *accel, QObject *parent )
_menuList.setAutoDelete( false );
}
-void KAccelMenuWatch::setMenu( QPopupMenu *menu )
+void KAccelMenuWatch::setMenu( TQPopupMenu *menu )
{
assert( menu );
@@ -27,7 +27,7 @@ void KAccelMenuWatch::setMenu( QPopupMenu *menu )
if ( !_menuList.findRef( menu ) ) {
_menuList.append( menu );
- connect( menu, SIGNAL(destroyed()), this, SLOT(removeDeadMenu()) );
+ connect( menu, TQT_SIGNAL(destroyed()), this, TQT_SLOT(removeDeadMenu()) );
}
_menu = menu;
@@ -36,7 +36,7 @@ void KAccelMenuWatch::setMenu( QPopupMenu *menu )
void KAccelMenuWatch::connectAccel( int itemId, const char *action )
{
AccelItem *item = newAccelItem( _menu, itemId, StringAccel ) ;
- item->action = QString::fromLocal8Bit( action );
+ item->action = TQString::fromLocal8Bit( action );
}
void KAccelMenuWatch::connectAccel( int itemId, KStdAccel::StdAccel accel )
@@ -49,7 +49,7 @@ void KAccelMenuWatch::updateMenus()
{
assert( _accel != 0 );
- QPtrListIterator<AccelItem> iter( _accList );
+ TQPtrListIterator<AccelItem> iter( _accList );
AccelItem *item;
for( ; (item = iter.current()) ; ++iter ) {
@@ -71,7 +71,7 @@ void KAccelMenuWatch::updateMenus()
void KAccelMenuWatch::removeDeadMenu()
{
- QPopupMenu *sdr = (QPopupMenu *) sender();
+ TQPopupMenu *sdr = (TQPopupMenu *) sender();
assert( sdr );
if ( !_menuList.findRef( sdr ) )
@@ -96,7 +96,7 @@ loop:
return;
}
-KAccelMenuWatch::AccelItem *KAccelMenuWatch::newAccelItem( QPopupMenu *,
+KAccelMenuWatch::AccelItem *KAccelMenuWatch::newAccelItem( TQPopupMenu *,
int itemId, AccelType type )
{
AccelItem *item = new AccelItem;