summaryrefslogtreecommitdiffstats
path: root/src/gvcore/filedetailview.h
diff options
context:
space:
mode:
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;
};