diff options
Diffstat (limited to 'tqtinterface/qt4/src/widgets/tqmainwindow.cpp')
-rw-r--r-- | tqtinterface/qt4/src/widgets/tqmainwindow.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/tqtinterface/qt4/src/widgets/tqmainwindow.cpp b/tqtinterface/qt4/src/widgets/tqmainwindow.cpp index 6a649bc..446371c 100644 --- a/tqtinterface/qt4/src/widgets/tqmainwindow.cpp +++ b/tqtinterface/qt4/src/widgets/tqmainwindow.cpp @@ -132,7 +132,7 @@ class TQMainWindowLayout : public TQLayout TQ_OBJECT public: - TQMainWindowLayout( TQMainWindow *mw, TQLayout* tqparent = 0 ); + TQMainWindowLayout( TQMainWindow *mw, TQLayout* parent = 0 ); ~TQMainWindowLayout() {} void addItem( QLayoutItem * ); @@ -236,8 +236,8 @@ TQSize TQMainWindowLayout::tqminimumSize() const return TQSize( w, h ); } -TQMainWindowLayout::TQMainWindowLayout( TQMainWindow *mw, TQLayout* tqparent ) - : TQLayout( tqparent ), left( 0 ), right( 0 ), central( 0 ) +TQMainWindowLayout::TQMainWindowLayout( TQMainWindow *mw, TQLayout* parent ) + : TQLayout( parent ), left( 0 ), right( 0 ), central( 0 ) { mainWindow = mw; } @@ -318,7 +318,7 @@ TQLayoutIterator TQMainWindowLayout::iterator() class TQHideToolTip : public TQToolTip { public: - TQHideToolTip( TQWidget *tqparent ) : TQToolTip( tqparent ) {} + TQHideToolTip( TQWidget *parent ) : TQToolTip( parent ) {} ~TQHideToolTip() {} virtual void maybeTip( const TQPoint &pos ); @@ -332,14 +332,14 @@ class TQHideDock : public TQWidget TQ_OBJECT public: - TQHideDock( TQMainWindow *tqparent ) : TQWidget( tqparent, "qt_hide_dock" ) { + TQHideDock( TQMainWindow *parent ) : TQWidget( parent, "qt_hide_dock" ) { hide(); setFixedHeight( tqstyle().tqpixelMetric( TQStyle::PM_DockWindowHandleExtent, this ) + 3 ); pressedHandle = -1; pressed = FALSE; setMouseTracking( TRUE ); - win = tqparent; + win = parent; #ifndef TQT_NO_TOOLTIP tip = new TQHideToolTip( this ); #endif @@ -590,7 +590,7 @@ void TQHideToolTip::maybeTip( const TQPoint &pos ) When subclassing we add the menu items and toolbars in the subclass's constructor. If we've created a TQMainWindow instance directly we can add menu items and toolbars just as easily by - passing the TQMainWindow instance as the tqparent instead of the \e + passing the TQMainWindow instance as the parent instead of the \e this pointer. \quotefile application/application.cpp @@ -615,7 +615,7 @@ void TQHideToolTip::maybeTip( const TQPoint &pos ) default). The slot will be called when the toolbar button is clicked. Any dock window can be added to a dock area either using addDockWindow(), or by creating a dock window with the TQMainWindow - as the tqparent. + as the parent. \quotefile application/application.cpp \skipto editor @@ -669,7 +669,7 @@ void TQHideToolTip::maybeTip( const TQPoint &pos ) The main window will take care of the dock areas, and the tqgeometry of the central widget, but all other aspects of the central widget are left to you. TQMainWindow automatically detects the creation of - a menu bar or status bar if you specify the TQMainWindow as tqparent, + a menu bar or status bar if you specify the TQMainWindow as parent, or you can use the provided menuBar() and statusBar() functions. The functions menuBar() and statusBar() create a suitable widget if one doesn't exist, and update the window's tqlayout to make @@ -914,7 +914,7 @@ void TQHideToolTip::maybeTip( const TQPoint &pos ) */ /*! - Constructs an empty main window. The \a tqparent, \a name and widget + Constructs an empty main window. The \a parent, \a name and widget flags \a f, are passed on to the TQWidget constructor. By default, the widget flags are set to \c WType_TopLevel rather @@ -923,8 +923,8 @@ void TQHideToolTip::maybeTip( const TQPoint &pos ) f to 0. */ -TQMainWindow::TQMainWindow( TQWidget * tqparent, const char * name, WFlags f ) - : TQWidget( tqparent, name, f ) +TQMainWindow::TQMainWindow( TQWidget * parent, const char * name, WFlags f ) + : TQWidget( parent, name, f ) { d = new TQMainWindowPrivate; #ifdef TQ_WS_MACX @@ -1641,11 +1641,11 @@ void TQMainWindow::paintEvent( TQPaintEvent * ) bool TQMainWindow::dockMainWindow( TQObject *dock ) { while ( dock ) { - if ( dock->tqparent() && TQT_BASE_OBJECT(dock->tqparent()) == TQT_BASE_OBJECT(this) ) + if ( dock->parent() && TQT_BASE_OBJECT(dock->parent()) == TQT_BASE_OBJECT(this) ) return TRUE; - if ( ::tqqt_cast<TQMainWindow*>(dock->tqparent()) ) + if ( ::tqqt_cast<TQMainWindow*>(dock->parent()) ) return FALSE; - dock = dock->tqparent(); + dock = dock->parent(); } return FALSE; } |