From f0296ef9e1f94e23c00d6f490e565d1dc768416d Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 26 May 2011 00:38:19 +0000 Subject: TQt4 port Filelight This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/filelight@1233561 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/part/radialMap/widget.h | 43 ++++++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 21 deletions(-) (limited to 'src/part/radialMap/widget.h') diff --git a/src/part/radialMap/widget.h b/src/part/radialMap/widget.h index 6fdf0e2..a0e51eb 100644 --- a/src/part/radialMap/widget.h +++ b/src/part/radialMap/widget.h @@ -5,7 +5,7 @@ #define WIDGET_H #include -#include +#include #include "segmentTip.h" template class Chain; @@ -25,10 +25,10 @@ namespace RadialMap ~Map(); void make( const Directory *, bool = false ); - bool resize( const QRect& ); + bool resize( const TQRect& ); bool isNull() const { return ( m_signature == 0 ); } - void invalidate( const bool ); + void tqinvalidate( const bool ); friend class Builder; friend class Widget; @@ -41,24 +41,25 @@ namespace RadialMap Chain *m_signature; - QRect m_rect; + TQRect m_rect; uint m_ringBreadth; ///ring breadth uint m_innerRadius; ///radius of inner circle uint m_visibleDepth; ///visible level depth of system - QString m_centerText; + TQString m_centerText; uint MAP_2MARGIN; }; - class Widget : public QWidget + class Widget : public TQWidget { Q_OBJECT + TQ_OBJECT public: - Widget( QWidget* = 0, const char* = 0 ); + Widget( TQWidget* = 0, const char* = 0 ); ~Widget() { delete m_tip; } - QString path() const; + TQString path() const; KURL url( File const * const = 0 ) const; bool isValid() const { return m_tree != 0; } @@ -69,7 +70,7 @@ namespace RadialMap void zoomIn(); void zoomOut(); void create( const Directory* ); - void invalidate( const bool = true ); + void tqinvalidate( const bool = true ); void refresh( int ); private slots: @@ -80,31 +81,31 @@ namespace RadialMap signals: void activated( const KURL& ); - void invalidated( const KURL& ); + void tqinvalidated( const KURL& ); void created( const Directory* ); - void mouseHover( const QString& ); + void mouseHover( const TQString& ); void giveMeTreeFor( const KURL& ); protected: - virtual void paintEvent( QPaintEvent* ); - virtual void resizeEvent( QResizeEvent* ); - virtual void mouseMoveEvent( QMouseEvent* ); - virtual void mousePressEvent( QMouseEvent* ); - virtual void dragEnterEvent( QDragEnterEvent* ); - virtual void dropEvent( QDropEvent* ); + virtual void paintEvent( TQPaintEvent* ); + virtual void resizeEvent( TQResizeEvent* ); + virtual void mouseMoveEvent( TQMouseEvent* ); + virtual void mousePressEvent( TQMouseEvent* ); + virtual void dragEnterEvent( TQDragEnterEvent* ); + virtual void dropEvent( TQDropEvent* ); protected: - const Segment *segmentAt( QPoint& ) const; //FIXME const reference for a library others can use + const Segment *segmentAt( TQPoint& ) const; //FIXME const reference for a library others can use const Segment *rootSegment() const { return m_rootSegment; } ///never == 0 const Segment *focusSegment() const { return m_focus; } ///0 == nothing in focus private: - void paintExplodedLabels( QPainter& ) const; + void paintExplodedLabels( TQPainter& ) const; const Directory *m_tree; const Segment *m_focus; - QPoint m_offset; - QTimer m_timer; + TQPoint m_offset; + TQTimer m_timer; Map m_map; SegmentTip *m_tip; Segment *m_rootSegment; -- cgit v1.2.1