diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-27 00:40:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-27 00:40:29 +0000 |
commit | 7a741e43ff09e70396a918956219b8316c48e522 (patch) | |
tree | 3d0f60eccd59786cea7236db2d5c4c1f25874515 /src/dolphindetailsview.h | |
parent | a48487ef0c329434b58b6f920111bb0999f1109e (diff) | |
download | dolphin-7a741e43ff09e70396a918956219b8316c48e522.tar.gz dolphin-7a741e43ff09e70396a918956219b8316c48e522.zip |
TQt4 port Dolphin
This enables compilation under Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/dolphin@1229359 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/dolphindetailsview.h')
-rw-r--r-- | src/dolphindetailsview.h | 73 |
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; }; |