summaryrefslogtreecommitdiffstats
path: root/kdgantt/KDGanttMinimizeSplitter.h
diff options
context:
space:
mode:
Diffstat (limited to 'kdgantt/KDGanttMinimizeSplitter.h')
-rw-r--r--kdgantt/KDGanttMinimizeSplitter.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/kdgantt/KDGanttMinimizeSplitter.h b/kdgantt/KDGanttMinimizeSplitter.h
index c1007359..628a9c6f 100644
--- a/kdgantt/KDGanttMinimizeSplitter.h
+++ b/kdgantt/KDGanttMinimizeSplitter.h
@@ -1,4 +1,4 @@
-/* -*- Mode: C++ -*-
+/*
$Id$
*/
@@ -42,7 +42,7 @@ class TQSplitterLayoutStruct;
class KDGanttMinimizeSplitter : public TQFrame
{
- Q_OBJECT
+ TQ_OBJECT
TQ_ENUMS( Direction )
TQ_PROPERTY( Orientation orientation READ orientation WRITE setOrientation )
@@ -53,23 +53,23 @@ public:
enum Direction { Left, Right, Up, Down };
KDGanttMinimizeSplitter( TQWidget* parent=0, const char* name=0 );
- KDGanttMinimizeSplitter( Qt::Orientation, TQWidget* parent=0, const char* name=0 );
+ KDGanttMinimizeSplitter( TQt::Orientation, TQWidget* parent=0, const char* name=0 );
~KDGanttMinimizeSplitter();
- virtual void setOrientation( Qt::Orientation );
- Qt::Orientation orientation() const { return orient; }
+ virtual void setOrientation( TQt::Orientation );
+ TQt::Orientation orientation() const { return orient; }
void setMinimizeDirection( Direction );
Direction minimizeDirection() const;
virtual void setResizeMode( TQWidget *w, ResizeMode );
- virtual void setOpaqueResize( bool = TRUE );
+ virtual void setOpaqueResize( bool = true );
bool opaqueResize() const;
void moveToFirst( TQWidget * );
void moveToLast( TQWidget * );
- void refresh() { recalc( TRUE ); }
+ void refresh() { recalc( true ); }
virtual TQSize sizeHint() const;
virtual TQSize minimumSizeHint() const;
@@ -95,30 +95,30 @@ protected:
private:
void init();
- void recalc( bool update = FALSE );
+ void recalc( bool update = false );
void doResize();
void storeSizes();
void processChildEvents();
- TQSplitterLayoutStruct *addWidget( TQWidget*, bool first = FALSE );
+ TQSplitterLayoutStruct *addWidget( TQWidget*, bool first = false );
void recalcId();
void moveBefore( int pos, int id, bool upLeft );
void moveAfter( int pos, int id, bool upLeft );
- void setG( TQWidget *w, int p, int s, bool isSplitter = FALSE );
+ void setG( TQWidget *w, int p, int s, bool isSplitter = false );
TQCOORD pick( const TQPoint &p ) const
- { return orient == Qt::Horizontal ? p.x() : p.y(); }
+ { return orient == TQt::Horizontal ? p.x() : p.y(); }
TQCOORD pick( const TQSize &s ) const
- { return orient == Qt::Horizontal ? s.width() : s.height(); }
+ { return orient == TQt::Horizontal ? s.width() : s.height(); }
TQCOORD trans( const TQPoint &p ) const
- { return orient == Qt::Vertical ? p.x() : p.y(); }
+ { return orient == TQt::Vertical ? p.x() : p.y(); }
TQCOORD trans( const TQSize &s ) const
- { return orient == Qt::Vertical ? s.width() : s.height(); }
+ { return orient == TQt::Vertical ? s.width() : s.height(); }
TQSplitterData *data;
private:
- Qt::Orientation orient;
+ TQt::Orientation orient;
Direction _direction;
#ifndef DOXYGEN_SKIP_INTERNAL
friend class KDGanttSplitterHandle;
@@ -137,13 +137,13 @@ private: // Disabled copy constructor and operator=
// avoid a symbol clash on some platforms.
class KDGanttSplitterHandle : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
- KDGanttSplitterHandle( Qt::Orientation o,
+ KDGanttSplitterHandle( TQt::Orientation o,
KDGanttMinimizeSplitter *parent, const char* name=0 );
- void setOrientation( Qt::Orientation o );
- Qt::Orientation orientation() const { return orient; }
+ void setOrientation( TQt::Orientation o );
+ TQt::Orientation orientation() const { return orient; }
bool opaque() const { return s->opaqueResize(); }
@@ -162,7 +162,7 @@ protected:
void updateCursor( const TQPoint& p );
private:
- Qt::Orientation orient;
+ TQt::Orientation orient;
bool opaq;
int myId;