summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/src/widgets/tqdockwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tqtinterface/qt4/src/widgets/tqdockwindow.cpp')
-rw-r--r--tqtinterface/qt4/src/widgets/tqdockwindow.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/tqtinterface/qt4/src/widgets/tqdockwindow.cpp b/tqtinterface/qt4/src/widgets/tqdockwindow.cpp
index fcf0821..1a9796e 100644
--- a/tqtinterface/qt4/src/widgets/tqdockwindow.cpp
+++ b/tqtinterface/qt4/src/widgets/tqdockwindow.cpp
@@ -76,7 +76,7 @@ class TQDockWindowResizeHandle : public TQWidget
TQ_OBJECT
public:
- TQDockWindowResizeHandle( Orientation o, TQWidget *tqparent, TQDockWindow *w, const char* /*name*/=0 );
+ TQDockWindowResizeHandle( Orientation o, TQWidget *parent, TQDockWindow *w, const char* /*name*/=0 );
void setOrientation( Orientation o );
Orientation orientation() const { return orient; }
@@ -102,9 +102,9 @@ private:
};
-TQDockWindowResizeHandle::TQDockWindowResizeHandle( Orientation o, TQWidget *tqparent,
+TQDockWindowResizeHandle::TQDockWindowResizeHandle( Orientation o, TQWidget *parent,
TQDockWindow *w, const char * )
- : TQWidget( tqparent, "qt_dockwidget_internal" ), mousePressed( FALSE ), unclippedPainter( 0 ), dockWindow( w )
+ : TQWidget( parent, "qt_dockwidget_internal" ), mousePressed( FALSE ), unclippedPainter( 0 ), dockWindow( w )
{
setOrientation( o );
}
@@ -752,8 +752,8 @@ void TQDockWindowTitleBar::mouseDoubleClickEvent( TQMouseEvent * )
have a \link setCaption() caption\endlink.)
When you construct a dock window you \e must pass it a TQDockArea
- or a TQMainWindow as its tqparent if you want it docked. Pass 0 for
- the tqparent if you want it floated.
+ or a TQMainWindow as its parent if you want it docked. Pass 0 for
+ the parent if you want it floated.
\code
TQToolBar *fileTools = new TQToolBar( this, "File Actions" );
@@ -909,12 +909,12 @@ void TQDockWindowTitleBar::mouseDoubleClickEvent( TQMouseEvent * )
/*!
- Constructs a TQDockWindow with tqparent \a tqparent, called \a name and
+ Constructs a TQDockWindow with parent \a parent, called \a name and
with widget flags \a f.
*/
-TQDockWindow::TQDockWindow( TQWidget* tqparent, const char* name, WFlags f )
- : TQFrame( tqparent, name, (WFlags)(f | TQt::WType_Dialog | WStyle_Customize | TQt::WStyle_NoBorder) )
+TQDockWindow::TQDockWindow( TQWidget* parent, const char* name, WFlags f )
+ : TQFrame( parent, name, (WFlags)(f | TQt::WType_Dialog | WStyle_Customize | TQt::WStyle_NoBorder) )
{
curPlace = InDock;
isToolbar = FALSE;
@@ -922,24 +922,24 @@ TQDockWindow::TQDockWindow( TQWidget* tqparent, const char* name, WFlags f )
}
/*!
- Constructs a TQDockWindow with tqparent \a tqparent, called \a name and
+ Constructs a TQDockWindow with parent \a parent, called \a name and
with widget flags \a f.
If \a p is \c InDock, the dock window is docked into a dock area
- and \a tqparent \e must be a TQDockArea or a TQMainWindow. If the \a
- tqparent is a TQMainWindow the dock window will be docked in the main
+ and \a parent \e must be a TQDockArea or a TQMainWindow. If the \a
+ parent is a TQMainWindow the dock window will be docked in the main
window's \c Top dock area.
If \a p is \c OutsideDock, the dock window is created as a floating
window.
We recommend creating the dock area \c InDock with a TQMainWindow
- as tqparent then calling TQMainWindow::moveDockWindow() to move the
+ as parent then calling TQMainWindow::moveDockWindow() to move the
dock window where you want it.
*/
-TQDockWindow::TQDockWindow( Place p, TQWidget *tqparent, const char *name, WFlags f )
- : TQFrame( tqparent, name, (WFlags)(f | TQt::WType_Dialog | WStyle_Customize | TQt::WStyle_NoBorder) )
+TQDockWindow::TQDockWindow( Place p, TQWidget *parent, const char *name, WFlags f )
+ : TQFrame( parent, name, (WFlags)(f | TQt::WType_Dialog | WStyle_Customize | TQt::WStyle_NoBorder) )
{
curPlace = p;
isToolbar = FALSE;
@@ -949,8 +949,8 @@ TQDockWindow::TQDockWindow( Place p, TQWidget *tqparent, const char *name, WFlag
/*! \internal
*/
-TQDockWindow::TQDockWindow( Place p, TQWidget *tqparent, const char *name, WFlags f, bool toolbar )
- : TQFrame( tqparent, name, (WFlags)(f | TQt::WType_Dialog | WStyle_Customize | TQt::WStyle_NoBorder) )
+TQDockWindow::TQDockWindow( Place p, TQWidget *parent, const char *name, WFlags f, bool toolbar )
+ : TQFrame( parent, name, (WFlags)(f | TQt::WType_Dialog | WStyle_Customize | TQt::WStyle_NoBorder) )
{
curPlace = p;
isToolbar = toolbar;
@@ -960,8 +960,8 @@ TQDockWindow::TQDockWindow( Place p, TQWidget *tqparent, const char *name, WFlag
class TQDockWindowGridLayout : public TQGridLayout
{
public:
- TQDockWindowGridLayout( TQWidget *tqparent, int nRows, int nCols )
- : TQGridLayout( tqparent, nRows, nCols ) {};
+ TQDockWindowGridLayout( TQWidget *parent, int nRows, int nCols )
+ : TQGridLayout( parent, nRows, nCols ) {};
TQ_SPExpandData expandingDirections() const
{
@@ -1970,7 +1970,7 @@ void TQDockWindow::hideEvent( TQHideEvent *e )
void TQDockWindow::showEvent( TQShowEvent *e )
{
- if (curPlace == OutsideDock && (tqparent() && strcmp(tqparent()->name(), "qt_hide_dock") != 0)) {
+ if (curPlace == OutsideDock && (parent() && strcmp(parent()->name(), "qt_hide_dock") != 0)) {
TQRect sr = tqApp->desktop()->availableGeometry( this );
if ( !sr.contains( pos() ) ) {
int nx = TQMIN( TQMAX( x(), sr.x() ), sr.right()-width() );
@@ -2115,7 +2115,7 @@ void TQDockWindow::contextMenuEvent( TQContextMenuEvent *e )
while ( o ) {
if ( ::tqqt_cast<TQMainWindow*>(o) )
break;
- o = o->tqparent();
+ o = o->parent();
}
if ( !o || ! ( (TQMainWindow*)o )->showDockMenu( e->globalPos() ) )
e->ignore();