summaryrefslogtreecommitdiffstats
path: root/src/gvcore/filethumbnailview.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-26 21:04:57 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-26 21:04:57 +0000
commitbf7f88413be3831a9372d323d02fc0335b9f9188 (patch)
tree516fdef9206245b40a14f99b4e3d9ef9289196e0 /src/gvcore/filethumbnailview.h
parente238aa77b1fb3c2f55aef2ef2c91ce52166d2cc8 (diff)
downloadgwenview-bf7f88413be3831a9372d323d02fc0335b9f9188.tar.gz
gwenview-bf7f88413be3831a9372d323d02fc0335b9f9188.zip
TQt4 port Gwenview
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/gwenview@1233720 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gvcore/filethumbnailview.h')
-rw-r--r--src/gvcore/filethumbnailview.h47
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();