diff options
Diffstat (limited to 'kdgantt/KDGanttViewSubwidgets.h')
-rw-r--r-- | kdgantt/KDGanttViewSubwidgets.h | 61 |
1 files changed, 33 insertions, 28 deletions
diff --git a/kdgantt/KDGanttViewSubwidgets.h b/kdgantt/KDGanttViewSubwidgets.h index de771800e..af893c863 100644 --- a/kdgantt/KDGanttViewSubwidgets.h +++ b/kdgantt/KDGanttViewSubwidgets.h @@ -27,8 +27,8 @@ ** licensing are not clear to you. ** ** As a special exception, permission is given to link this program - ** with any edition of Qt, and distribute the resulting executable, - ** without including the source code for Qt in the source distribution. + ** with any edition of TQt, and distribute the resulting executable, + ** without including the source code for TQt in the source distribution. ** **********************************************************************/ @@ -73,9 +73,10 @@ class KDToolTip; class KDCanvasRectangle; class KDTimeHeaderToolTip; -class KDTimeHeaderWidget : public QWidget +class KDTimeHeaderWidget : public TQWidget { Q_OBJECT + TQ_OBJECT public: typedef KDGanttView::Scale Scale; @@ -98,7 +99,7 @@ public: enum HourFormat { Hour_24, Hour_12 }; */ - KDTimeHeaderWidget (TQWidget* parent,KDGanttView* gant); + KDTimeHeaderWidget (TQWidget* tqparent,KDGanttView* gant); ~KDTimeHeaderWidget(); TQString getToolTipText(TQPoint p); @@ -138,7 +139,7 @@ public: Scale mini = KDGanttView::Minute , Scale maxi = KDGanttView::Month); #if 0 - // This API has been tqreplaced with KDIntervalColorRectangle and addIntervalBackgroundColor + // This API has been replaced with KDIntervalColorRectangle and addIntervalBackgroundColor void setIntervalBackgroundColor( const TQDateTime& start, const TQDateTime& end, const TQColor& color, @@ -250,12 +251,13 @@ private: /* KDTimeTableWidget */ class KDListView ; -class KDTimeTableWidget : public QCanvas +class KDTimeTableWidget : public TQCanvas { Q_OBJECT + TQ_OBJECT public: - KDTimeTableWidget (TQWidget* parent,KDGanttView* my); + KDTimeTableWidget (TQWidget* tqparent,KDGanttView* my); void setBlockUpdating( bool block = true ); bool blockUpdating(); @@ -329,9 +331,10 @@ private: class KDLegendWidget : public KDGanttSemiSizingControl { Q_OBJECT + TQ_OBJECT public: - KDLegendWidget ( TQWidget* parent, KDGanttMinimizeSplitter* legendParent ); + KDLegendWidget ( TQWidget* tqparent, KDGanttMinimizeSplitter* legendParent ); void showMe(bool); bool isShown(); void addLegendItem( KDGanttViewItem::Shape tqshape, const TQColor& tqshapeColor, const TQString& text ); @@ -352,12 +355,13 @@ public: }; class KDGanttView; -class KDListView : public QListView +class KDListView : public TQListView { Q_OBJECT + TQ_OBJECT public: - KDListView (TQWidget* parent,KDGanttView* gv ); + KDListView (TQWidget* tqparent,KDGanttView* gv ); KDGanttView* myGanttView; void drawToPainter( TQPainter *p, bool drawHeader=false ); void setCalendarMode( bool mode ); @@ -396,56 +400,56 @@ private slots: }; -class KDCanvasText : public QCanvasText +class KDCanvasText : public TQCanvasText { public: - KDCanvasText( KDTimeTableWidget* canvas, void* parentItem, int type ); + KDCanvasText( KDTimeTableWidget* canvas, void* tqparentItem, int type ); int myParentType; void* myParentItem; }; -class KDCanvasLine : public QCanvasLine +class KDCanvasLine : public TQCanvasLine { public: - KDCanvasLine( KDTimeTableWidget* canvas, void* parentItem, int type ); + KDCanvasLine( KDTimeTableWidget* canvas, void* tqparentItem, int type ); int myParentType; void* myParentItem; }; -class KDCanvasPolygonItem: public QCanvasPolygonalItem +class KDCanvasPolygonItem: public TQCanvasPolygonalItem { public: - KDCanvasPolygonItem( KDTimeTableWidget* canvas, void* parentItem, + KDCanvasPolygonItem( KDTimeTableWidget* canvas, void* tqparentItem, int type ); int myParentType; void* myParentItem; }; -class KDCanvasPolygon: public QCanvasPolygon +class KDCanvasPolygon: public TQCanvasPolygon { public: - KDCanvasPolygon( KDTimeTableWidget* canvas, void* parentItem, int type ); + KDCanvasPolygon( KDTimeTableWidget* canvas, void* tqparentItem, int type ); int myParentType; void* myParentItem; }; -class KDCanvasEllipse: public QCanvasEllipse +class KDCanvasEllipse: public TQCanvasEllipse { public: - KDCanvasEllipse( KDTimeTableWidget* canvas, void* parentItem, int type ); + KDCanvasEllipse( KDTimeTableWidget* canvas, void* tqparentItem, int type ); int myParentType; void* myParentItem; }; -class KDCanvasRectangle: public QCanvasRectangle +class KDCanvasRectangle: public TQCanvasRectangle { public: - KDCanvasRectangle( KDTimeTableWidget* canvas, void* parentItem, int type ); + KDCanvasRectangle( KDTimeTableWidget* canvas, void* tqparentItem, int type ); int myParentType; void* myParentItem; }; @@ -480,12 +484,13 @@ private: class KDCanvasToolTip; -class KDGanttCanvasView : public QCanvasView +class KDGanttCanvasView : public TQCanvasView { Q_OBJECT + TQ_OBJECT public: - KDGanttCanvasView(KDGanttView* sender, TQCanvas* canvas = 0, TQWidget* parent = 0, const char* name = 0 ); + KDGanttCanvasView(KDGanttView* sender, TQCanvas* canvas = 0, TQWidget* tqparent = 0, const char* name = 0 ); ~KDGanttCanvasView(); TQString getToolTipText(TQPoint p); TQString getWhatsThisText(TQPoint p); @@ -559,7 +564,7 @@ private: TQTimer scrollBarTimer; }; -class KDTimeHeaderToolTip :public QToolTip +class KDTimeHeaderToolTip :public TQToolTip { public: @@ -585,7 +590,7 @@ private: KDTimeHeaderWidget * _header; }; -class KDCanvasToolTip :public QToolTip +class KDCanvasToolTip :public TQToolTip { public: @@ -611,7 +616,7 @@ private: KDGanttCanvasView * _canview; }; -class KDCanvasWhatsThis :public QWhatsThis +class KDCanvasWhatsThis :public TQWhatsThis { public: KDCanvasWhatsThis( TQWidget *wid, KDGanttCanvasView* canview ) : TQWhatsThis( wid ), _wid(wid),_canview (canview) { }; @@ -626,7 +631,7 @@ private: KDGanttCanvasView * _canview; }; -class KDListViewWhatsThis :public QWhatsThis +class KDListViewWhatsThis :public TQWhatsThis { public: KDListViewWhatsThis( TQWidget *wid, KDListView* view ) : TQWhatsThis( wid ), _wid(wid),_view (view) { }; |