summaryrefslogtreecommitdiffstats
path: root/src/gvcore/filedetailview.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/filedetailview.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/filedetailview.h')
-rw-r--r--src/gvcore/filedetailview.h43
1 files changed, 22 insertions, 21 deletions
diff --git a/src/gvcore/filedetailview.h b/src/gvcore/filedetailview.h
index 2d8c988..346f618 100644
--- a/src/gvcore/filedetailview.h
+++ b/src/gvcore/filedetailview.h
@@ -25,11 +25,11 @@
#define FILEDETAILVIEW_H
class KFileItem;
-class QWidget;
-class QKeyEvent;
+class TQWidget;
+class TQKeyEvent;
-// Qt includes
-#include <qdir.h>
+// TQt includes
+#include <tqdir.h>
// KDE includes
#include <klistview.h>
@@ -44,14 +44,15 @@ class FileDetailViewItem;
class FileDetailView : public KListView, public FileViewBase
{
Q_OBJECT
+ TQ_OBJECT
friend class FileDetailViewItem;
public:
- FileDetailView(QWidget* parent, const char* name);
+ FileDetailView(TQWidget* tqparent, const char* name);
virtual ~FileDetailView();
- virtual QWidget* widget() { return this; }
+ virtual TQWidget* widget() { return this; }
virtual void clearView();
virtual void updateView( bool );
@@ -74,25 +75,25 @@ public:
virtual void insertItem( KFileItem* i );
// implemented to get noticed about sorting changes (for sortingIndicator)
- virtual void setSorting( QDir::SortSpec );
+ virtual void setSorting( TQDir::SortSpec );
void ensureItemVisible( const KFileItem* );
// for KMimeTypeResolver
void mimeTypeDeterminationFinished();
void determineIcon( FileDetailViewItem* item );
- QScrollView* scrollWidget() { return this; }
+ TQScrollView* scrollWidget() { return this; }
void setShownFileItem(KFileItem* fileItem);
signals:
- void dropped(QDropEvent* event, KFileItem* item);
- void sortingChanged(QDir::SortSpec);
+ void dropped(TQDropEvent* event, KFileItem* item);
+ void sortingChanged(TQDir::SortSpec);
protected:
- virtual bool acceptDrag(QDropEvent*) const;
- virtual void contentsDropEvent(QDropEvent*);
- virtual void keyPressEvent(QKeyEvent*);
+ virtual bool acceptDrag(TQDropEvent*) const;
+ virtual void contentsDropEvent(TQDropEvent*);
+ virtual void keyPressEvent(TQKeyEvent*);
int mSortingCol;
@@ -101,18 +102,18 @@ protected slots:
private slots:
void slotSortingChanged( int );
- void selected( QListViewItem* item );
- void slotActivate( QListViewItem* item );
- void highlighted( QListViewItem* item );
- void slotActivateMenu ( QListViewItem* item, const QPoint& pos );
+ void selected( TQListViewItem* item );
+ void slotActivate( TQListViewItem* item );
+ void highlighted( TQListViewItem* item );
+ void slotActivateMenu ( TQListViewItem* item, const TQPoint& pos );
private:
bool mBlockSortingSignal;
KMimeTypeResolver<FileDetailViewItem,FileDetailView>* mResolver;
- virtual void insertItem(QListViewItem* i) { KListView::insertItem(i); }
+ virtual void insertItem(TQListViewItem* i) { KListView::insertItem(i); }
virtual void setSorting(int i, bool b) { KListView::setSorting(i, b); }
- virtual void setSelected(QListViewItem* i, bool b) { KListView::setSelected(i, b); }
+ virtual void setSelected(TQListViewItem* i, bool b) { KListView::setSelected(i, b); }
FileDetailViewItem* viewItem( const KFileItem* item ) const {
if (item) return (FileDetailViewItem*)item->extraData(this);
@@ -123,8 +124,8 @@ private:
void startDrag();
- QPixmap mShownItemSelectedPixmap;
- QPixmap mShownItemUnselectedPixmap;
+ TQPixmap mShownItemSelectedPixmap;
+ TQPixmap mShownItemUnselectedPixmap;
};