summaryrefslogtreecommitdiffstats
path: root/kommander/editor/actionlistview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kommander/editor/actionlistview.cpp')
-rw-r--r--kommander/editor/actionlistview.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/kommander/editor/actionlistview.cpp b/kommander/editor/actionlistview.cpp
index 0db57f76..6513daf0 100644
--- a/kommander/editor/actionlistview.cpp
+++ b/kommander/editor/actionlistview.cpp
@@ -19,35 +19,35 @@
**********************************************************************/
#include "actionlistview.h"
-#include <qdragobject.h>
-#include <qheader.h>
+#include <tqdragobject.h>
+#include <tqheader.h>
#include <klocale.h>
-ActionListView::ActionListView( QWidget *parent, const char *name )
- : QListView( parent, name )
+ActionListView::ActionListView( TQWidget *parent, const char *name )
+ : TQListView( parent, name )
{
header()->setStretchEnabled( true );
setRootIsDecorated( true );
setSorting( -1 );
- connect( this, SIGNAL( contextMenuRequested( QListViewItem *, const QPoint &, int ) ),
- this, SLOT( rmbMenu( QListViewItem *, const QPoint & ) ) );
+ connect( this, TQT_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint &, int ) ),
+ this, TQT_SLOT( rmbMenu( TQListViewItem *, const TQPoint & ) ) );
}
-ActionItem::ActionItem( QListView *lv, QAction *ac )
- : QListViewItem( lv ), a( 0 ), g( 0 )
+ActionItem::ActionItem( TQListView *lv, TQAction *ac )
+ : TQListViewItem( lv ), a( 0 ), g( 0 )
{
- if ( ac->inherits( "QActionGroup" ) )
+ if ( ac->inherits( "TQActionGroup" ) )
g = (QDesignerActionGroup*)ac;
else
a = (QDesignerAction*)ac;
setDragEnabled( true );
}
-ActionItem::ActionItem( QListViewItem *i, QAction *ac )
- : QListViewItem( i ), a( 0 ), g( 0 )
+ActionItem::ActionItem( TQListViewItem *i, TQAction *ac )
+ : TQListViewItem( i ), a( 0 ), g( 0 )
{
- if ( ac->inherits( "QActionGroup" ) )
+ if ( ac->inherits( "TQActionGroup" ) )
g = (QDesignerActionGroup*)ac;
else
a = (QDesignerAction*)ac;
@@ -57,36 +57,36 @@ ActionItem::ActionItem( QListViewItem *i, QAction *ac )
void ActionItem::moveToEnd()
{
- QListViewItem *i = this;
+ TQListViewItem *i = this;
while ( i->nextSibling() )
i = i->nextSibling();
if ( i != this )
moveItem( i );
}
-QDragObject *ActionListView::dragObject()
+TQDragObject *ActionListView::dragObject()
{
ActionItem *i = (ActionItem*)currentItem();
if ( !i )
return 0;
- QStoredDrag *drag = 0;
+ TQStoredDrag *drag = 0;
if ( i->action() ) {
- drag = new QStoredDrag( "application/x-designer-actions", viewport() );
- QString s = QString::number( (long)i->action() ); // #### huha, that is evil
- drag->setEncodedData( QCString( s.latin1() ) );
+ drag = new TQStoredDrag( "application/x-designer-actions", viewport() );
+ TQString s = TQString::number( (long)i->action() ); // #### huha, that is evil
+ drag->setEncodedData( TQCString( s.latin1() ) );
drag->setPixmap( i->action()->iconSet().pixmap() );
} else {
- drag = new QStoredDrag( "application/x-designer-actiongroup", viewport() );
- QString s = QString::number( (long)i->actionGroup() ); // #### huha, that is evil
- drag->setEncodedData( QCString( s.latin1() ) );
+ drag = new TQStoredDrag( "application/x-designer-actiongroup", viewport() );
+ TQString s = TQString::number( (long)i->actionGroup() ); // #### huha, that is evil
+ drag->setEncodedData( TQCString( s.latin1() ) );
drag->setPixmap( i->actionGroup()->iconSet().pixmap() );
}
return drag;
}
-void ActionListView::rmbMenu( QListViewItem *i, const QPoint &p )
+void ActionListView::rmbMenu( TQListViewItem *i, const TQPoint &p )
{
- QPopupMenu *popup = new QPopupMenu( this );
+ TQPopupMenu *popup = new TQPopupMenu( this );
popup->insertItem( i18n("New &Action" ), 0 );
popup->insertItem( i18n("New Action &Group" ), 1 );
popup->insertItem( i18n("New &Dropdown Action Group" ), 2 );