From e985f7e545f4739493965aad69bbecb136dc9346 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 16 Jun 2011 19:02:47 +0000 Subject: TQt4 port kdewebdev This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1237029 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- lib/compatibility/kmdi/qextmdi/kmdichildfrm.h | 44 ++++++++++++++------------- 1 file changed, 23 insertions(+), 21 deletions(-) (limited to 'lib/compatibility/kmdi/qextmdi/kmdichildfrm.h') diff --git a/lib/compatibility/kmdi/qextmdi/kmdichildfrm.h b/lib/compatibility/kmdi/qextmdi/kmdichildfrm.h index 23435479..535804e8 100644 --- a/lib/compatibility/kmdi/qextmdi/kmdichildfrm.h +++ b/lib/compatibility/kmdi/qextmdi/kmdichildfrm.h @@ -6,8 +6,8 @@ // begin : 07/1999 by Szymon Stefanek as part of kvirc // (an IRC application) // changes : 09/1999 by Falk Brettschneider to create an -// - 06/2000 stand-alone Qt extension set of -// classes and a Qt-based library +// - 06/2000 stand-alone TQt extension set of +// classes and a TQt-based library // 2000-2003 maintained by the KDevelop project // patches : */2000 Lars Beikirch (Lars.Beikirch@gmx.net) // @@ -49,11 +49,12 @@ class TQToolButton; * @short Internal class, only used on Win32. * This class provides a label widget that can process mouse click events. */ -class KMDI_EXPORT KMdiWin32IconButton : public QLabel +class KMDI_EXPORT KMdiWin32IconButton : public TQLabel { Q_OBJECT + TQ_OBJECT public: - KMdiWin32IconButton( TQWidget* parent, const char* name = 0 ); + KMdiWin32IconButton( TQWidget* tqparent, const char* name = 0 ); virtual void mousePressEvent( TQMouseEvent* ); signals: @@ -68,7 +69,7 @@ signals: * @short a TQCustomEvent for move * This special event will be useful, to inform view about child frame event. */ -class KMDI_EXPORT KMdiChildFrmMoveEvent : public QCustomEvent +class KMDI_EXPORT KMdiChildFrmMoveEvent : public TQCustomEvent { public: KMdiChildFrmMoveEvent( TQMoveEvent *e ) : TQCustomEvent( TQEvent::Type( TQEvent::User + int( KMdi::EV_Move ) ), e ) {} @@ -80,7 +81,7 @@ public: * @short a TQCustomEvent for begin of dragging * This special event will be useful, to inform view about child frame event. */ -class KMDI_EXPORT KMdiChildFrmDragBeginEvent : public QCustomEvent +class KMDI_EXPORT KMdiChildFrmDragBeginEvent : public TQCustomEvent { public: KMdiChildFrmDragBeginEvent( TQMouseEvent *e ) : TQCustomEvent( TQEvent::Type( TQEvent::User + int( KMdi::EV_DragBegin ) ), e ) {} @@ -91,7 +92,7 @@ public: * @short a TQCustomEvent for end of dragging * This special event will be useful, to inform view about child frame event. */ -class KMDI_EXPORT KMdiChildFrmDragEndEvent : public QCustomEvent +class KMDI_EXPORT KMdiChildFrmDragEndEvent : public TQCustomEvent { public: KMdiChildFrmDragEndEvent( TQMouseEvent *e ) : TQCustomEvent( TQEvent::Type( TQEvent::User + int( KMdi::EV_DragEnd ) ), e ) {} @@ -102,7 +103,7 @@ public: * @short a TQCustomEvent for begin of resizing * This special event will be useful, to inform view about child frame event. */ -class KMDI_EXPORT KMdiChildFrmResizeBeginEvent : public QCustomEvent +class KMDI_EXPORT KMdiChildFrmResizeBeginEvent : public TQCustomEvent { public: KMdiChildFrmResizeBeginEvent( TQMouseEvent *e ) : TQCustomEvent( TQEvent::Type( TQEvent::User + int( KMdi::EV_ResizeBegin ) ), e ) {} @@ -113,7 +114,7 @@ public: * @short a TQCustomEvent for end of resizing * This special event will be useful, to inform view about child frame event. */ -class KMDI_EXPORT KMdiChildFrmResizeEndEvent : public QCustomEvent +class KMDI_EXPORT KMdiChildFrmResizeEndEvent : public TQCustomEvent { public: KMdiChildFrmResizeEndEvent( TQMouseEvent *e ) : TQCustomEvent( TQEvent::Type( TQEvent::User + int( KMdi::EV_ResizeEnd ) ), e ) {} @@ -127,12 +128,13 @@ class KMdiChildFrmPrivate; * It's an MDI child frame widget. It contains a view widget and a frame caption. Usually you derive from its view. */ //------------------------------------------------------------------------------ -class KMDI_EXPORT KMdiChildFrm : public QFrame +class KMDI_EXPORT KMdiChildFrm : public TQFrame { friend class KMdiChildArea; friend class KMdiChildFrmCaption; Q_OBJECT + TQ_OBJECT // attributes public: @@ -183,7 +185,7 @@ public: /** * Creates a new KMdiChildFrm class. */ - KMdiChildFrm( KMdiChildArea *parent ); + KMdiChildFrm( KMdiChildArea *tqparent ); /** * Destroys this KMdiChildFrm @@ -192,14 +194,14 @@ public: ~KMdiChildFrm(); /** - * Reparents the widget w to this KMdiChildFrm (if this is not already done) + * Retqparents the widget w to this KMdiChildFrm (if this is not already done) * Installs an event filter to catch focus events. * Resizes this mdi child in a way that the child fits perfectly in. */ void setClient( KMdiChildView *w, bool bAutomaticResize = false ); /** - * Reparents the client widget to 0 (desktop), moves with an offset from the original position + * Retqparents the client widget to 0 (desktop), moves with an offset from the original position * Removes the event filter. */ void unsetClient( TQPoint positionOffset = TQPoint( 0, 0 ) ); @@ -240,17 +242,17 @@ public: inline MdiWindowState state() const { return m_state; } /** - * Returns the inner client area of the parent of this (which is KMdiChildArea). + * Returns the inner client area of the tqparent of this (which is KMdiChildArea). */ TQRect mdiAreaContentsRect() const; /** - * Returns the geometry that will be restored by calling restore(). + * Returns the tqgeometry that will be restored by calling restore(). */ TQRect restoreGeometry() const; /** - * Sets the geometry that will be restored by calling restore(). + * Sets the tqgeometry that will be restored by calling restore(). */ void setRestoreGeometry( const TQRect& newRestGeo ); @@ -306,7 +308,7 @@ protected: /** * Reimplemented from the base class. - * Resizes the captionbar, relayouts the position of the system buttons, + * Resizes the captionbar, retqlayouts the position of the system buttons, * and calls resize for its embedded KMdiChildView with the proper size */ virtual void resizeEvent( TQResizeEvent * ); @@ -352,7 +354,7 @@ protected: virtual bool eventFilter( TQObject*, TQEvent* ); /** - * Calculates the new geometry from the new mouse position given as parameters + * Calculates the new tqgeometry from the new mouse position given as parameters * and calls KMdiChildFrm::setGeometry */ void resizeWindow( int resizeCorner, int x, int y ); @@ -422,13 +424,13 @@ protected: * Restore the focus policies for _all_ widgets in the view using the list given as parameter. * Install the event filter for all direct child widgets of this. (See KMdiChildFrm::eventFilter) */ - void linkChildren( TQDict* pFocPolDict ); + void linkChildren( TQDict* pFocPolDict ); /** * Backups all focus policies of _all_ child widgets in the MDI childview since they get lost during a reparent. * Remove all event filters for all direct child widgets of this. (See KMdiChildFrm::eventFilter) */ - TQDict* unlinkChildren(); + TQDict* unlinkChildren(); /** * Calculates the corner id for the resize cursor. The return value can be tested for: @@ -443,4 +445,4 @@ private: #endif //_KMDICHILDFRM_H_ -// kate: space-indent off; replace-tabs off; tab-width 4; indent-mode csands; +// kate: space-indent off; tqreplace-tabs off; tab-width 4; indent-mode csands; -- cgit v1.2.1