diff options
Diffstat (limited to 'lib/compatibility/kmdi/qextmdi/kmdichildview.cpp')
-rw-r--r-- | lib/compatibility/kmdi/qextmdi/kmdichildview.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/lib/compatibility/kmdi/qextmdi/kmdichildview.cpp b/lib/compatibility/kmdi/qextmdi/kmdichildview.cpp index 8afdf249..93dcbb56 100644 --- a/lib/compatibility/kmdi/qextmdi/kmdichildview.cpp +++ b/lib/compatibility/kmdi/qextmdi/kmdichildview.cpp @@ -107,14 +107,14 @@ void KMdiChildView::trackIconAndCaptionChanges( TQWidget *view ) } -//============== internal geometry ==============// +//============== internal tqgeometry ==============// TQRect KMdiChildView::internalGeometry() const { if ( mdiParent() ) { // is attached // get the client area coordinates inside the MDI child frame - TQRect posInFrame = geometry(); + TQRect posInFrame = tqgeometry(); // map these values to the parent of the MDI child frame // (this usually is the MDI child area) and return TQPoint ptTopLeft = mdiParent() ->mapToParent( posInFrame.topLeft() ); @@ -123,14 +123,14 @@ TQRect KMdiChildView::internalGeometry() const } else { - TQRect geo = geometry(); + TQRect geo = tqgeometry(); TQRect frameGeo = externalGeometry(); return TQRect( frameGeo.x(), frameGeo.y(), geo.width(), geo.height() ); - // return geometry(); + // return tqgeometry(); } } -//============== set internal geometry ==============// +//============== set internal tqgeometry ==============// void KMdiChildView::setInternalGeometry( const TQRect& newGeometry ) { @@ -142,7 +142,7 @@ void KMdiChildView::setInternalGeometry( const TQRect& newGeometry ) int nFrameSizeTop = geo.y() - frameGeo.y(); int nFrameSizeLeft = geo.x() - frameGeo.x(); - // create the new geometry that is accepted by the TQWidget::setGeometry() method + // create the new tqgeometry that is accepted by the TQWidget::setGeometry() method TQRect newGeoTQt; newGeoTQt.setX( newGeometry.x() - nFrameSizeLeft ); newGeoTQt.setY( newGeometry.y() - nFrameSizeTop ); @@ -152,7 +152,7 @@ void KMdiChildView::setInternalGeometry( const TQRect& newGeometry ) // newGeoTQt.setWidth(newGeometry.width()+KMDI_MDI_CHILDFRM_DOUBLE_BORDER); // newGeoTQt.setHeight(newGeometry.height()+mdiParent()->captionHeight()+KMDI_MDI_CHILDFRM_DOUBLE_BORDER); - // set the geometry + // set the tqgeometry mdiParent()->setGeometry( newGeoTQt ); } else @@ -163,7 +163,7 @@ void KMdiChildView::setInternalGeometry( const TQRect& newGeometry ) int nFrameSizeTop = geo.y() - frameGeo.y(); int nFrameSizeLeft = geo.x() - frameGeo.x(); - // create the new geometry that is accepted by the TQWidget::setGeometry() method + // create the new tqgeometry that is accepted by the TQWidget::setGeometry() method TQRect newGeoTQt; newGeoTQt.setX( newGeometry.x() - nFrameSizeLeft ); @@ -172,19 +172,19 @@ void KMdiChildView::setInternalGeometry( const TQRect& newGeometry ) newGeoTQt.setWidth( newGeometry.width() ); newGeoTQt.setHeight( newGeometry.height() ); - // set the geometry + // set the tqgeometry setGeometry( newGeoTQt ); } } -//============== external geometry ==============// +//============== external tqgeometry ==============// TQRect KMdiChildView::externalGeometry() const { return mdiParent() ? mdiParent()->frameGeometry() : frameGeometry(); } -//============== set external geometry ==============// +//============== set external tqgeometry ==============// void KMdiChildView::setExternalGeometry( const TQRect& newGeometry ) { @@ -202,7 +202,7 @@ void KMdiChildView::setExternalGeometry( const TQRect& newGeometry ) int nFrameSizeTop = geo.y() - frameGeo.y(); int nFrameSizeLeft = geo.x() - frameGeo.x(); - // create the new geometry that is accepted by the TQWidget::setGeometry() method + // create the new tqgeometry that is accepted by the TQWidget::setGeometry() method // not attached => the window system makes the frame TQRect newGeoTQt; newGeoTQt.setX( newGeometry.x() + nFrameSizeLeft ); @@ -210,7 +210,7 @@ void KMdiChildView::setExternalGeometry( const TQRect& newGeometry ) newGeoTQt.setWidth( newGeometry.width() - nTotalFrameWidth ); newGeoTQt.setHeight( newGeometry.height() - nTotalFrameHeight ); - // set the geometry + // set the tqgeometry setGeometry( newGeoTQt ); } } @@ -277,7 +277,7 @@ TQRect KMdiChildView::restoreGeometry() if ( mdiParent() ) return mdiParent() ->restoreGeometry(); else //FIXME not really supported, may be we must use Windows or X11 funtions - return geometry(); + return tqgeometry(); } //============== setRestoreGeometry ================// @@ -491,7 +491,7 @@ void KMdiChildView::slot_childDestroyed() // do what we do if a child is removed // if we lost a child we uninstall ourself as event filter for the lost - // child and its children + // child and its tqchildren const TQObject * pLostChild = TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(TQT_BASE_OBJECT_NAME::sender())); if ( pLostChild && ( pLostChild->isWidgetType() ) ) { @@ -564,7 +564,7 @@ bool KMdiChildView::eventFilter( TQObject *obj, TQEvent *e ) else if ( e->type() == TQEvent::ChildRemoved ) { // if we lost a child we uninstall ourself as event filter for the lost - // child and its children + // child and its tqchildren TQObject * pLostChild = TQT_TQOBJECT(( ( TQChildEvent* ) e ) ->child()); if ( ( pLostChild != 0L ) && ( pLostChild->isWidgetType() ) ) { @@ -593,7 +593,7 @@ bool KMdiChildView::eventFilter( TQObject *obj, TQEvent *e ) else if ( e->type() == TQEvent::ChildInserted ) { // if we got a new child and we are attached to the MDI system we - // install ourself as event filter for the new child and its children + // install ourself as event filter for the new child and its tqchildren // (as we did when we were added to the MDI system). TQObject * pNewChild = TQT_TQOBJECT(( ( TQChildEvent* ) e ) ->child()); if ( ( pNewChild != 0L ) && ( pNewChild->isWidgetType() ) ) |