diff options
Diffstat (limited to 'kipi-plugins/ipodexport/imagelist.cpp')
-rw-r--r-- | kipi-plugins/ipodexport/imagelist.cpp | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/kipi-plugins/ipodexport/imagelist.cpp b/kipi-plugins/ipodexport/imagelist.cpp index 443fa96..5f534d4 100644 --- a/kipi-plugins/ipodexport/imagelist.cpp +++ b/kipi-plugins/ipodexport/imagelist.cpp @@ -12,12 +12,12 @@ * * ***************************************************************************/ -#include <qapplication.h> -#include <qevent.h> -#include <qdragobject.h> -#include <qfileinfo.h> -#include <qpainter.h> -#include <qsimplerichtext.h> +#include <tqapplication.h> +#include <tqevent.h> +#include <tqdragobject.h> +#include <tqfileinfo.h> +#include <tqpainter.h> +#include <tqsimplerichtext.h> #include <klocale.h> @@ -27,8 +27,8 @@ using namespace IpodExport; ///////////////////////////////////////////////////////////////////////////////////////////// -ImageList::ImageList( ListType type, QWidget *parent, const char *name ) - : KListView( parent, name ) +ImageList::ImageList( ListType type, TQWidget *tqparent, const char *name ) + : KListView( tqparent, name ) , m_type( type ) { if( type == ImageList::UploadType ) @@ -43,23 +43,23 @@ ImageList::ImageList( ListType type, QWidget *parent, const char *name ) addColumn( i18n("Albums") ); setRootIsDecorated( true ); // show expand icons setSorting( -1 ); - setSelectionMode( QListView::Single ); + setSelectionMode( TQListView::Single ); } setItemMargin( 3 ); - setResizeMode( QListView::LastColumn ); + setResizeMode( TQListView::LastColumn ); setAllColumnsShowFocus( true ); } void -ImageList::viewportPaintEvent( QPaintEvent *e ) +ImageList::viewportPaintEvent( TQPaintEvent *e ) { if( e ) KListView::viewportPaintEvent( e ); if( !childCount() && e ) { - QPainter p( viewport() ); - QString minimumText; + TQPainter p( viewport() ); + TQString minimumText; if( m_type == UploadType ) { @@ -80,7 +80,7 @@ ImageList::viewportPaintEvent( QPaintEvent *e ) "can be transferred to the iPod." "</div>" ) ); } - QSimpleRichText t( minimumText, QApplication::font() ); + TQSimpleRichText t( minimumText, TQApplication::font() ); if ( t.width()+30 >= viewport()->width() || t.height()+30 >= viewport()->height() ) //too big, giving up @@ -91,48 +91,48 @@ ImageList::viewportPaintEvent( QPaintEvent *e ) const uint x = (viewport()->width() - w - 30) / 2 ; const uint y = (viewport()->height() - h - 30) / 2 ; - p.setBrush( colorGroup().background() ); + p.setBrush( tqcolorGroup().background() ); p.drawRoundRect( x, y, w+30, h+30, (8*200)/w, (8*200)/h ); - t.draw( &p, x+15, y+15, QRect(), colorGroup() ); + t.draw( &p, x+15, y+15, TQRect(), tqcolorGroup() ); } } -void ImageList::dragEnterEvent( QDragEnterEvent *e ) +void ImageList::dragEnterEvent( TQDragEnterEvent *e ) { - e->accept( QUriDrag::canDecode(e) ); + e->accept( TQUriDrag::canDecode(e) ); } -bool ImageList::acceptDrag( QDropEvent* e ) const +bool ImageList::acceptDrag( TQDropEvent* e ) const { - return QUriDrag::canDecode( e ); + return TQUriDrag::canDecode( e ); } -void ImageList::contentsDropEvent( QDropEvent *e ) +void ImageList::contentsDropEvent( TQDropEvent *e ) { droppedImagesItems( e ); } -void ImageList::dropEvent( QDropEvent *e ) +void ImageList::dropEvent( TQDropEvent *e ) { droppedImagesItems( e ); } -void ImageList::droppedImagesItems( QDropEvent *e ) +void ImageList::droppedImagesItems( TQDropEvent *e ) { - QStrList strList; - QStringList filesPath; + TQStrList strList; + TQStringList filesPath; - if ( !QUriDrag::decode(e, strList) ) return; + if ( !TQUriDrag::decode(e, strList) ) return; - QStrList stringList; - QStrListIterator it(strList); + TQStrList stringList; + TQStrListIterator it(strList); char *str; while ( (str = it.current()) != 0 ) { - QString filePath = QUriDrag::uriToLocalFile(str); - QFileInfo fileInfo(filePath); + TQString filePath = TQUriDrag::uriToLocalFile(str); + TQFileInfo fileInfo(filePath); if( fileInfo.isFile() && fileInfo.exists() ) filesPath.append( fileInfo.filePath() ); |