summaryrefslogtreecommitdiffstats
path: root/src/dolphindetailsview.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dolphindetailsview.h')
-rw-r--r--src/dolphindetailsview.h73
1 files changed, 37 insertions, 36 deletions
diff --git a/src/dolphindetailsview.h b/src/dolphindetailsview.h
index e1ee95f..5945796 100644
--- a/src/dolphindetailsview.h
+++ b/src/dolphindetailsview.h
@@ -24,8 +24,8 @@
#include <kfiledetailview.h>
#include <itemeffectsmanager.h>
-class QRect;
-class QTimer;
+class TQRect;
+class TQTimer;
class DolphinView;
/**
@@ -41,6 +41,7 @@ class DolphinView;
class DolphinDetailsView : public KFileDetailView, public ItemEffectsManager
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
@@ -56,7 +57,7 @@ public:
GroupColumn = 5
};
- DolphinDetailsView(DolphinView* parent);
+ DolphinDetailsView(DolphinView* tqparent);
virtual ~DolphinDetailsView();
@@ -73,14 +74,14 @@ public:
* @return True, if the position \a pos is above the name of
* item \a item.
*/
- bool isOnFilename(const QListViewItem* item, const QPoint& pos) const;
+ bool isOnFilename(const TQListViewItem* item, const TQPoint& pos) const;
/**
* Reads out the dolphin settings for the details view and refreshs
* the details view.
*/
// TODO: Other view implementations use a similar interface. When using
- // Interview in Qt4 this method should be moved to a base class (currently
+ // Interview in TQt4 this method should be moved to a base class (currently
// not possible due to having different base classes for the views).
void refreshSettings();
@@ -108,7 +109,7 @@ public slots:
virtual void resizeContents(int width, int height);
/** Is connected to the onItem-signal from KFileDetailView. */
- void slotOnItem(QListViewItem* item);
+ void slotOnItem(TQListViewItem* item);
/** Is connected to the onViewport-signal from KFileDetailView. */
void slotOnViewport();
@@ -116,10 +117,10 @@ public slots:
protected:
/** @see ItemEffectsManager::setContextPixmap() */
virtual void setContextPixmap(void* context,
- const QPixmap& pixmap);
+ const TQPixmap& pixmap);
/** @see ItemEffectsManager::setContextPixmap() */
- virtual const QPixmap* contextPixmap(void* context);
+ virtual const TQPixmap* contextPixmap(void* context);
/** @see ItemEffectsManager::setContextPixmap() */
virtual void* firstContext();
@@ -131,48 +132,48 @@ protected:
virtual KFileItem* contextFileInfo(void* context);
/** @see KFileDetailView::contentsDragMoveEvent() */
- virtual void contentsDragMoveEvent(QDragMoveEvent* event);
+ virtual void contentsDragMoveEvent(TQDragMoveEvent* event);
/** @see KFileDetailView::resizeEvent() */
- virtual void resizeEvent(QResizeEvent* event);
+ virtual void resizeEvent(TQResizeEvent* event);
/** @see KFileDetailView::acceptDrag() */
- virtual bool acceptDrag (QDropEvent* event) const;
+ virtual bool acceptDrag (TQDropEvent* event) const;
/** @see KFileDetailView::contentsDropEvent() */
- virtual void contentsDropEvent(QDropEvent* event);
+ virtual void contentsDropEvent(TQDropEvent* event);
/** @see KFileDetailView::contentsMousePressEvent() */
- virtual void contentsMousePressEvent(QMouseEvent* event);
+ virtual void contentsMousePressEvent(TQMouseEvent* event);
/** @see KFileDetailView::contentsMouseMoveEvent() */
- virtual void contentsMouseMoveEvent(QMouseEvent* event);
+ virtual void contentsMouseMoveEvent(TQMouseEvent* event);
/** @see KFileDetailView::contentsMouseReleaseEvent() */
- virtual void contentsMouseReleaseEvent(QMouseEvent* event);
+ virtual void contentsMouseReleaseEvent(TQMouseEvent* event);
- /** @see QListView::paintEmptyArea() */
- virtual void paintEmptyArea(QPainter* painter, const QRect& rect);
+ /** @see TQListView::paintEmptyArea() */
+ virtual void paintEmptyArea(TQPainter* painter, const TQRect& rect);
/** Draws the selection rubber. */
void drawRubber();
- /** @see QListView::viewportPaintEvent() */
- virtual void viewportPaintEvent(QPaintEvent* paintEvent);
+ /** @see TQListView::viewportPaintEvent() */
+ virtual void viewportPaintEvent(TQPaintEvent* paintEvent);
- /** @see QWidget::leaveEvent() */
- virtual void leaveEvent(QEvent* event);
+ /** @see TQWidget::leaveEvent() */
+ virtual void leaveEvent(TQEvent* event);
private slots:
void slotActivationUpdate();
- void slotContextMenuRequested(QListViewItem* item,
- const QPoint& pos,
+ void slotContextMenuRequested(TQListViewItem* item,
+ const TQPoint& pos,
int col);
void slotUpdateDisabledItems();
void slotAutoScroll();
void updateColumnsWidth();
- void slotItemRenamed(QListViewItem* item,
- const QString& name,
+ void slotItemRenamed(TQListViewItem* item,
+ const TQString& name,
int column);
/**
@@ -185,31 +186,31 @@ private slots:
private:
class DolphinListViewItem : public KFileListViewItem {
public:
- DolphinListViewItem(QListView* parent,
+ DolphinListViewItem(TQListView* tqparent,
KFileItem* fileItem);
virtual ~DolphinListViewItem();
- virtual void paintCell(QPainter* painter,
- const QColorGroup& colorGroup,
+ virtual void paintCell(TQPainter* painter,
+ const TQColorGroup& tqcolorGroup,
int column,
int cellWidth,
- int alignment);
+ int tqalignment);
- virtual void paintFocus(QPainter* painter,
- const QColorGroup& colorGroup,
- const QRect& rect);
+ virtual void paintFocus(TQPainter* painter,
+ const TQColorGroup& tqcolorGroup,
+ const TQRect& rect);
};
DolphinView* m_dolphinView;
- QTimer* m_resizeTimer;
- QTimer* m_scrollTimer;
- QRect* m_rubber;
+ TQTimer* m_resizeTimer;
+ TQTimer* m_scrollTimer;
+ TQRect* m_rubber;
/**
* Returns the width of the filename in pixels including
* the icon. It is assured that the returned width is
* <= the width of the filename column.
*/
- int filenameWidth(const QListViewItem* item) const;
+ int filenameWidth(const TQListViewItem* item) const;
};