diff options
Diffstat (limited to 'buildtools/autotools/kfilednddetailview.cpp')
-rw-r--r-- | buildtools/autotools/kfilednddetailview.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/buildtools/autotools/kfilednddetailview.cpp b/buildtools/autotools/kfilednddetailview.cpp index c75022fb..098d975f 100644 --- a/buildtools/autotools/kfilednddetailview.cpp +++ b/buildtools/autotools/kfilednddetailview.cpp @@ -17,8 +17,8 @@ ////////////////////////////////////////////////////// // Qt specific includes -#include <qptrlist.h> -#include <qapplication.h> +#include <tqptrlist.h> +#include <tqapplication.h> ////////////////////////////////////////////////////// // KDE specific includes #include <kfileitem.h> @@ -33,7 +33,7 @@ static int autoOpenTime = 750; #endif //----------------------------------------------- -KFileDnDDetailView::KFileDnDDetailView(QWidget *parent, const char *name ) +KFileDnDDetailView::KFileDnDDetailView(TQWidget *parent, const char *name ) : KFileDetailView(parent,name), m_autoOpenTimer( this ), m_autoOpenTime( autoOpenTime ), m_useAutoOpenTimer( true ), m_dropItem(0), m_dndEnabled( true ) @@ -46,14 +46,14 @@ KFileDnDDetailView::KFileDnDDetailView(QWidget *parent, const char *name ) KFileDnDDetailView::~KFileDnDDetailView(){ } //----------------------------------------------- -void KFileDnDDetailView::readConfig( KConfig* config, const QString& group ) { +void KFileDnDDetailView::readConfig( KConfig* config, const TQString& group ) { KConfigGroupSaver cs( config, group ); bool dnd = config->readBoolEntry("DragAndDrop", true ); setDnDEnabled( dnd ); KFileDetailView::readConfig( config, group ); } //----------------------------------------------- -void KFileDnDDetailView::writeConfig( KConfig* config, const QString& group ) { +void KFileDnDDetailView::writeConfig( KConfig* config, const TQString& group ) { KConfigGroupSaver cs( config, group ); config->writeEntry("DragAndDrop", m_dndEnabled ); KFileDetailView::writeConfig( config, group ); @@ -78,7 +78,7 @@ void KFileDnDDetailView::slotOpenFolder(){ } } //----------------------------------------------- -void KFileDnDDetailView::contentsDragEnterEvent( QDragEnterEvent *e ) { +void KFileDnDDetailView::contentsDragEnterEvent( TQDragEnterEvent *e ) { kdDebug (9020) << "KFileDnDDetailView::contentsDragEnterEvent" << endl; @@ -87,14 +87,14 @@ void KFileDnDDetailView::contentsDragEnterEvent( QDragEnterEvent *e ) { return; } e->acceptAction(); - QListViewItem *i = itemAt( contentsToViewport( e->pos() ) ); + TQListViewItem *i = itemAt( contentsToViewport( e->pos() ) ); if ( i && m_useAutoOpenTimer ) { m_dropItem = i; m_autoOpenTimer.start( m_autoOpenTime ); } } //----------------------------------------------- -void KFileDnDDetailView::contentsDragMoveEvent( QDragMoveEvent *e ) { +void KFileDnDDetailView::contentsDragMoveEvent( TQDragMoveEvent *e ) { kdDebug (9020) << "KFileDnDDetailView::contentsDragMoveEvent" << endl; @@ -103,7 +103,7 @@ void KFileDnDDetailView::contentsDragMoveEvent( QDragMoveEvent *e ) { return; } e->acceptAction(); - QListViewItem *i = itemAt( contentsToViewport( e->pos() ) ); + TQListViewItem *i = itemAt( contentsToViewport( e->pos() ) ); if( ! m_useAutoOpenTimer ) return; if ( i ) { @@ -117,7 +117,7 @@ void KFileDnDDetailView::contentsDragMoveEvent( QDragMoveEvent *e ) { m_autoOpenTimer.stop(); } //----------------------------------------------- -void KFileDnDDetailView::contentsDragLeaveEvent( QDragLeaveEvent* ) { +void KFileDnDDetailView::contentsDragLeaveEvent( TQDragLeaveEvent* ) { kdDebug (9020) << "KFileDnDDetailView::contentsDragLeaveEvent" << endl; @@ -127,7 +127,7 @@ void KFileDnDDetailView::contentsDragLeaveEvent( QDragLeaveEvent* ) { } } //----------------------------------------------- -void KFileDnDDetailView::contentsDropEvent( QDropEvent* e ) { +void KFileDnDDetailView::contentsDropEvent( TQDropEvent* e ) { kdDebug (9020) << "KFileDndDetailView::contentsDropEvent" << endl; @@ -158,13 +158,13 @@ void KFileDnDDetailView::startDrag(){ for ( ; it.current(); ++it ){ urls.append( (*it)->url() ); } - QPixmap pixmap; + TQPixmap pixmap; if( urls.count() > 1 ){ pixmap = DesktopIcon( "kmultiple", 16 ); } if( pixmap.isNull() ) pixmap = currentFileItem()->pixmap( 16 ); - QPoint hotspot; + TQPoint hotspot; hotspot.setX( pixmap.width() / 2 ); hotspot.setY( pixmap.height() / 2 ); m_dragObject = KURLDrag::newDrag( urls, widget() ); @@ -172,15 +172,15 @@ void KFileDnDDetailView::startDrag(){ m_dragObject->drag(); // start the drag } //----------------------------------------------- -QDragObject* KFileDnDDetailView::dragObject() const { +TQDragObject* KFileDnDDetailView::dragObject() const { return m_dragObject; } //----------------------------------------------- -bool KFileDnDDetailView::acceptDrag(QDropEvent* e ) const { +bool KFileDnDDetailView::acceptDrag(TQDropEvent* e ) const { return KURLDrag::canDecode( e ) && - ( e->action() == QDropEvent::Copy - || e->action() == QDropEvent::Move - || e->action() == QDropEvent::Link ); + ( e->action() == TQDropEvent::Copy + || e->action() == TQDropEvent::Move + || e->action() == TQDropEvent::Link ); } //----------------------------------------------- void KFileDnDDetailView::setAutoOpenTime( const int& time ){ @@ -191,9 +191,9 @@ void KFileDnDDetailView::setAutoOpenTime( const int& time ){ void KFileDnDDetailView::useAutoOpenTimer( bool use ){ m_useAutoOpenTimer = use; if( use ) - connect( &m_autoOpenTimer, SIGNAL( timeout() ),this, SLOT( slotOpenFolder() ) ); + connect( &m_autoOpenTimer, TQT_SIGNAL( timeout() ),this, TQT_SLOT( slotOpenFolder() ) ); else { - disconnect( &m_autoOpenTimer, SIGNAL( timeout() ),this, SLOT( slotOpenFolder() ) ); + disconnect( &m_autoOpenTimer, TQT_SIGNAL( timeout() ),this, TQT_SLOT( slotOpenFolder() ) ); m_dropItem = 0L; m_autoOpenTimer.stop(); } |