summaryrefslogtreecommitdiffstats
path: root/kview/modules/presenter
diff options
context:
space:
mode:
Diffstat (limited to 'kview/modules/presenter')
-rw-r--r--kview/modules/presenter/config/kviewpresenterconfig.cpp16
-rw-r--r--kview/modules/presenter/config/kviewpresenterconfig.h6
-rw-r--r--kview/modules/presenter/imagelistitem.cpp16
-rw-r--r--kview/modules/presenter/imagelistitem.h12
-rw-r--r--kview/modules/presenter/kviewpresenter.cpp160
-rw-r--r--kview/modules/presenter/kviewpresenter.h18
-rw-r--r--kview/modules/presenter/kviewpresenterconfmodule.cpp14
-rw-r--r--kview/modules/presenter/kviewpresenterconfmodule.h8
8 files changed, 125 insertions, 125 deletions
diff --git a/kview/modules/presenter/config/kviewpresenterconfig.cpp b/kview/modules/presenter/config/kviewpresenterconfig.cpp
index 92dd8627..e44889ed 100644
--- a/kview/modules/presenter/config/kviewpresenterconfig.cpp
+++ b/kview/modules/presenter/config/kviewpresenterconfig.cpp
@@ -18,9 +18,9 @@
#include "kviewpresenterconfig.h"
-#include <qlayout.h>
-#include <qcheckbox.h>
-#include <qframe.h>
+#include <tqlayout.h>
+#include <tqcheckbox.h>
+#include <tqframe.h>
#include <klocale.h>
#include <kdialog.h>
@@ -28,17 +28,17 @@
#include <kconfig.h>
#include <kgenericfactory.h>
-typedef KGenericFactory<KViewPresenterConfig, QWidget> KViewPresenterConfigFactory;
+typedef KGenericFactory<KViewPresenterConfig, TQWidget> KViewPresenterConfigFactory;
K_EXPORT_COMPONENT_FACTORY( kcm_kviewpresenterconfig, KViewPresenterConfigFactory( "kcm_kviewpresenterconfig" ) )
-KViewPresenterConfig::KViewPresenterConfig( QWidget * parent, const char *, const QStringList & args )
+KViewPresenterConfig::KViewPresenterConfig( TQWidget * parent, const char *, const TQStringList & args )
: KCModule( KViewPresenterConfigFactory::instance(), parent, args )
{
- QBoxLayout * layout = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
+ TQBoxLayout * layout = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
layout->setAutoAdd( true );
- m_pCheckBox = new QCheckBox( "This is only for testing...", this );
- connect( m_pCheckBox, SIGNAL( clicked() ), this, SLOT( checkChanged() ) );
+ m_pCheckBox = new TQCheckBox( "This is only for testing...", this );
+ connect( m_pCheckBox, TQT_SIGNAL( clicked() ), this, TQT_SLOT( checkChanged() ) );
}
KViewPresenterConfig::~KViewPresenterConfig()
diff --git a/kview/modules/presenter/config/kviewpresenterconfig.h b/kview/modules/presenter/config/kviewpresenterconfig.h
index c839690a..ae257cea 100644
--- a/kview/modules/presenter/config/kviewpresenterconfig.h
+++ b/kview/modules/presenter/config/kviewpresenterconfig.h
@@ -21,13 +21,13 @@
#include <kcmodule.h>
-class QCheckBox;
+class TQCheckBox;
class KViewPresenterConfig : public KCModule
{
Q_OBJECT
public:
- KViewPresenterConfig( QWidget * parent, const char * name = 0, const QStringList & args = QStringList() );
+ KViewPresenterConfig( TQWidget * parent, const char * name = 0, const TQStringList & args = TQStringList() );
~KViewPresenterConfig();
virtual void load();
@@ -38,7 +38,7 @@ class KViewPresenterConfig : public KCModule
void checkChanged();
private:
- QCheckBox * m_pCheckBox;
+ TQCheckBox * m_pCheckBox;
};
// vim:sw=4:ts=4
diff --git a/kview/modules/presenter/imagelistitem.cpp b/kview/modules/presenter/imagelistitem.cpp
index 4236dfe7..547de656 100644
--- a/kview/modules/presenter/imagelistitem.cpp
+++ b/kview/modules/presenter/imagelistitem.cpp
@@ -20,14 +20,14 @@
#include "imagelistitem.h"
-#include <qimage.h>
+#include <tqimage.h>
#include <klistview.h>
ImageListItem::ImageListItem( KListView * parent, const KURL & url )
: KListViewItem( parent, parent->lastItem(), url.prettyURL() )
, m_pImage( 0 )
- , m_filename( QString::null )
+ , m_filename( TQString::null )
, m_url( url )
{
setDragEnabled( true );
@@ -39,13 +39,13 @@ ImageListItem::ImageListItem( KListView * parent, const KURL & url )
{
// download file
/*
- QString extension;
- QString fileName = m_url.fileName();
+ TQString extension;
+ TQString fileName = m_url.fileName();
int extensionPos = fileName.findRev( '.' );
if ( extensionPos != -1 )
extension = fileName.mid( extensionPos ); // keep the '.'
delete m_pTempFile;
- m_pTempFile = new KTempFile( QString::null, extension );
+ m_pTempFile = new KTempFile( TQString::null, extension );
m_filename = m_pTempFile->name();
m_pJob = KIO::get( m_url, m_pExtension->urlArgs().reload, false );
@@ -62,15 +62,15 @@ ImageListItem::~ImageListItem()
}
}
-const QImage * ImageListItem::image() const
+const TQImage * ImageListItem::image() const
{
return m_pImage;
}
-const QString & ImageListItem::file() const
+const TQString & ImageListItem::file() const
{
if( m_url.isLocalFile() )
- return QString::null;
+ return TQString::null;
return m_filename;
}
diff --git a/kview/modules/presenter/imagelistitem.h b/kview/modules/presenter/imagelistitem.h
index 63761af8..ee143a90 100644
--- a/kview/modules/presenter/imagelistitem.h
+++ b/kview/modules/presenter/imagelistitem.h
@@ -23,9 +23,9 @@
#include <klistview.h>
#include <kurl.h>
-#include <qstring.h>
+#include <tqstring.h>
-class QImage;
+class TQImage;
class ImageListItem : public KListViewItem
{
@@ -33,15 +33,15 @@ class ImageListItem : public KListViewItem
ImageListItem( KListView * parent, const KURL & url );
~ImageListItem();
- const QImage * image() const;
- const QString & file() const;
+ const TQImage * image() const;
+ const TQString & file() const;
const KURL & url() const;
virtual int rtti() const { return 48294; }
private:
- QImage * m_pImage;
- QString m_filename;
+ TQImage * m_pImage;
+ TQString m_filename;
KURL m_url;
};
diff --git a/kview/modules/presenter/kviewpresenter.cpp b/kview/modules/presenter/kviewpresenter.cpp
index bbc5e8eb..3cf54d15 100644
--- a/kview/modules/presenter/kviewpresenter.cpp
+++ b/kview/modules/presenter/kviewpresenter.cpp
@@ -22,13 +22,13 @@
#include "imagelistdialog.h"
#include "imagelistitem.h"
-#include <qvbox.h>
-#include <qobjectlist.h>
-#include <qsignalslotimp.h>
-#include <qtimer.h>
-#include <qevent.h>
-#include <qdragobject.h>
-#include <qstringlist.h>
+#include <tqvbox.h>
+#include <tqobjectlist.h>
+#include <tqsignalslotimp.h>
+#include <tqtimer.h>
+#include <tqevent.h>
+#include <tqdragobject.h>
+#include <tqstringlist.h>
#include <kpushbutton.h>
#include <kapplication.h>
@@ -51,35 +51,35 @@
typedef KGenericFactory<KViewPresenter> KViewPresenterFactory;
K_EXPORT_COMPONENT_FACTORY( kview_presenterplugin, KViewPresenterFactory( "kviewpresenterplugin" ) )
-KViewPresenter::KViewPresenter( QObject* parent, const char* name, const QStringList & )
+KViewPresenter::KViewPresenter( TQObject* parent, const char* name, const TQStringList & )
: Plugin( parent, name )
, m_pImageList( new ImageListDialog() )
, m_paFileOpen( 0 )
, m_bDontAdd( false )
, m_pCurrentItem( 0 )
- , m_pSlideshowTimer( new QTimer( this ) )
+ , m_pSlideshowTimer( new TQTimer( this ) )
{
kdDebug( 4630 ) << k_funcinfo << endl;
m_imagelist.setAutoDelete( true );
- QObjectList * viewerList = parent->queryList( 0, "KImageViewer Part", false, false );
+ TQObjectList * viewerList = parent->queryList( 0, "KImageViewer Part", false, false );
m_pViewer = static_cast<KImageViewer::Viewer *>( viewerList->getFirst() );
delete viewerList;
if( m_pViewer )
{
( void ) new KAction( i18n( "&Image List..." ), 0, 0,
- this, SLOT( slotImageList() ),
+ this, TQT_SLOT( slotImageList() ),
actionCollection(), "plugin_presenter_imageList" );
m_paSlideshow = new KToggleAction( i18n( "Start &Slideshow" ), Key_S, actionCollection(), "plugin_presenter_slideshow" );
( void ) new KAction( i18n( "&Previous Image in List" ), "previous", ALT+Key_Left,
- this, SLOT( prev() ),
+ this, TQT_SLOT( prev() ),
actionCollection(), "plugin_presenter_prev" );
( void ) new KAction( i18n( "&Next Image in List" ), "next", ALT+Key_Right,
- this, SLOT( next() ),
+ this, TQT_SLOT( next() ),
actionCollection(), "plugin_presenter_next" );
- connect( m_paSlideshow, SIGNAL( toggled( bool ) ), m_pImageList->m_pSlideshow, SLOT( setOn( bool ) ) );
- connect( m_pImageList->m_pSlideshow, SIGNAL( toggled( bool ) ), m_paSlideshow, SLOT( setChecked( bool ) ) );
+ connect( m_paSlideshow, TQT_SIGNAL( toggled( bool ) ), m_pImageList->m_pSlideshow, TQT_SLOT( setOn( bool ) ) );
+ connect( m_pImageList->m_pSlideshow, TQT_SIGNAL( toggled( bool ) ), m_paSlideshow, TQT_SLOT( setChecked( bool ) ) );
// search for file_open action
KXMLGUIClient * parentClient = static_cast<KXMLGUIClient*>( parent->qt_cast( "KXMLGUIClient" ) );
@@ -89,48 +89,48 @@ KViewPresenter::KViewPresenter( QObject* parent, const char* name, const QString
m_paFileClose = parentClient->actionCollection()->action( "file_close" );
}
if( m_paFileClose )
- connect( m_paFileClose, SIGNAL( activated() ), this, SLOT( slotClose() ) );
+ connect( m_paFileClose, TQT_SIGNAL( activated() ), this, TQT_SLOT( slotClose() ) );
if( m_paFileOpen )
{
- disconnect( m_paFileOpen, SIGNAL( activated() ), parent, SLOT( slotOpenFile() ) );
- connect( m_paFileOpen, SIGNAL( activated() ), this, SLOT( slotOpenFiles() ) );
+ disconnect( m_paFileOpen, TQT_SIGNAL( activated() ), parent, TQT_SLOT( slotOpenFile() ) );
+ connect( m_paFileOpen, TQT_SIGNAL( activated() ), this, TQT_SLOT( slotOpenFiles() ) );
}
else
{
(void) new KAction( i18n( "Open &Multiple Files..." ), "queue", CTRL+SHIFT+Key_O,
- this, SLOT( slotOpenFiles() ),
+ this, TQT_SLOT( slotOpenFiles() ),
actionCollection(), "plugin_presenter_openFiles" );
}
- connect( m_pViewer, SIGNAL( imageOpened( const KURL & ) ),
- SLOT( slotImageOpened( const KURL & ) ) );
+ connect( m_pViewer, TQT_SIGNAL( imageOpened( const KURL & ) ),
+ TQT_SLOT( slotImageOpened( const KURL & ) ) );
}
else
kdWarning( 4630 ) << "no KImageViewer interface found - the presenter plugin won't work" << endl;
//( void )new KViewPresenterConfModule( this );
- connect( m_pImageList->m_pListView, SIGNAL( executed( QListViewItem* ) ),
- this, SLOT( changeItem( QListViewItem* ) ) );
- connect( m_pImageList->m_pPrevious, SIGNAL( clicked() ),
- this, SLOT( prev() ) );
- connect( m_pImageList->m_pNext, SIGNAL( clicked() ),
- this, SLOT( next() ) );
- connect( m_pImageList->m_pListView, SIGNAL( spacePressed( QListViewItem* ) ),
- this, SLOT( changeItem( QListViewItem* ) ) );
- connect( m_pImageList->m_pListView, SIGNAL( returnPressed( QListViewItem* ) ),
- this, SLOT( changeItem( QListViewItem* ) ) );
- connect( m_pImageList->m_pSlideshow, SIGNAL( toggled( bool ) ),
- this, SLOT( slideshow( bool ) ) );
- connect( m_pImageList->m_pInterval, SIGNAL( valueChanged( int ) ),
- this, SLOT( setSlideshowInterval( int ) ) );
- connect( m_pImageList->m_pShuffle, SIGNAL( clicked() ),
- this, SLOT( shuffle() ) );
- connect( m_pImageList->m_pLoad, SIGNAL( clicked() ),
- this, SLOT( loadList() ) );
- connect( m_pImageList->m_pSave, SIGNAL( clicked() ),
- this, SLOT( saveList() ) );
- connect( m_pImageList->m_pCloseAll, SIGNAL( clicked() ),
- this, SLOT( closeAll() ) );
+ connect( m_pImageList->m_pListView, TQT_SIGNAL( executed( TQListViewItem* ) ),
+ this, TQT_SLOT( changeItem( TQListViewItem* ) ) );
+ connect( m_pImageList->m_pPrevious, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( prev() ) );
+ connect( m_pImageList->m_pNext, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( next() ) );
+ connect( m_pImageList->m_pListView, TQT_SIGNAL( spacePressed( TQListViewItem* ) ),
+ this, TQT_SLOT( changeItem( TQListViewItem* ) ) );
+ connect( m_pImageList->m_pListView, TQT_SIGNAL( returnPressed( TQListViewItem* ) ),
+ this, TQT_SLOT( changeItem( TQListViewItem* ) ) );
+ connect( m_pImageList->m_pSlideshow, TQT_SIGNAL( toggled( bool ) ),
+ this, TQT_SLOT( slideshow( bool ) ) );
+ connect( m_pImageList->m_pInterval, TQT_SIGNAL( valueChanged( int ) ),
+ this, TQT_SLOT( setSlideshowInterval( int ) ) );
+ connect( m_pImageList->m_pShuffle, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( shuffle() ) );
+ connect( m_pImageList->m_pLoad, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( loadList() ) );
+ connect( m_pImageList->m_pSave, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( saveList() ) );
+ connect( m_pImageList->m_pCloseAll, TQT_SIGNAL( clicked() ),
+ this, TQT_SLOT( closeAll() ) );
// allow drop on the dialog
m_pImageList->installEventFilter( this );
@@ -140,8 +140,8 @@ KViewPresenter::KViewPresenter( QObject* parent, const char* name, const QString
// grab drops on the main view
m_pViewer->widget()->installEventFilter( this );
- connect( m_pSlideshowTimer, SIGNAL( timeout() ),
- this, SLOT( next() ) );
+ connect( m_pSlideshowTimer, TQT_SIGNAL( timeout() ),
+ this, TQT_SLOT( next() ) );
}
KViewPresenter::~KViewPresenter()
@@ -149,46 +149,46 @@ KViewPresenter::~KViewPresenter()
kdDebug( 4630 ) << k_funcinfo << endl;
if( m_paFileOpen )
{
- disconnect( m_paFileOpen, SIGNAL( activated() ), this, SLOT( slotOpenFiles() ) );
+ disconnect( m_paFileOpen, TQT_SIGNAL( activated() ), this, TQT_SLOT( slotOpenFiles() ) );
// If the parent() doesn't exist we either leave the "File Open" action
// in an unusable state or KView was just shutting down and therefor we
// can ignore this. I've only seen the second one happening and to get
- // rid of the QObject::connect warning we do the parent() check.
+ // rid of the TQObject::connect warning we do the parent() check.
if( parent() )
- connect( m_paFileOpen, SIGNAL( activated() ), parent(), SLOT( slotOpenFile() ) );
+ connect( m_paFileOpen, TQT_SIGNAL( activated() ), parent(), TQT_SLOT( slotOpenFile() ) );
}
}
-bool KViewPresenter::eventFilter( QObject *obj, QEvent *ev )
+bool KViewPresenter::eventFilter( TQObject *obj, TQEvent *ev )
{
if( obj == m_pImageList || obj == m_pImageList->m_pListView || obj == m_pImageList->m_pListView->viewport() || obj == m_pViewer->widget() )
{
switch( ev->type() )
{
- case QEvent::DragEnter:
- case QEvent::DragMove:
+ case TQEvent::DragEnter:
+ case TQEvent::DragMove:
{
// drag enter event in the image list
//kdDebug( 4630 ) << "DragEnterEvent in the image list: " << obj->className() << endl;
- QDragEnterEvent * e = static_cast<QDragEnterEvent*>( ev );
+ TQDragEnterEvent * e = static_cast<TQDragEnterEvent*>( ev );
//for( int i = 0; e->format( i ); ++i )
//kdDebug( 4630 ) << " - " << e->format( i ) << endl;
- if( KURLDrag::canDecode( e ) )// || QImageDrag::canDecode( e ) )
+ if( KURLDrag::canDecode( e ) )// || TQImageDrag::canDecode( e ) )
{
e->accept();
return true;
}
}
- case QEvent::Drop:
+ case TQEvent::Drop:
{
// drop event in the image list
kdDebug( 4630 ) << "DropEvent in the image list: " << obj->className() << endl;
- QDropEvent * e = static_cast<QDropEvent*>( ev );
- QStringList l;
- //QImage image;
+ TQDropEvent * e = static_cast<TQDropEvent*>( ev );
+ TQStringList l;
+ //TQImage image;
if( KURLDrag::decodeToUnicodeUris( e, l ) )
{
- for( QStringList::const_iterator it = l.begin(); it != l.end(); ++it )
+ for( TQStringList::const_iterator it = l.begin(); it != l.end(); ++it )
{
ImageInfo * info = new ImageInfo( KURL( *it ) );
if( ! m_imagelist.contains( info ) )
@@ -201,7 +201,7 @@ bool KViewPresenter::eventFilter( QObject *obj, QEvent *ev )
}
return true;
}
- //else if( QImageDrag::decode( e, image ) )
+ //else if( TQImageDrag::decode( e, image ) )
//newImage( image );
}
default: // do nothing
@@ -221,7 +221,7 @@ void KViewPresenter::slotImageOpened( const KURL & url )
if( ! m_imagelist.contains( info ) )
{
m_imagelist.inSort( info );
- QListViewItem * item = new ImageListItem( m_pImageList->m_pListView, url );
+ TQListViewItem * item = new ImageListItem( m_pImageList->m_pListView, url );
makeCurrent( item );
}
else
@@ -260,7 +260,7 @@ void KViewPresenter::slotOpenFiles()
void KViewPresenter::slotClose()
{
- QListViewItem * next = m_pCurrentItem->itemBelow() ? m_pCurrentItem->itemBelow() : m_pImageList->m_pListView->firstChild();
+ TQListViewItem * next = m_pCurrentItem->itemBelow() ? m_pCurrentItem->itemBelow() : m_pImageList->m_pListView->firstChild();
if( next == m_pCurrentItem )
next = 0;
@@ -273,7 +273,7 @@ void KViewPresenter::slotClose()
changeItem( next );
}
-void KViewPresenter::changeItem( QListViewItem * qitem )
+void KViewPresenter::changeItem( TQListViewItem * qitem )
{
kdDebug( 4630 ) << k_funcinfo << endl;
if( qitem->rtti() == 48294 )
@@ -281,14 +281,14 @@ void KViewPresenter::changeItem( QListViewItem * qitem )
ImageListItem * item = static_cast<ImageListItem*>( qitem );
if( ! item->url().isEmpty() )
{
- if( item->url().isLocalFile() && ! QFile::exists( item->url().path() ) )
+ if( item->url().isLocalFile() && ! TQFile::exists( item->url().path() ) )
{
kdDebug( 4630 ) << "file doesn't exist. removed." << endl;
ImageInfo info( item->url() );
m_imagelist.remove( &info );
if( m_pCurrentItem == item )
{
- QListViewItem * next = m_pCurrentItem->itemBelow() ? m_pCurrentItem->itemBelow() : m_pImageList->m_pListView->firstChild();
+ TQListViewItem * next = m_pCurrentItem->itemBelow() ? m_pCurrentItem->itemBelow() : m_pImageList->m_pListView->firstChild();
if( next->rtti() != 48294 )
kdWarning( 4630 ) << "unknown ListView item" << endl;
else
@@ -327,7 +327,7 @@ void KViewPresenter::prev()
kdDebug( 4630 ) << k_funcinfo << endl;
if( m_pCurrentItem )
{
- QListViewItem * prev = m_pCurrentItem->itemAbove() ? m_pCurrentItem->itemAbove() : m_pImageList->m_pListView->lastItem();
+ TQListViewItem * prev = m_pCurrentItem->itemAbove() ? m_pCurrentItem->itemAbove() : m_pImageList->m_pListView->lastItem();
if( prev )
changeItem( prev );
}
@@ -338,16 +338,16 @@ void KViewPresenter::next()
kdDebug( 4630 ) << k_funcinfo << endl;
if( m_pCurrentItem )
{
- QListViewItem * next = m_pCurrentItem->itemBelow() ? m_pCurrentItem->itemBelow() : m_pImageList->m_pListView->firstChild();
+ TQListViewItem * next = m_pCurrentItem->itemBelow() ? m_pCurrentItem->itemBelow() : m_pImageList->m_pListView->firstChild();
if( next )
changeItem( next );
}
}
-void KViewPresenter::makeCurrent( QListViewItem * item )
+void KViewPresenter::makeCurrent( TQListViewItem * item )
{
if( m_pCurrentItem )
- m_pCurrentItem->setPixmap( 0, QPixmap() );
+ m_pCurrentItem->setPixmap( 0, TQPixmap() );
if( item->rtti() != 48294 )
kdWarning( 4630 ) << "unknown ListView item" << endl;
else
@@ -384,8 +384,8 @@ void KViewPresenter::shuffle()
{
m_pImageList->noSort();
KListView * listview = m_pImageList->m_pListView;
- QPtrList<QListViewItem> items;
- for( QListViewItem * item = listview->firstChild(); item; item = listview->firstChild() )
+ TQPtrList<TQListViewItem> items;
+ for( TQListViewItem * item = listview->firstChild(); item; item = listview->firstChild() )
{
items.append( item );
listview->takeItem( item );
@@ -405,26 +405,26 @@ void KViewPresenter::closeAll()
void KViewPresenter::loadList()
{
- KURL url = KFileDialog::getOpenURL( ":load_list", QString::null, m_pImageList );
+ KURL url = KFileDialog::getOpenURL( ":load_list", TQString::null, m_pImageList );
if( url.isEmpty() )
return;
- QString tempfile;
+ TQString tempfile;
if( ! KIO::NetAccess::download( url, tempfile, m_pViewer->widget() ) )
{
KMessageBox::error( m_pImageList, i18n( "Could not load\n%1" ).arg( url.prettyURL() ) );
return;
}
- QFile file( tempfile );
+ TQFile file( tempfile );
if( file.open( IO_ReadOnly ) )
{
- QTextStream t( &file );
+ TQTextStream t( &file );
if( t.readLine() == "[KView Image List]" )
{
//clear old image list
closeAll();
- QStringList list;
+ TQStringList list;
if( ! t.eof() )
m_pViewer->openURL( KURL( t.readLine() ) );
while( ! t.eof() )
@@ -451,12 +451,12 @@ void KViewPresenter::loadList()
void KViewPresenter::saveList()
{
- KURL url = KFileDialog::getSaveURL( ":save_list", QString::null, m_pImageList );
+ KURL url = KFileDialog::getSaveURL( ":save_list", TQString::null, m_pImageList );
if( url.isEmpty() )
return;
- QString tempfile;
+ TQString tempfile;
if( url.isLocalFile() )
tempfile = url.path();
else
@@ -465,13 +465,13 @@ void KViewPresenter::saveList()
tempfile = ktempf.name();
}
- QFile file( tempfile );
+ TQFile file( tempfile );
if( file.open( IO_WriteOnly ) )
{
- QTextStream t( &file );
+ TQTextStream t( &file );
// write header
t << "[KView Image List]" << endl;
- QListViewItem * item = m_pImageList->m_pListView->firstChild();
+ TQListViewItem * item = m_pImageList->m_pListView->firstChild();
while( item )
{
if( item->rtti() == 48294 )
diff --git a/kview/modules/presenter/kviewpresenter.h b/kview/modules/presenter/kviewpresenter.h
index 29fc106b..e607f92b 100644
--- a/kview/modules/presenter/kviewpresenter.h
+++ b/kview/modules/presenter/kviewpresenter.h
@@ -24,14 +24,14 @@
#include <kparts/plugin.h>
#include <kurl.h>
-#include <qsortedlist.h>
+#include <tqsortedlist.h>
namespace KImageViewer { class Viewer; }
class ImageListDialog;
class ImageListItem;
-class QListViewItem;
-class QTimer;
+class TQListViewItem;
+class TQTimer;
class KToggleAction;
class KAction;
@@ -39,7 +39,7 @@ class KViewPresenter : public KParts::Plugin
{
Q_OBJECT
public:
- KViewPresenter( QObject* parent, const char* name, const QStringList & );
+ KViewPresenter( TQObject* parent, const char* name, const TQStringList & );
virtual ~KViewPresenter();
protected:
@@ -67,14 +67,14 @@ protected:
return url.prettyURL() < i1.url.prettyURL();
}
};
- bool eventFilter( QObject *, QEvent * );
+ bool eventFilter( TQObject *, TQEvent * );
private slots:
void slotImageOpened( const KURL & );
void slotImageList();
void slotOpenFiles();
void slotClose();
- void changeItem( QListViewItem * );
+ void changeItem( TQListViewItem * );
void prev();
void next();
void slideshow( bool );
@@ -85,7 +85,7 @@ private slots:
void saveList();
private:
- void makeCurrent( QListViewItem * );
+ void makeCurrent( TQListViewItem * );
KImageViewer::Viewer * m_pViewer;
ImageListDialog * m_pImageList;
@@ -93,10 +93,10 @@ private:
KAction * m_paFileOpen;
KAction * m_paFileClose;
- QSortedList<ImageInfo> m_imagelist;
+ TQSortedList<ImageInfo> m_imagelist;
bool m_bDontAdd;
ImageListItem * m_pCurrentItem;
- QTimer * m_pSlideshowTimer;
+ TQTimer * m_pSlideshowTimer;
};
// vim:sw=4:ts=4:cindent
diff --git a/kview/modules/presenter/kviewpresenterconfmodule.cpp b/kview/modules/presenter/kviewpresenterconfmodule.cpp
index a39ea378..1c79ee15 100644
--- a/kview/modules/presenter/kviewpresenterconfmodule.cpp
+++ b/kview/modules/presenter/kviewpresenterconfmodule.cpp
@@ -20,16 +20,16 @@
#include "kviewpresenterconfmodule.h"
-#include <qlayout.h>
-#include <qcheckbox.h>
-#include <qframe.h>
+#include <tqlayout.h>
+#include <tqcheckbox.h>
+#include <tqframe.h>
#include <klocale.h>
#include <kdialog.h>
#include <kglobal.h>
#include <kconfig.h>
-KViewPresenterConfModule::KViewPresenterConfModule( QObject * parent )
+KViewPresenterConfModule::KViewPresenterConfModule( TQObject * parent )
: KPreferencesModule( "kviewpresenter", parent, "KView Presenter Config Module" )
{
}
@@ -47,12 +47,12 @@ void KViewPresenterConfModule::reset()
{
}
-void KViewPresenterConfModule::createPage( QFrame * page )
+void KViewPresenterConfModule::createPage( TQFrame * page )
{
- QBoxLayout * layout = new QVBoxLayout( page, KDialog::marginHint(), KDialog::spacingHint() );
+ TQBoxLayout * layout = new TQVBoxLayout( page, KDialog::marginHint(), KDialog::spacingHint() );
layout->setAutoAdd( true );
- m_pCheckBox = new QCheckBox( "This is only for testing...", page );
+ m_pCheckBox = new TQCheckBox( "This is only for testing...", page );
}
// vim:sw=4:ts=4
diff --git a/kview/modules/presenter/kviewpresenterconfmodule.h b/kview/modules/presenter/kviewpresenterconfmodule.h
index dd7e5cf2..6e3dcb46 100644
--- a/kview/modules/presenter/kviewpresenterconfmodule.h
+++ b/kview/modules/presenter/kviewpresenterconfmodule.h
@@ -23,13 +23,13 @@
#include "kpreferencesmodule.h"
-class QCheckBox;
+class TQCheckBox;
class KViewPresenterConfModule : public KPreferencesModule
{
Q_OBJECT
public:
- KViewPresenterConfModule( QObject * parent );
+ KViewPresenterConfModule( TQObject * parent );
~KViewPresenterConfModule();
signals:
@@ -38,10 +38,10 @@ class KViewPresenterConfModule : public KPreferencesModule
protected:
virtual void applyChanges();
virtual void reset();
- virtual void createPage( QFrame * page );
+ virtual void createPage( TQFrame * page );
private:
- QCheckBox * m_pCheckBox;
+ TQCheckBox * m_pCheckBox;
};
// vim:sw=4:ts=4