summaryrefslogtreecommitdiffstats
path: root/parts/fileview/filetreeviewwidgetimpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/fileview/filetreeviewwidgetimpl.cpp')
-rw-r--r--parts/fileview/filetreeviewwidgetimpl.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/parts/fileview/filetreeviewwidgetimpl.cpp b/parts/fileview/filetreeviewwidgetimpl.cpp
index 9e40a3bb..02b7be86 100644
--- a/parts/fileview/filetreeviewwidgetimpl.cpp
+++ b/parts/fileview/filetreeviewwidgetimpl.cpp
@@ -9,7 +9,7 @@
* *
***************************************************************************/
-#include <qpopupmenu.h>
+#include <tqpopupmenu.h>
#include <kxmlguiclient.h>
#include <kdebug.h>
#include <kaction.h>
@@ -31,19 +31,19 @@ using namespace filetreeview;
///////////////////////////////////////////////////////////////////////////////
FileTreeViewWidgetImpl::FileTreeViewWidgetImpl( FileTreeWidget *parent, const char *name )
- : QObject( parent, name ), m_branchItemFactory( 0 ),
+ : TQObject( parent, name ), m_branchItemFactory( 0 ),
m_part( parent->part() ), m_isReloadingTree( false )
{
kdDebug(9017) << "FileTreeViewWidgetImpl::FileTreeViewWidgetImpl()" << endl;
// Actions
m_actionToggleShowNonProjectFiles = new KToggleAction( i18n("Show Non Project Files"), KShortcut(),
- this, SLOT(slotToggleShowNonProjectFiles()), this, "actiontoggleshowshownonprojectfiles" );
+ this, TQT_SLOT(slotToggleShowNonProjectFiles()), this, "actiontoggleshowshownonprojectfiles" );
m_actionToggleShowNonProjectFiles->setCheckedState(i18n("Hide Non Project Files"));
m_actionToggleShowNonProjectFiles->setWhatsThis(i18n("<b>Show non project files</b><p>Shows files that do not belong to a project in a file tree."));
// Reload good ol' settings
- QDomDocument &dom = *m_part->projectDom();
+ TQDomDocument &dom = *m_part->projectDom();
m_actionToggleShowNonProjectFiles->setChecked( !DomUtil::readBoolEntry(dom, "/kdevfileview/tree/hidenonprojectfiles") );
}
@@ -55,7 +55,7 @@ FileTreeViewWidgetImpl::~FileTreeViewWidgetImpl()
delete m_branchItemFactory;
- QDomDocument &dom = *m_part->projectDom();
+ TQDomDocument &dom = *m_part->projectDom();
DomUtil::writeBoolEntry( dom, "/kdevfileview/tree/hidenonprojectfiles", !showNonProjectFiles() );
}
@@ -68,14 +68,14 @@ FileTreeWidget *FileTreeViewWidgetImpl::fileTree() const
///////////////////////////////////////////////////////////////////////////////
-QDomDocument &FileTreeViewWidgetImpl::projectDom() const
+TQDomDocument &FileTreeViewWidgetImpl::projectDom() const
{
return *part()->projectDom();
}
///////////////////////////////////////////////////////////////////////////////
-QString FileTreeViewWidgetImpl::projectDirectory() const
+TQString FileTreeViewWidgetImpl::projectDirectory() const
{
return part()->project()->projectDirectory();
}
@@ -89,14 +89,14 @@ bool FileTreeViewWidgetImpl::showNonProjectFiles() const
///////////////////////////////////////////////////////////////////////////////
-void FileTreeViewWidgetImpl::fillPopupMenu( QPopupMenu *popupMenu, QListViewItem *item ) const
+void FileTreeViewWidgetImpl::fillPopupMenu( TQPopupMenu *popupMenu, TQListViewItem *item ) const
{
// Show the "reload tree" menu-item only if it is requested for the root object
// and we don't have a sync-with-repository operation pending (which otherwise will
// kill the call-back's from working)
if (item == fileTree()->firstChild() && canReloadTree())
{
- int id = popupMenu->insertItem( i18n( "Reload Tree"), this, SLOT( slotReloadTree() ) );
+ int id = popupMenu->insertItem( i18n( "Reload Tree"), this, TQT_SLOT( slotReloadTree() ) );
popupMenu->setWhatsThis( id, i18n("<b>Reload tree</b><p>Reloads the project files tree.") );
}
@@ -111,8 +111,8 @@ KURL::List FileTreeViewWidgetImpl::selectedPathUrls()
KURL::List urlList;
- QValueList<QListViewItem*> list = allSelectedItems( fileTree()->firstChild() );
- QValueList<QListViewItem*>::Iterator it = list.begin();
+ TQValueList<TQListViewItem*> list = allSelectedItems( fileTree()->firstChild() );
+ TQValueList<TQListViewItem*>::Iterator it = list.begin();
while( it != list.end() )
{
FileTreeViewItem * item = static_cast<FileTreeViewItem*>( *it );
@@ -130,9 +130,9 @@ KURL::List FileTreeViewWidgetImpl::selectedPathUrls()
///////////////////////////////////////////////////////////////////////////////
-QValueList<QListViewItem*> FileTreeViewWidgetImpl::allSelectedItems( QListViewItem * item ) const
+TQValueList<TQListViewItem*> FileTreeViewWidgetImpl::allSelectedItems( TQListViewItem * item ) const
{
- QValueList<QListViewItem*> list;
+ TQValueList<TQListViewItem*> list;
if ( item )
{
@@ -141,7 +141,7 @@ QValueList<QListViewItem*> FileTreeViewWidgetImpl::allSelectedItems( QListViewIt
list << item;
}
- QListViewItem * it = item->firstChild();
+ TQListViewItem * it = item->firstChild();
while( it )
{
list += allSelectedItems( it );