diff options
Diffstat (limited to 'tqtinterface/qt4/src/widgets/tqdockwindow.cpp')
-rw-r--r-- | tqtinterface/qt4/src/widgets/tqdockwindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tqtinterface/qt4/src/widgets/tqdockwindow.cpp b/tqtinterface/qt4/src/widgets/tqdockwindow.cpp index e6e6f55..fcf0821 100644 --- a/tqtinterface/qt4/src/widgets/tqdockwindow.cpp +++ b/tqtinterface/qt4/src/widgets/tqdockwindow.cpp @@ -767,7 +767,7 @@ void TQDockWindowTitleBar::mouseDoubleClickEvent( TQMouseEvent * ) A dock window is often used to contain a single widget. In these cases the widget can be set by calling setWidget(). If you're - constructing a dock window that tqcontains multiple widgets, e.g. a + constructing a dock window that contains multiple widgets, e.g. a toolbar, arrange the widgets within a box tqlayout inside the dock window. To do this use the boxLayout() function to get a pointer to the dock window's box tqlayout, then add widgets to the tqlayout @@ -1411,7 +1411,7 @@ void TQDockWindow::updatePosition( const TQPoint &globalPos ) dockArea = 0; TQPoint topLeft = currRect.topLeft(); TQRect screen = tqApp->desktop()->availableGeometry( topLeft ); - if ( !screen.tqcontains( topLeft ) ) { + if ( !screen.contains( topLeft ) ) { topLeft.setY(TQMAX(topLeft.y(), screen.top())); topLeft.setY(TQMIN(topLeft.y(), screen.bottom()-height())); topLeft.setX(TQMAX(topLeft.x(), screen.left())); @@ -1972,7 +1972,7 @@ void TQDockWindow::showEvent( TQShowEvent *e ) { if (curPlace == OutsideDock && (tqparent() && strcmp(tqparent()->name(), "qt_hide_dock") != 0)) { TQRect sr = tqApp->desktop()->availableGeometry( this ); - if ( !sr.tqcontains( pos() ) ) { + if ( !sr.contains( pos() ) ) { int nx = TQMIN( TQMAX( x(), sr.x() ), sr.right()-width() ); int ny = TQMIN( TQMAX( y(), sr.y() ), sr.bottom()-height() ); move( nx, ny ); |