diff options
Diffstat (limited to 'src/gvcore/filethumbnailview.h')
-rw-r--r-- | src/gvcore/filethumbnailview.h | 47 |
1 files changed, 24 insertions, 23 deletions
diff --git a/src/gvcore/filethumbnailview.h b/src/gvcore/filethumbnailview.h index c27b855..8cc2776 100644 --- a/src/gvcore/filethumbnailview.h +++ b/src/gvcore/filethumbnailview.h @@ -21,9 +21,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #ifndef FILETHUMBNAILVIEW_H #define FILETHUMBNAILVIEW_H -// Qt includes -#include <qguardedptr.h> -#include <qptrlist.h> +// TQt includes +#include <tqguardedptr.h> +#include <tqptrlist.h> // KDE includes #include <kiconview.h> @@ -33,32 +33,33 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #include "busylevelmanager.h" #include "libgwenview_export.h" -class QDragEnterEvent; -class QIconViewItem; -class QPopupMenu; -class QShowEvent; +class TQDragEnterEvent; +class TQIconViewItem; +class TQPopupMenu; +class TQShowEvent; class KConfig; class KFileItem; -typedef QPtrList<KFileItem> KFileItemList; +typedef TQPtrList<KFileItem> KFileItemList; namespace Gwenview { class FileThumbnailViewItem; class LIBGWENVIEW_EXPORT FileThumbnailView : public KIconView, public FileViewBase { Q_OBJECT + TQ_OBJECT friend class FileThumbnailViewItem; public: enum ItemDetail { FILENAME=1, FILESIZE=2, FILEDATE=4, IMAGESIZE=8 }; - FileThumbnailView(QWidget* parent); + FileThumbnailView(TQWidget* tqparent); ~FileThumbnailView(); - QWidget* widget() { return this; } + TQWidget* widget() { return this; } // KFileView methods void clearView(); - void clearSelection() { QIconView::clearSelection(); } + void clearSelection() { TQIconView::clearSelection(); } void insertItem(KFileItem* item); void ensureItemVisible(const KFileItem* item); void setCurrentItem(const KFileItem* item); @@ -66,7 +67,7 @@ public: bool isSelected(const KFileItem* item) const; void removeItem(const KFileItem* item); void updateView(const KFileItem* item); - void setSorting(QDir::SortSpec); + void setSorting(TQDir::SortSpec); KFileItem* firstFileItem() const; KFileItem* prevItem( const KFileItem*) const; @@ -89,37 +90,37 @@ public: void updateThumbnail(const KFileItem*); public slots: - void setThumbnailPixmap(const KFileItem*,const QPixmap&, const QSize&); + void setThumbnailPixmap(const KFileItem*,const TQPixmap&, const TQSize&); void startThumbnailUpdate(); void stopThumbnailUpdate(); void showThumbnailDetailsDialog(); signals: - void dropped(QDropEvent*, KFileItem* target); + void dropped(TQDropEvent*, KFileItem* target); protected: - void showEvent(QShowEvent*); - void contentsDragEnterEvent(QDragEnterEvent*); + void showEvent(TQShowEvent*); + void contentsDragEnterEvent(TQDragEnterEvent*); void startDrag(); - virtual void keyPressEvent( QKeyEvent* ); + virtual void keyPressEvent( TQKeyEvent* ); private: class Private; Private* d; void updateGrid(); - QPixmap createItemPixmap(const KFileItem*) const; + TQPixmap createItemPixmap(const KFileItem*) const; void doStartThumbnailUpdate(const KFileItemList*); - void setSortingKey(QIconViewItem*, const KFileItem*); + void setSortingKey(TQIconViewItem*, const KFileItem*); void updateVisibilityInfo( int x, int y ); private slots: - void slotClicked(QIconViewItem*); - void slotDoubleClicked(QIconViewItem*); - void slotDropped(QDropEvent*); + void slotClicked(TQIconViewItem*); + void slotDoubleClicked(TQIconViewItem*); + void slotDropped(TQDropEvent*); void slotContentsMoving( int, int ); - void slotCurrentChanged(QIconViewItem*); + void slotCurrentChanged(TQIconViewItem*); void slotBusyLevelChanged( BusyLevel ); void slotUpdateEnded(); void prefetchDone(); |