summaryrefslogtreecommitdiffstats
path: root/src/part/radialMap/widget.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-26 00:38:19 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-26 00:38:19 +0000
commitf0296ef9e1f94e23c00d6f490e565d1dc768416d (patch)
tree7f3fd9f99621c111ff67f2d62feb5960a3371853 /src/part/radialMap/widget.h
parent3098eb909534268622ce776f9a7bb5310d31b3c1 (diff)
downloadfilelight-f0296ef9e1f94e23c00d6f490e565d1dc768416d.tar.gz
filelight-f0296ef9e1f94e23c00d6f490e565d1dc768416d.zip
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
Diffstat (limited to 'src/part/radialMap/widget.h')
-rw-r--r--src/part/radialMap/widget.h43
1 files changed, 22 insertions, 21 deletions
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 <kurl.h>
-#include <qtimer.h>
+#include <tqtimer.h>
#include "segmentTip.h"
template <class T> 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<Segment> *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;