From e985f7e545f4739493965aad69bbecb136dc9346 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 16 Jun 2011 19:02:47 +0000 Subject: TQt4 port kdewebdev This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1237029 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kommander/editor/actionlistview.h | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'kommander/editor/actionlistview.h') diff --git a/kommander/editor/actionlistview.h b/kommander/editor/actionlistview.h index 160d2abb..53a5fda6 100644 --- a/kommander/editor/actionlistview.h +++ b/kommander/editor/actionlistview.h @@ -1,7 +1,7 @@ /********************************************************************** ** Copyright (C) 2000 Trolltech AS. All rights reserved. ** -** This file is part of Qt Designer. +** This file is part of TQt Designer. ** ** This file may be distributed and/or modified under the terms of the ** GNU General Public License version 2 as published by the Free Software @@ -24,38 +24,39 @@ #include #include "actiondnd.h" -class ActionItem : public QListViewItem +class ActionItem : public TQListViewItem { public: ActionItem( TQListView *lv, bool group ) : TQListViewItem( lv ), - a( group ? 0 : new QDesignerAction( 0 ) ), - g( group ? new QDesignerActionGroup( 0 ) : 0 ) { setDragEnabled( TRUE ); } + a( group ? 0 : new TQDesignerAction( 0 ) ), + g( group ? new TQDesignerActionGroup( 0 ) : 0 ) { setDragEnabled( TRUE ); } ActionItem( TQListView *lv, TQAction *ac ); ActionItem( TQListViewItem *i, TQAction *ac ); - ActionItem( ActionItem *parent, bool group = FALSE ) - : TQListViewItem( parent ), - a( group ? 0 : new QDesignerAction( parent->actionGroup() ) ), - g( group ? new QDesignerActionGroup( parent->actionGroup() ) : 0 ) { setDragEnabled( TRUE ); moveToEnd(); } + ActionItem( ActionItem *tqparent, bool group = FALSE ) + : TQListViewItem( tqparent ), + a( group ? 0 : new TQDesignerAction( tqparent->actionGroup() ) ), + g( group ? new TQDesignerActionGroup( tqparent->actionGroup() ) : 0 ) { setDragEnabled( TRUE ); moveToEnd(); } - QDesignerAction *action() const { return a; } - QDesignerActionGroup *actionGroup() const { return g; } + TQDesignerAction *action() const { return a; } + TQDesignerActionGroup *actionGroup() const { return g; } private: void moveToEnd(); private: - QDesignerAction *a; - QDesignerActionGroup *g; + TQDesignerAction *a; + TQDesignerActionGroup *g; }; -class ActionListView : public QListView +class ActionListView : public TQListView { Q_OBJECT + TQ_OBJECT public: - ActionListView( TQWidget *parent = 0, const char *name = 0 ); + ActionListView( TQWidget *tqparent = 0, const char *name = 0 ); protected: TQDragObject *dragObject(); -- cgit v1.2.1