summaryrefslogtreecommitdiffstats
path: root/part/kxe_treeview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'part/kxe_treeview.cpp')
-rw-r--r--part/kxe_treeview.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/part/kxe_treeview.cpp b/part/kxe_treeview.cpp
index ce89961..e16b3c8 100644
--- a/part/kxe_treeview.cpp
+++ b/part/kxe_treeview.cpp
@@ -24,13 +24,13 @@
#include "kxeconfiguration.h"
#include "kxetreeviewsettings.h"
-#include <klocale.h>
+#include <tdelocale.h>
#include <kdebug.h>
#include <kxmlgui.h>
#include <kxmlguiclient.h>
-#include <kpopupmenu.h>
-#include <kglobalsettings.h>
-#include <kmessagebox.h>
+#include <tdepopupmenu.h>
+#include <tdeglobalsettings.h>
+#include <tdemessagebox.h>
// include files for TQt
#include "qdom_add.h"
@@ -45,7 +45,7 @@ static const int autoOpenTimeout = 750;
KXE_TreeView::KXE_TreeView( KXMLGUIClient * pGUIClient, TQWidget * pParent, const char * pszName )
- : KListView(pParent,pszName),
+ : TDEListView(pParent,pszName),
m_pGUIClient(pGUIClient),
m_nBookmarkedItems(0)
{
@@ -363,7 +363,7 @@ TQString KXE_TreeView::getSelectedPath() const
void KXE_TreeView::contentsMousePressEvent( TQMouseEvent * pEvent )
{
- KListView::contentsMousePressEvent(pEvent);
+ TDEListView::contentsMousePressEvent(pEvent);
if ( pEvent->button() == RightButton )
{
@@ -668,7 +668,7 @@ void KXE_TreeView::rename( TQListViewItem * pItem, int nColumn )
KXE_TreeViewItem * pXMLItem = static_cast <KXE_TreeViewItem*> (pItem);
if ( pXMLItem->xmlNode()->isElement() ) // inplace-renaming only for items representing XML elements
- KListView::rename( pItem, nColumn ); // inplace-renaming via base class functionality
+ TDEListView::rename( pItem, nColumn ); // inplace-renaming via base class functionality
else if(pXMLItem->xmlNode()->isCharacterData()) // launch dialog for editing text nodes
(dynamic_cast <KXMLEditorPart *> (m_pGUIClient))->slotXmlCharDataEdit();
@@ -698,16 +698,16 @@ KXE_TreeViewItem * KXE_TreeView::findCorrespondingItem( const TQDomNode & node )
// Drag & Drop
//////////////////////////////////////////////////////////////
-/** Overrides KListView::contentsMouseMoveEvent */
+/** Overrides TDEListView::contentsMouseMoveEvent */
void KXE_TreeView::contentsMouseMoveEvent(TQMouseEvent *e)
{
- KListView::contentsMouseMoveEvent(e);
+ TDEListView::contentsMouseMoveEvent(e);
// exit, if dragging is disabled
if ( ! KXMLEditorFactory::configuration()->treeview()->enableDragging() )
return;
- if(!m_bDrag || (e->pos() - m_dragPos).manhattanLength() <= KGlobalSettings::dndEventDelay())
+ if(!m_bDrag || (e->pos() - m_dragPos).manhattanLength() <= TDEGlobalSettings::dndEventDelay())
return;
m_bDrag = false;
@@ -732,10 +732,10 @@ void KXE_TreeView::contentsMouseMoveEvent(TQMouseEvent *e)
pDrag->drag();
}
-/** Overrides KListView::contentsMouseReleaseEvent */
+/** Overrides TDEListView::contentsMouseReleaseEvent */
void KXE_TreeView::contentsMouseReleaseEvent(TQMouseEvent *e)
{
- KListView::contentsMouseReleaseEvent(e);
+ TDEListView::contentsMouseReleaseEvent(e);
m_bDrag = false;
}
@@ -904,7 +904,7 @@ KXE_TreeViewItem* KXE_TreeView::lastChild()
void KXE_TreeView::keyPressEvent(TQKeyEvent *e)
{
- KListView::keyPressEvent(e);
+ TDEListView::keyPressEvent(e);
emit sigKeyPressed(e);
}