summaryrefslogtreecommitdiffstats
path: root/kview/modules/browser
diff options
context:
space:
mode:
Diffstat (limited to 'kview/modules/browser')
-rw-r--r--kview/modules/browser/kmyfileitemlist.cpp8
-rw-r--r--kview/modules/browser/kmyfileitemlist.h10
-rw-r--r--kview/modules/browser/kviewbrowser.cpp18
-rw-r--r--kview/modules/browser/kviewbrowser.h2
4 files changed, 19 insertions, 19 deletions
diff --git a/kview/modules/browser/kmyfileitemlist.cpp b/kview/modules/browser/kmyfileitemlist.cpp
index 534e0876..28c3cb08 100644
--- a/kview/modules/browser/kmyfileitemlist.cpp
+++ b/kview/modules/browser/kmyfileitemlist.cpp
@@ -21,14 +21,14 @@
#include <kfileitem.h>
KMyFileItemList::KMyFileItemList() {}
-KMyFileItemList::KMyFileItemList( const QPtrList<KFileItem> & l ) : QPtrList<KFileItem>( l ) {}
+KMyFileItemList::KMyFileItemList( const TQPtrList<KFileItem> & l ) : TQPtrList<KFileItem>( l ) {}
-KMyFileItemList & KMyFileItemList::operator=( const QPtrList<KFileItem> & l )
+KMyFileItemList & KMyFileItemList::operator=( const TQPtrList<KFileItem> & l )
{
- return (KMyFileItemList &)QPtrList<KFileItem>::operator=( l );
+ return (KMyFileItemList &)TQPtrList<KFileItem>::operator=( l );
}
-int KMyFileItemList::compareItems( QPtrCollection::Item item1, QPtrCollection::Item item2 )
+int KMyFileItemList::compareItems( TQPtrCollection::Item item1, TQPtrCollection::Item item2 )
{
KFileItem * fileitem1 = static_cast<KFileItem *>( item1 );
KFileItem * fileitem2 = static_cast<KFileItem *>( item2 );
diff --git a/kview/modules/browser/kmyfileitemlist.h b/kview/modules/browser/kmyfileitemlist.h
index 052fce53..80f01013 100644
--- a/kview/modules/browser/kmyfileitemlist.h
+++ b/kview/modules/browser/kmyfileitemlist.h
@@ -20,18 +20,18 @@
#ifndef __kmyfileitemlist_h__
#define __kmyfileitemlist_h__
-#include <qptrlist.h>
+#include <tqptrlist.h>
class KFileItem;
-class KMyFileItemList : public QPtrList<KFileItem>
+class KMyFileItemList : public TQPtrList<KFileItem>
{
public:
KMyFileItemList();
- KMyFileItemList( const QPtrList<KFileItem> & );
- KMyFileItemList & operator=( const QPtrList<KFileItem> & );
+ KMyFileItemList( const TQPtrList<KFileItem> & );
+ KMyFileItemList & operator=( const TQPtrList<KFileItem> & );
protected:
- virtual int compareItems( QPtrCollection::Item item1, QPtrCollection::Item item2 );
+ virtual int compareItems( TQPtrCollection::Item item1, TQPtrCollection::Item item2 );
};
// vim:sw=4:ts=4
diff --git a/kview/modules/browser/kviewbrowser.cpp b/kview/modules/browser/kviewbrowser.cpp
index 6da318b7..936061eb 100644
--- a/kview/modules/browser/kviewbrowser.cpp
+++ b/kview/modules/browser/kviewbrowser.cpp
@@ -20,7 +20,7 @@
#include "kviewbrowser.h"
#include "kmyfileitemlist.h"
-#include <qcursor.h>
+#include <tqcursor.h>
#include <kdirlister.h>
#include <kaction.h>
@@ -36,7 +36,7 @@
typedef KGenericFactory<KViewBrowser> KViewBrowserFactory;
K_EXPORT_COMPONENT_FACTORY( kview_browserplugin, KViewBrowserFactory( "kviewbrowserplugin" ) )
-KViewBrowser::KViewBrowser( QObject* parent, const char* name, const QStringList & )
+KViewBrowser::KViewBrowser( TQObject* parent, const char* name, const TQStringList & )
: Plugin( parent, name )
, m_pDirLister( 0 )
, m_pFileItemList( 0 )
@@ -45,9 +45,9 @@ KViewBrowser::KViewBrowser( QObject* parent, const char* name, const QStringList
m_pViewer = static_cast<KImageViewer::Viewer *>( parent );
if( m_pViewer )
{
- m_paBack = KStdAction::back ( this, SLOT( slotBack() ), actionCollection(), "previous_image" );
+ m_paBack = KStdAction::back ( this, TQT_SLOT( slotBack() ), actionCollection(), "previous_image" );
m_paBack->setShortcut( SHIFT+Key_Left );
- m_paForward = KStdAction::forward( this, SLOT( slotForward() ), actionCollection(), "next_image" );
+ m_paForward = KStdAction::forward( this, TQT_SLOT( slotForward() ), actionCollection(), "next_image" );
m_paForward->setShortcut( SHIFT+Key_Right );
m_pExtension = m_pViewer->browserExtension();
}
@@ -156,13 +156,13 @@ void KViewBrowser::setupDirLister()
m_pDirLister = new KDirLister();
m_pDirLister->setMimeFilter( KImageIO::mimeTypes( KImageIO::Reading ) );
m_pDirLister->setShowingDotFiles( true );
- connect( m_pDirLister, SIGNAL( newItems( const KFileItemList & ) ), SLOT( slotNewItems( const KFileItemList & ) ) );
- connect( m_pDirLister, SIGNAL( deleteItem( KFileItem * ) ), SLOT( slotDeleteItem( KFileItem * ) ) );
+ connect( m_pDirLister, TQT_SIGNAL( newItems( const KFileItemList & ) ), TQT_SLOT( slotNewItems( const KFileItemList & ) ) );
+ connect( m_pDirLister, TQT_SIGNAL( deleteItem( KFileItem * ) ), TQT_SLOT( slotDeleteItem( KFileItem * ) ) );
}
if( m_pDirLister->url() != KURL( m_pViewer->url().directory( true, false ) ) )
{
- QApplication::setOverrideCursor( WaitCursor );
- QString url = m_pViewer->url().prettyURL();
+ TQApplication::setOverrideCursor( WaitCursor );
+ TQString url = m_pViewer->url().prettyURL();
int pos = url.findRev( "/" );
url = url.left( (unsigned int)pos );
kdDebug( 4630 ) << "open KDirLister for " << url << endl;
@@ -171,7 +171,7 @@ void KViewBrowser::setupDirLister()
kapp->processEvents();
//while( ! m_pFileItemList )
//kapp->processEvents();
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
}
}
diff --git a/kview/modules/browser/kviewbrowser.h b/kview/modules/browser/kviewbrowser.h
index 3ed918b6..96e8b17f 100644
--- a/kview/modules/browser/kviewbrowser.h
+++ b/kview/modules/browser/kviewbrowser.h
@@ -34,7 +34,7 @@ class KViewBrowser : public KParts::Plugin
{
Q_OBJECT
public:
- KViewBrowser( QObject* parent, const char* name, const QStringList & );
+ KViewBrowser( TQObject* parent, const char* name, const TQStringList & );
virtual ~KViewBrowser();
private slots: