summaryrefslogtreecommitdiffstats
path: root/src/widgets/qmainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/qmainwindow.cpp')
-rw-r--r--src/widgets/qmainwindow.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/widgets/qmainwindow.cpp b/src/widgets/qmainwindow.cpp
index 72491a25d..830e3f0dc 100644
--- a/src/widgets/qmainwindow.cpp
+++ b/src/widgets/qmainwindow.cpp
@@ -335,7 +335,7 @@ protected:
while ( ( o = it.current() ) ) {
++it;
++i;
- TQDockWindow *dw = ::qt_cast<TQDockWindow*>(o);
+ TQDockWindow *dw = ::tqt_cast<TQDockWindow*>(o);
if ( !dw || !dw->isVisible() )
continue;
@@ -377,7 +377,7 @@ protected:
while ( ( o = it.current() ) ) {
++it;
++i;
- TQDockWindow *dw = ::qt_cast<TQDockWindow*>(o);
+ TQDockWindow *dw = ::tqt_cast<TQDockWindow*>(o);
if ( !dw || !dw->isVisible() )
continue;
@@ -406,7 +406,7 @@ protected:
if ( e->button() == LeftButton ) {
if ( e->y() >= 0 && e->y() <= height() ) {
TQObject *o = ( (TQObjectList*)children() )->at( pressedHandle );
- TQDockWindow *dw = ::qt_cast<TQDockWindow*>(o);
+ TQDockWindow *dw = ::tqt_cast<TQDockWindow*>(o);
if ( dw ) {
dw->show();
dw->dock();
@@ -436,7 +436,7 @@ protected:
TQObject *o;
while ( ( o = it.current() ) ) {
++it;
- TQDockWindow *dw = ::qt_cast<TQDockWindow*>(o);
+ TQDockWindow *dw = ::tqt_cast<TQDockWindow*>(o);
if ( !dw )
continue;
if ( dw->isHidden() ) {
@@ -491,7 +491,7 @@ void TQHideToolTip::maybeTip( const TQPoint &pos )
int x = 0;
while ( ( o = it.current() ) ) {
++it;
- TQDockWindow *dw = ::qt_cast<TQDockWindow*>(o);
+ TQDockWindow *dw = ::tqt_cast<TQDockWindow*>(o);
if ( !dw || !dw->isVisible() )
continue;
@@ -1276,7 +1276,7 @@ void TQMainWindow::addDockWindow( TQDockWindow * dockWindow, const TQString &lab
{
addDockWindow( dockWindow, edge, newLine );
#ifndef QT_NO_TOOLBAR
- TQToolBar *tb = ::qt_cast<TQToolBar*>(dockWindow);
+ TQToolBar *tb = ::tqt_cast<TQToolBar*>(dockWindow);
if ( tb )
tb->setLabel( label );
#endif
@@ -1608,7 +1608,7 @@ bool TQMainWindow::dockMainWindow( TQObject *dock )
while ( dock ) {
if ( dock->parent() && dock->parent() == this )
return TRUE;
- if ( ::qt_cast<TQMainWindow*>(dock->parent()) )
+ if ( ::tqt_cast<TQMainWindow*>(dock->parent()) )
return FALSE;
dock = dock->parent();
}
@@ -1626,7 +1626,7 @@ bool TQMainWindow::eventFilter( TQObject* o, TQEvent *e )
setUpLayout();
d->tll->activate();
} else if ( e->type() == TQEvent::ContextMenu && d->dockMenu &&
- ( ::qt_cast<TQDockArea*>(o) && dockMainWindow( o ) || o == d->hideDock || o == d->mb ) ) {
+ ( ::tqt_cast<TQDockArea*>(o) && dockMainWindow( o ) || o == d->hideDock || o == d->mb ) ) {
if ( showDockMenu( ( (TQMouseEvent*)e )->globalPos() ) ) {
( (TQContextMenuEvent*)e )->accept();
return TRUE;
@@ -1657,13 +1657,13 @@ void TQMainWindow::childEvent( TQChildEvent* e)
d->mc = 0;
d->mwl->setCentralWidget( 0 );
triggerLayout();
- } else if ( ::qt_cast<TQDockWindow*>(e->child()) ) {
+ } else if ( ::tqt_cast<TQDockWindow*>(e->child()) ) {
removeDockWindow( (TQDockWindow *)(e->child()) );
d->appropriate.remove( (TQDockWindow*)e->child() );
triggerLayout();
}
} else if ( e->type() == TQEvent::ChildInserted && !d->sb ) {
- d->sb = ::qt_cast<TQStatusBar*>(e->child());
+ d->sb = ::tqt_cast<TQStatusBar*>(e->child());
if ( d->sb ) {
if ( d->tll ) {
if ( !d->tll->findWidget( d->sb ) )
@@ -1923,7 +1923,7 @@ TQPtrList<TQToolBar> TQMainWindow::toolBars( Dock dock ) const
TQPtrList<TQDockWindow> lst = dockWindows( dock );
TQPtrList<TQToolBar> tbl;
for ( TQDockWindow *w = lst.first(); w; w = lst.next() ) {
- TQToolBar *tb = ::qt_cast<TQToolBar*>(w);
+ TQToolBar *tb = ::tqt_cast<TQToolBar*>(w);
if ( tb )
tbl.append( tb );
}
@@ -1965,7 +1965,7 @@ TQPtrList<TQDockWindow> TQMainWindow::dockWindows( Dock dock ) const
TQObject *o;
while ( ( o = it.current() ) ) {
++it;
- TQDockWindow *dw = ::qt_cast<TQDockWindow*>(o);
+ TQDockWindow *dw = ::tqt_cast<TQDockWindow*>(o);
if ( !dw )
continue;
lst.append( dw );
@@ -2199,7 +2199,7 @@ void TQMainWindow::menuAboutToShow()
if ( dockWindows == AllDockWindows || dockWindows == NoToolBars ) {
for ( o = l->first(); o; o = l->next() ) {
TQDockWindow *dw = (TQDockWindow*)o;
- if ( !appropriate( dw ) || ::qt_cast<TQToolBar*>(dw) || !dockMainWindow( dw ) )
+ if ( !appropriate( dw ) || ::tqt_cast<TQToolBar*>(dw) || !dockMainWindow( dw ) )
continue;
TQString label = dw->caption();
if ( !label.isEmpty() ) {
@@ -2217,7 +2217,7 @@ void TQMainWindow::menuAboutToShow()
#ifndef QT_NO_TOOLBAR
if ( dockWindows == AllDockWindows || dockWindows == OnlyToolBars ) {
for ( o = l->first(); o; o = l->next() ) {
- TQToolBar *tb = ::qt_cast<TQToolBar*>(o);
+ TQToolBar *tb = ::tqt_cast<TQToolBar*>(o);
if ( !tb || !appropriate(tb) || !dockMainWindow(tb) )
continue;
TQString label = tb->label();
@@ -2277,11 +2277,11 @@ bool TQMainWindow::showDockMenu( const TQPoint &globalPos )
void TQMainWindow::slotPlaceChanged()
{
TQObject* obj = (TQObject*)sender();
- TQDockWindow *dw = ::qt_cast<TQDockWindow*>(obj);
+ TQDockWindow *dw = ::tqt_cast<TQDockWindow*>(obj);
if ( dw )
emit dockWindowPositionChanged( dw );
#ifndef QT_NO_TOOLBAR
- TQToolBar *tb = ::qt_cast<TQToolBar*>(obj);
+ TQToolBar *tb = ::tqt_cast<TQToolBar*>(obj);
if ( tb )
emit toolBarPositionChanged( tb );
#endif
@@ -2532,7 +2532,7 @@ static void loadDockArea( const TQStringList &names, TQDockArea *a, TQt::Dock d,
if ( state == Visible && c == ']' ) {
for ( TQDockWindow *dw = l.first(); dw; dw = l.next() ) {
if ( TQString( dw->caption() ) == name ) {
- if ( !::qt_cast<TQToolBar*>(dw) )
+ if ( !::tqt_cast<TQToolBar*>(dw) )
dw->setGeometry( x.toInt(), y.toInt(), w.toInt(), h.toInt() );
else
dw->setGeometry( x.toInt(), y.toInt(), dw->width(), dw->height() );