summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-03-06 20:38:40 -0600
committerTimothy Pearson <[email protected]>2012-03-06 20:38:40 -0600
commiteb1d1e0dec5720ace27395e290b7093cd68b150d (patch)
tree04a199ef5ea853d86a6f9a44716c0874d41c20f6 /src/widgets
parentae8aba1e0f17943046e6bfa889b169f7fc41da0d (diff)
downloadtqt3-eb1d1e0dec5720ace27395e290b7093cd68b150d.tar.gz
tqt3-eb1d1e0dec5720ace27395e290b7093cd68b150d.zip
Automated update from qt3
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/qaction.cpp36
-rw-r--r--src/widgets/qbutton.cpp8
-rw-r--r--src/widgets/qbuttongroup.cpp22
-rw-r--r--src/widgets/qdatetimeedit.cpp20
-rw-r--r--src/widgets/qdockarea.cpp12
-rw-r--r--src/widgets/qdockwindow.cpp34
-rw-r--r--src/widgets/qeffects.cpp4
-rw-r--r--src/widgets/qgroupbox.cpp4
-rw-r--r--src/widgets/qlistview.cpp2
-rw-r--r--src/widgets/qmainwindow.cpp34
-rw-r--r--src/widgets/qmenubar.cpp10
-rw-r--r--src/widgets/qmenudata.cpp6
-rw-r--r--src/widgets/qpushbutton.cpp10
-rw-r--r--src/widgets/qradiobutton.cpp2
-rw-r--r--src/widgets/qscrollview.cpp2
-rw-r--r--src/widgets/qsplashscreen.cpp4
-rw-r--r--src/widgets/qsplitter.cpp2
-rw-r--r--src/widgets/qtabbar.cpp2
-rw-r--r--src/widgets/qtabwidget.cpp2
-rw-r--r--src/widgets/qtextedit.cpp4
-rw-r--r--src/widgets/qtitlebar.cpp4
-rw-r--r--src/widgets/qtoolbar.cpp10
-rw-r--r--src/widgets/qtoolbox.cpp2
-rw-r--r--src/widgets/qtoolbutton.cpp4
-rw-r--r--src/widgets/qwidgetplugin.cpp28
-rw-r--r--src/widgets/qwidgetresizehandler.cpp6
26 files changed, 137 insertions, 137 deletions
diff --git a/src/widgets/qaction.cpp b/src/widgets/qaction.cpp
index 314a4f705..391b47eef 100644
--- a/src/widgets/qaction.cpp
+++ b/src/widgets/qaction.cpp
@@ -220,18 +220,18 @@ TQActionPrivate::~TQActionPrivate()
++itci;
TQComboBox* combo = ci->combo;
combo->clear();
- TQActionGroup *group = ::qt_cast<TQActionGroup*>(action->parent());
+ TQActionGroup *group = ::tqt_cast<TQActionGroup*>(action->parent());
TQObjectList *siblings = group ? group->queryList("TQAction") : 0;
if (siblings) {
TQObjectListIt it(*siblings);
while (it.current()) {
- TQAction *sib = ::qt_cast<TQAction*>(it.current());
+ TQAction *sib = ::tqt_cast<TQAction*>(it.current());
++it;
sib->removeFrom(combo);
}
it = TQObjectListIt(*siblings);
while (it.current()) {
- TQAction *sib = ::qt_cast<TQAction*>(it.current());
+ TQAction *sib = ::tqt_cast<TQAction*>(it.current());
++it;
if (sib == action)
continue;
@@ -568,7 +568,7 @@ TQAction::TQAction( const TQString& text, const TQString& menuText, TQKeySequenc
*/
void TQAction::init()
{
- if ( ::qt_cast<TQActionGroup*>(parent()) )
+ if ( ::tqt_cast<TQActionGroup*>(parent()) )
((TQActionGroup*) parent())->add( this ); // insert into action group
}
@@ -1008,7 +1008,7 @@ void TQAction::toolButtonToggled( bool on )
bool TQAction::addTo( TQWidget* w )
{
#ifndef QT_NO_TOOLBAR
- if ( ::qt_cast<TQToolBar*>(w) ) {
+ if ( ::tqt_cast<TQToolBar*>(w) ) {
if ( !qstrcmp( name(), "qt_separator_action" ) ) {
((TQToolBar*)w)->addSeparator();
} else {
@@ -1030,7 +1030,7 @@ bool TQAction::addTo( TQWidget* w )
}
} else
#endif
- if ( ::qt_cast<TQPopupMenu*>(w) ) {
+ if ( ::tqt_cast<TQPopupMenu*>(w) ) {
TQActionPrivate::MenuItem* mi = new TQActionPrivate::MenuItem;
mi->popup = (TQPopupMenu*) w;
TQIconSet* diconset = d->iconset;
@@ -1049,7 +1049,7 @@ bool TQAction::addTo( TQWidget* w )
connect( mi->popup, SIGNAL(aboutToHide()), this, SLOT(clearStatusText()) );
connect( mi->popup, SIGNAL( destroyed() ), this, SLOT( objectDestroyed() ) );
// Makes only sense when called by TQActionGroup::addTo
- } else if ( ::qt_cast<TQComboBox*>(w) ) {
+ } else if ( ::tqt_cast<TQComboBox*>(w) ) {
TQActionPrivate::ComboItem *ci = new TQActionPrivate::ComboItem;
ci->combo = (TQComboBox*)w;
connect( ci->combo, SIGNAL( destroyed() ), this, SLOT( objectDestroyed() ) );
@@ -1108,7 +1108,7 @@ void TQAction::showStatusText( const TQString& text )
static TQPopupMenu *lastmenu = 0;
TQObject *s = (TQObject*)sender();
if ( s ) {
- TQPopupMenu *menu = (TQPopupMenu*)s->qt_cast( "TQPopupMenu" );
+ TQPopupMenu *menu = (TQPopupMenu*)s->tqt_cast( "TQPopupMenu" );
if ( menu && !!text )
lastmenu = menu;
else if ( menu && text.isEmpty() ) {
@@ -1188,7 +1188,7 @@ void TQAction::clearStatusText()
bool TQAction::removeFrom( TQWidget* w )
{
#ifndef QT_NO_TOOLBAR
- if ( ::qt_cast<TQToolBar*>(w) ) {
+ if ( ::tqt_cast<TQToolBar*>(w) ) {
TQPtrListIterator<TQToolButton> it( d->toolbuttons);
TQToolButton* btn;
while ( ( btn = it.current() ) ) {
@@ -1202,7 +1202,7 @@ bool TQAction::removeFrom( TQWidget* w )
}
} else
#endif
- if ( ::qt_cast<TQPopupMenu*>(w) ) {
+ if ( ::tqt_cast<TQPopupMenu*>(w) ) {
TQPtrListIterator<TQActionPrivate::MenuItem> it( d->menuitems);
TQActionPrivate::MenuItem* mi;
while ( ( mi = it.current() ) ) {
@@ -1215,7 +1215,7 @@ bool TQAction::removeFrom( TQWidget* w )
d->menuitems.removeRef( mi );
}
}
- } else if ( ::qt_cast<TQComboBox*>(w) ) {
+ } else if ( ::tqt_cast<TQComboBox*>(w) ) {
TQPtrListIterator<TQActionPrivate::ComboItem> it( d->comboitems );
TQActionPrivate::ComboItem *ci;
while ( ( ci = it.current() ) ) {
@@ -1347,7 +1347,7 @@ void TQActionGroupPrivate::update( const TQActionGroup* that )
}
for ( TQPtrListIterator<TQActionGroupPrivate::MenuItem> pu( menuitems ); pu.current(); ++pu ) {
TQWidget* parent = pu.current()->popup->parentWidget();
- if ( ::qt_cast<TQPopupMenu*>(parent) ) {
+ if ( ::tqt_cast<TQPopupMenu*>(parent) ) {
TQPopupMenu* ppopup = (TQPopupMenu*)parent;
ppopup->setItemEnabled( pu.current()->id, that->isEnabled() );
ppopup->setItemVisible( pu.current()->id, that->isVisible() );
@@ -1357,7 +1357,7 @@ void TQActionGroupPrivate::update( const TQActionGroup* that )
}
for ( TQPtrListIterator<TQPopupMenu> pm( popupmenus ); pm.current(); ++pm ) {
TQPopupMenu *popup = pm.current();
- TQPopupMenu *parent = ::qt_cast<TQPopupMenu*>(popup->parentWidget());
+ TQPopupMenu *parent = ::tqt_cast<TQPopupMenu*>(popup->parentWidget());
if ( !parent )
continue;
@@ -1654,7 +1654,7 @@ void TQActionGroup::addSeparator()
bool TQActionGroup::addTo( TQWidget* w )
{
#ifndef QT_NO_TOOLBAR
- if ( ::qt_cast<TQToolBar*>(w) ) {
+ if ( ::tqt_cast<TQToolBar*>(w) ) {
if ( d->dropdown ) {
if ( !d->exclusive ) {
TQPtrListIterator<TQAction> it( d->actions);
@@ -1737,7 +1737,7 @@ bool TQActionGroup::addTo( TQWidget* w )
}
} else
#endif
- if ( ::qt_cast<TQPopupMenu*>(w) ) {
+ if ( ::tqt_cast<TQPopupMenu*>(w) ) {
TQPopupMenu *popup;
if ( d->dropdown ) {
TQPopupMenu *menu = (TQPopupMenu*)w;
@@ -1791,7 +1791,7 @@ bool TQActionGroup::removeFrom( TQWidget* w )
}
#ifndef QT_NO_TOOLBAR
- if ( ::qt_cast<TQToolBar*>(w) ) {
+ if ( ::tqt_cast<TQToolBar*>(w) ) {
TQPtrListIterator<TQComboBox> cb( d->comboboxes );
while( cb.current() ) {
TQComboBox *box = cb.current();
@@ -1808,7 +1808,7 @@ bool TQActionGroup::removeFrom( TQWidget* w )
}
} else
#endif
- if ( ::qt_cast<TQPopupMenu*>(w) ) {
+ if ( ::tqt_cast<TQPopupMenu*>(w) ) {
TQPtrListIterator<TQActionGroupPrivate::MenuItem> pu( d->menuitems );
while ( pu.current() ) {
TQActionGroupPrivate::MenuItem *mi = pu.current();
@@ -1959,7 +1959,7 @@ void TQActionGroup::childEvent( TQChildEvent *e )
if ( !e->removed() )
return;
- TQAction *action = ::qt_cast<TQAction*>(e->child());
+ TQAction *action = ::tqt_cast<TQAction*>(e->child());
if ( !action )
return;
diff --git a/src/widgets/qbutton.cpp b/src/widgets/qbutton.cpp
index d24dd17f7..05539be93 100644
--- a/src/widgets/qbutton.cpp
+++ b/src/widgets/qbutton.cpp
@@ -391,7 +391,7 @@ TQButton::TQButton( TQWidget *parent, const char *name, WFlags f )
repeat = FALSE; // not in autorepeat mode
d = 0;
#ifndef QT_NO_BUTTONGROUP
- if ( ::qt_cast<TQButtonGroup*>(parent) ) {
+ if ( ::tqt_cast<TQButtonGroup*>(parent) ) {
setGroup((TQButtonGroup*)parent);
group()->insert( this ); // insert into button group
}
@@ -705,7 +705,7 @@ void TQButton::keyPressEvent( TQKeyEvent *e )
case Key_Return:
{
#ifndef QT_NO_PUSHBUTTON
- TQPushButton *pb = (TQPushButton*)qt_cast( "TQPushButton" );
+ TQPushButton *pb = (TQPushButton*)tqt_cast( "TQPushButton" );
if ( pb && ( pb->autoDefault() || pb->isDefault() ) )
emit clicked();
else
@@ -717,7 +717,7 @@ void TQButton::keyPressEvent( TQKeyEvent *e )
if ( !e->isAutoRepeat() ) {
setDown( TRUE );
#ifndef QT_NO_PUSHBUTTON
- if ( ::qt_cast<TQPushButton*>(this) )
+ if ( ::tqt_cast<TQPushButton*>(this) )
emit pressed();
else
#endif
@@ -999,7 +999,7 @@ bool TQButton::isExclusiveToggle() const
#ifndef QT_NO_BUTTONGROUP
return group() && ( group()->isExclusive() ||
group()->isRadioButtonExclusive() &&
- ::qt_cast<TQRadioButton*>(this) );
+ ::tqt_cast<TQRadioButton*>(this) );
#else
return FALSE;
#endif
diff --git a/src/widgets/qbuttongroup.cpp b/src/widgets/qbuttongroup.cpp
index c94ba0378..5745cd3ff 100644
--- a/src/widgets/qbuttongroup.cpp
+++ b/src/widgets/qbuttongroup.cpp
@@ -410,7 +410,7 @@ void TQButtonGroup::buttonClicked()
{
// introduce a TQButtonListIt if calling anything
int id = -1;
- TQButton *bt = ::qt_cast<TQButton*>(sender()); // object that sent the signal
+ TQButton *bt = ::tqt_cast<TQButton*>(sender()); // object that sent the signal
#if defined(QT_CHECK_NULL)
Q_ASSERT( bt );
#endif
@@ -436,19 +436,19 @@ void TQButtonGroup::buttonToggled( bool on )
// introduce a TQButtonListIt if calling anything
if ( !on || !excl_grp && !radio_excl )
return;
- TQButton *bt = ::qt_cast<TQButton*>(sender()); // object that sent the signal
+ TQButton *bt = ::tqt_cast<TQButton*>(sender()); // object that sent the signal
#if defined(QT_CHECK_NULL)
Q_ASSERT( bt );
Q_ASSERT( bt->isToggleButton() );
#endif
- if ( !excl_grp && !::qt_cast<TQRadioButton*>(bt) )
+ if ( !excl_grp && !::tqt_cast<TQRadioButton*>(bt) )
return;
TQButtonItem * i = buttons->first();
bool hasTabFocus = FALSE;
while( i != 0 && hasTabFocus == FALSE ) {
- if ( ( excl_grp || ::qt_cast<TQRadioButton*>(i->button) ) &&
+ if ( ( excl_grp || ::tqt_cast<TQRadioButton*>(i->button) ) &&
(i->button->focusPolicy() & TabFocus) )
hasTabFocus = TRUE;
i = buttons->next();
@@ -459,9 +459,9 @@ void TQButtonGroup::buttonToggled( bool on )
if ( bt != i->button &&
i->button->isToggleButton() &&
i->button->isOn() &&
- ( excl_grp || ::qt_cast<TQRadioButton*>(i->button) ) )
+ ( excl_grp || ::tqt_cast<TQRadioButton*>(i->button) ) )
i->button->setOn( FALSE );
- if ( ( excl_grp || ::qt_cast<TQRadioButton*>(i->button) ) &&
+ if ( ( excl_grp || ::tqt_cast<TQRadioButton*>(i->button) ) &&
i->button->isToggleButton() &&
hasTabFocus )
i->button->setFocusPolicy( (FocusPolicy)(i->button->focusPolicy() &
@@ -572,12 +572,12 @@ void TQButtonGroup::moveFocus( int key )
i = buttons->next();
}
- TQButton *buttoncand = ::qt_cast<TQButton*>(candidate);
- if ( buttoncand && ::qt_cast<TQButton*>(f) &&
+ TQButton *buttoncand = ::tqt_cast<TQButton*>(candidate);
+ if ( buttoncand && ::tqt_cast<TQButton*>(f) &&
((TQButton*)f)->isOn() &&
buttoncand->isToggleButton() &&
- ( isExclusive() || ( ::qt_cast<TQRadioButton*>(f) &&
- ::qt_cast<TQRadioButton*>(candidate)))) {
+ ( isExclusive() || ( ::tqt_cast<TQRadioButton*>(f) &&
+ ::tqt_cast<TQRadioButton*>(candidate)))) {
if ( f->focusPolicy() & TabFocus ) {
f->setFocusPolicy( (FocusPolicy)(f->focusPolicy() & ~TabFocus) );
candidate->setFocusPolicy( (FocusPolicy)(candidate->focusPolicy()|
@@ -669,7 +669,7 @@ bool TQButtonGroup::event( TQEvent * e )
{
if ( e->type() == TQEvent::ChildInserted ) {
TQChildEvent * ce = (TQChildEvent *) e;
- if ( radio_excl && ::qt_cast<TQRadioButton*>(ce->child()) ) {
+ if ( radio_excl && ::tqt_cast<TQRadioButton*>(ce->child()) ) {
TQButton * button = (TQButton *) ce->child();
if ( button->isToggleButton() && !button->isOn() &&
selected() && (selected()->focusPolicy() & TabFocus) != 0 )
diff --git a/src/widgets/qdatetimeedit.cpp b/src/widgets/qdatetimeedit.cpp
index e226d671e..892c1e618 100644
--- a/src/widgets/qdatetimeedit.cpp
+++ b/src/widgets/qdatetimeedit.cpp
@@ -423,7 +423,7 @@ public:
void enabledChange(bool notenabled)
{
- TQDateEdit *de = ::qt_cast<TQDateEdit*>(parentWidget());
+ TQDateEdit *de = ::tqt_cast<TQDateEdit*>(parentWidget());
if (de && !notenabled) {
setUpEnabled(de->date() < de->maxValue());
setDownEnabled(de->date() > de->minValue());
@@ -437,7 +437,7 @@ protected:
#ifndef QT_NO_WHEELEVENT
void wheelEvent( TQWheelEvent *e )
{
- TQDateTimeEditor *editor = (TQDateTimeEditor*)editWidget()->qt_cast( "TQDateTimeEditor" );
+ TQDateTimeEditor *editor = (TQDateTimeEditor*)editWidget()->tqt_cast( "TQDateTimeEditor" );
Q_ASSERT( editor );
if ( !editor )
return;
@@ -608,9 +608,9 @@ bool TQDateTimeEditor::eventFilter( TQObject *o, TQEvent *e )
cw->stepDown();
return TRUE;
case Key_Backspace:
- if ( ::qt_cast<TQDateEdit*>(cw) )
+ if ( ::tqt_cast<TQDateEdit*>(cw) )
((TQDateEdit*)cw)->removeFirstNumber( d->focusSection() );
- else if ( ::qt_cast<TQTimeEdit*>(cw) )
+ else if ( ::tqt_cast<TQTimeEdit*>(cw) )
((TQTimeEdit*)cw)->removeFirstNumber( d->focusSection() );
return TRUE;
case Key_Delete:
@@ -624,15 +624,15 @@ bool TQDateTimeEditor::eventFilter( TQObject *o, TQEvent *e )
TQWidget *w = this;
bool hadDateEdit = FALSE;
while ( w ) {
- if ( ::qt_cast<TQDateTimeSpinWidget*>(w) && qstrcmp( w->name(), "qt_spin_widget" ) != 0 ||
- ::qt_cast<TQDateTimeEdit*>(w) )
+ if ( ::tqt_cast<TQDateTimeSpinWidget*>(w) && qstrcmp( w->name(), "qt_spin_widget" ) != 0 ||
+ ::tqt_cast<TQDateTimeEdit*>(w) )
break;
- hadDateEdit = hadDateEdit || ::qt_cast<TQDateEdit*>(w);
+ hadDateEdit = hadDateEdit || ::tqt_cast<TQDateEdit*>(w);
w = w->parentWidget();
}
if ( w ) {
- if ( !::qt_cast<TQDateTimeEdit*>(w) ) {
+ if ( !::tqt_cast<TQDateTimeEdit*>(w) ) {
w = w->parentWidget();
} else {
TQDateTimeEdit *ed = (TQDateTimeEdit*)w;
@@ -643,7 +643,7 @@ bool TQDateTimeEditor::eventFilter( TQObject *o, TQEvent *e )
ed->dateEdit()->setFocus();
return TRUE;
} else {
- while ( w && !::qt_cast<TQDateTimeEdit*>(w) )
+ while ( w && !::tqt_cast<TQDateTimeEdit*>(w) )
w = w->parentWidget();
}
}
@@ -661,7 +661,7 @@ bool TQDateTimeEditor::eventFilter( TQObject *o, TQEvent *e )
repaint( rect(), FALSE );
}
return TRUE;
- } else if ( !txt.isEmpty() && ::qt_cast<TQTimeEdit*>(cw) && focusSection() == (int) d->sectionCount()-1 ) {
+ } else if ( !txt.isEmpty() && ::tqt_cast<TQTimeEdit*>(cw) && focusSection() == (int) d->sectionCount()-1 ) {
// the first character of the AM/PM indicator toggles if the section has focus
TQTimeEdit *te = (TQTimeEdit*)cw;
TQTime time = te->time();
diff --git a/src/widgets/qdockarea.cpp b/src/widgets/qdockarea.cpp
index 0e2555bd7..760db5382 100644
--- a/src/widgets/qdockarea.cpp
+++ b/src/widgets/qdockarea.cpp
@@ -235,7 +235,7 @@ static int point_pos( const TQPoint &p, TQt::Orientation o, bool swap = FALSE )
static void shrink_extend( TQDockWindow *dw, int &dockExtend, int /*spaceLeft*/, TQt::Orientation o )
{
- TQToolBar *tb = ::qt_cast<TQToolBar*>(dw);
+ TQToolBar *tb = ::tqt_cast<TQToolBar*>(dw);
if ( o == TQt::Horizontal ) {
int mw = 0;
if ( !tb )
@@ -258,7 +258,7 @@ static void place_line( TQValueList<DockData> &lastLine, TQt::Orientation o, int
TQDockWindow *last = 0;
TQRect lastRect;
for ( TQValueList<DockData>::Iterator it = lastLine.begin(); it != lastLine.end(); ++it ) {
- if ( tbstrut != -1 && ::qt_cast<TQToolBar*>((*it).w) )
+ if ( tbstrut != -1 && ::tqt_cast<TQToolBar*>((*it).w) )
(*it).rect.setHeight( tbstrut );
if ( !last ) {
last = (*it).w;
@@ -391,7 +391,7 @@ int TQDockAreaLayout::layoutItems( const TQRect &rect, bool testonly )
// do some calculations and add the remember the rect which the docking widget requires for the placing
TQRect dwRect(pos, sectionpos, dockExtend, dock_strut( dw, orientation() ) );
lastLine.append( DockData( dw, dwRect ) );
- if ( ::qt_cast<TQToolBar*>(dw) )
+ if ( ::tqt_cast<TQToolBar*>(dw) )
tbstrut = TQMAX( tbstrut, dock_strut( dw, orientation() ) );
linestrut = TQMAX( dock_strut( dw, orientation() ), linestrut );
add_size( dockExtend, pos, orientation() );
@@ -926,7 +926,7 @@ void TQDockArea::updateLayout()
bool TQDockArea::eventFilter( TQObject *o, TQEvent *e )
{
if ( e->type() == TQEvent::Close ) {
- if ( ::qt_cast<TQDockWindow*>(o) ) {
+ if ( ::tqt_cast<TQDockWindow*>(o) ) {
o->removeEventFilter( this );
TQApplication::sendEvent( o, e );
if ( ( (TQCloseEvent*)e )->isAccepted() )
@@ -1087,7 +1087,7 @@ bool TQDockArea::isDockWindowAccepted( TQDockWindow *dw )
if ( forbiddenWidgets.findRef( dw ) != -1 )
return FALSE;
- TQMainWindow *mw = ::qt_cast<TQMainWindow*>(parentWidget());
+ TQMainWindow *mw = ::tqt_cast<TQMainWindow*>(parentWidget());
if ( !mw )
return TRUE;
if ( !mw->hasDockWindow( dw ) )
@@ -1145,7 +1145,7 @@ int TQDockArea::maxSpace( int hint, TQDockWindow *dw )
return dw->height();
}
int min = 0;
- TQToolBar *tb = ::qt_cast<TQToolBar*>(w);
+ TQToolBar *tb = ::tqt_cast<TQToolBar*>(w);
if ( orientation() == Horizontal ) {
w->setFixedExtentWidth( -1 );
if ( !tb )
diff --git a/src/widgets/qdockwindow.cpp b/src/widgets/qdockwindow.cpp
index a0f4163c1..8e6996338 100644
--- a/src/widgets/qdockwindow.cpp
+++ b/src/widgets/qdockwindow.cpp
@@ -493,7 +493,7 @@ void TQDockWindowHandle::minimize()
if ( !dockWindow->area() )
return;
- TQMainWindow *mw = ::qt_cast<TQMainWindow*>(dockWindow->area()->parentWidget());
+ TQMainWindow *mw = ::tqt_cast<TQMainWindow*>(dockWindow->area()->parentWidget());
if ( mw && mw->isDockEnabled( dockWindow, TQt::DockMinimized ) )
mw->moveDockWindow( dockWindow, TQt::DockMinimized );
}
@@ -1031,13 +1031,13 @@ void TQDockWindow::init()
if ( parentWidget() )
parentWidget()->installEventFilter( this );
TQWidget *mw = parentWidget();
- TQDockArea *da = ::qt_cast<TQDockArea*>(parentWidget());
+ TQDockArea *da = ::tqt_cast<TQDockArea*>(parentWidget());
if ( da ) {
if ( curPlace == InDock )
da->moveDockWindow( this );
mw = da->parentWidget();
}
- if ( ::qt_cast<TQMainWindow*>(mw) ) {
+ if ( ::tqt_cast<TQMainWindow*>(mw) ) {
if ( place() == InDock ) {
Dock myDock = TQt::DockTop;
// make sure we put the window in the correct dock.
@@ -1123,7 +1123,7 @@ TQDockWindow::~TQDockWindow()
TQDockArea *a = area();
if ( !a && dockWindowData )
a = ( (TQDockArea::DockWindowData*)dockWindowData )->area;
- TQMainWindow *mw = a ? ::qt_cast<TQMainWindow*>(a->parentWidget()) : 0;
+ TQMainWindow *mw = a ? ::tqt_cast<TQMainWindow*>(a->parentWidget()) : 0;
if ( mw )
mw->removeDockWindow( this );
@@ -1164,12 +1164,12 @@ TQWidget *TQDockWindow::areaAt( const TQPoint &gp )
w = parentWidget()->childAt( parentWidget()->mapFromGlobal( gp ) );
while ( w ) {
- if ( ::qt_cast<TQDockArea*>(w) ) {
+ if ( ::tqt_cast<TQDockArea*>(w) ) {
TQDockArea *a = (TQDockArea*)w;
if ( a->isDockWindowAccepted( this ) )
return w;
}
- if ( ::qt_cast<TQMainWindow*>(w) ) {
+ if ( ::tqt_cast<TQMainWindow*>(w) ) {
TQMainWindow *mw = (TQMainWindow*)w;
TQDockArea *a = mw->dockingArea( mw->mapFromGlobal( gp ) );
if ( a && a->isDockWindowAccepted( this ) )
@@ -1197,8 +1197,8 @@ void TQDockWindow::handleMove( const TQPoint &pos, const TQPoint &gp, bool drawR
if ( titleBar->ctrlDown || horHandle->ctrlDown || verHandle->ctrlDown )
w = 0;
currRect.moveBy( pos.x(), pos.y() );
- if ( !::qt_cast<TQDockArea*>(w) ) {
- if ( startOrientation != Horizontal && ::qt_cast<TQToolBar*>(this) )
+ if ( !::tqt_cast<TQDockArea*>(w) ) {
+ if ( startOrientation != Horizontal && ::tqt_cast<TQToolBar*>(this) )
swapRect( currRect, Horizontal, startOffset, (TQDockArea*)w );
if ( drawRect ) {
unclippedPainter->setPen( TQPen( gray, 3 ) );
@@ -1396,14 +1396,14 @@ void TQDockWindow::updatePosition( const TQPoint &globalPos )
} else {
if ( dockArea ) {
TQMainWindow *mw = (TQMainWindow*)dockArea->parentWidget();
- if ( ::qt_cast<TQMainWindow*>(mw) &&
+ if ( ::tqt_cast<TQMainWindow*>(mw) &&
( !mw->isDockEnabled( TQMainWindow::DockTornOff ) ||
!mw->isDockEnabled( this, TQMainWindow::DockTornOff ) ) )
return;
delete (TQDockArea::DockWindowData*)dockWindowData;
dockWindowData = dockArea->dockWindowData( this );
dockArea->removeDockWindow( this, TRUE,
- startOrientation != Horizontal && ::qt_cast<TQToolBar*>(this) );
+ startOrientation != Horizontal && ::tqt_cast<TQToolBar*>(this) );
}
dockArea = 0;
TQPoint topLeft = currRect.topLeft();
@@ -1417,7 +1417,7 @@ void TQDockWindow::updatePosition( const TQPoint &globalPos )
move( topLeft );
}
- if ( curPlace == InDock && state == OutsideDock && !::qt_cast<TQToolBar*>(this) ) {
+ if ( curPlace == InDock && state == OutsideDock && !::tqt_cast<TQToolBar*>(this) ) {
if ( lastSize != TQSize( -1, -1 ) )
resize( lastSize );
}
@@ -1431,7 +1431,7 @@ void TQDockWindow::updatePosition( const TQPoint &globalPos )
tmpDockArea = 0;
if ( doAdjustSize ) {
TQApplication::sendPostedEvents( this, TQEvent::LayoutHint );
- if ( ::qt_cast<TQToolBar*>(this) )
+ if ( ::tqt_cast<TQToolBar*>(this) )
adjustSize();
if (lastSize == TQSize(-1, -1))
clearWState(WState_Resized); // Ensures size is recalculated (non-opaque).
@@ -1706,7 +1706,7 @@ TQt::Orientation TQDockWindow::orientation() const
{
if ( dockArea )
return dockArea->orientation();
- if ( ::qt_cast<TQToolBar*>(this) )
+ if ( ::tqt_cast<TQToolBar*>(this) )
return Horizontal;
return ( ((TQDockWindow*)this)->boxLayout()->direction() == TQBoxLayout::LeftToRight ||
((TQDockWindow*)this)->boxLayout()->direction() == TQBoxLayout::RightToLeft ?
@@ -1861,7 +1861,7 @@ void TQDockWindow::undock( TQWidget *w )
{
TQMainWindow *mw = 0;
if ( area() )
- mw = ::qt_cast<TQMainWindow*>(area()->parentWidget());
+ mw = ::tqt_cast<TQMainWindow*>(area()->parentWidget());
if ( mw && !mw->isDockEnabled( this, DockTornOff ) )
return;
if ( (place() == OutsideDock && !w) )
@@ -1873,7 +1873,7 @@ void TQDockWindow::undock( TQWidget *w )
if ( dockArea ) {
delete (TQDockArea::DockWindowData*)dockWindowData;
dockWindowData = dockArea->dockWindowData( this );
- dockArea->removeDockWindow( this, TRUE, orientation() != Horizontal && ::qt_cast<TQToolBar*>(this) );
+ dockArea->removeDockWindow( this, TRUE, orientation() != Horizontal && ::tqt_cast<TQToolBar*>(this) );
}
dockArea = 0;
if ( lastPos != TQPoint( -1, -1 ) && lastPos.x() > 0 && lastPos.y() > 0 )
@@ -1886,7 +1886,7 @@ void TQDockWindow::undock( TQWidget *w )
updateGui();
emit orientationChanged( orientation() );
TQApplication::sendPostedEvents( this, TQEvent::LayoutHint );
- if ( ::qt_cast<TQToolBar*>(this) )
+ if ( ::tqt_cast<TQToolBar*>(this) )
adjustSize();
if ( !w ) {
if ( !parentWidget() || parentWidget()->isVisible() ) {
@@ -2110,7 +2110,7 @@ void TQDockWindow::contextMenuEvent( TQContextMenuEvent *e )
{
TQObject *o = this;
while ( o ) {
- if ( ::qt_cast<TQMainWindow*>(o) )
+ if ( ::tqt_cast<TQMainWindow*>(o) )
break;
o = o->parent();
}
diff --git a/src/widgets/qeffects.cpp b/src/widgets/qeffects.cpp
index 7377eba78..d2f207912 100644
--- a/src/widgets/qeffects.cpp
+++ b/src/widgets/qeffects.cpp
@@ -192,7 +192,7 @@ bool TQAlphaWidget::eventFilter( TQObject* o, TQEvent* e )
break;
case TQEvent::MouseButtonPress:
#ifndef QT_NO_SCROLLVIEW
- if ( ::qt_cast<TQScrollView*>(o) )
+ if ( ::tqt_cast<TQScrollView*>(o) )
break;
#endif
case TQEvent::MouseButtonDblClick:
@@ -444,7 +444,7 @@ bool TQRollEffect::eventFilter( TQObject* o, TQEvent* e )
break;
case TQEvent::MouseButtonPress:
#ifndef QT_NO_SCROLLVIEW
- if ( ::qt_cast<TQScrollView*>(o) )
+ if ( ::tqt_cast<TQScrollView*>(o) )
break;
#endif
case TQEvent::MouseButtonDblClick:
diff --git a/src/widgets/qgroupbox.cpp b/src/widgets/qgroupbox.cpp
index e6d2ad583..d78ae735f 100644
--- a/src/widgets/qgroupbox.cpp
+++ b/src/widgets/qgroupbox.cpp
@@ -677,7 +677,7 @@ void TQGroupBox::fixFocus()
&& w->isVisibleTo(this) ) {
if ( w->hasFocus()
#ifndef QT_NO_RADIOBUTTON
- || ( !best && ::qt_cast<TQRadioButton*>(w)
+ || ( !best && ::tqt_cast<TQRadioButton*>(w)
&& ((TQRadioButton*)w)->isChecked() )
#endif
)
@@ -841,7 +841,7 @@ void TQGroupBox::setCheckable( bool b )
if ( b ) {
if ( !d->checkbox ) {
d->checkbox = new TQCheckBox( title(), this, "qt_groupbox_checkbox" );
- if (TQButtonGroup *meAsButtonGroup = ::qt_cast<TQButtonGroup*>(this))
+ if (TQButtonGroup *meAsButtonGroup = ::tqt_cast<TQButtonGroup*>(this))
meAsButtonGroup->remove(d->checkbox);
setChecked( TRUE );
setChildrenEnabled( TRUE );
diff --git a/src/widgets/qlistview.cpp b/src/widgets/qlistview.cpp
index 06830bddf..faffe09b9 100644
--- a/src/widgets/qlistview.cpp
+++ b/src/widgets/qlistview.cpp
@@ -3839,7 +3839,7 @@ bool TQListView::eventFilter( TQObject * o, TQEvent * e )
// nothing
break;
}
- } else if ( ::qt_cast<TQLineEdit*>(o) ) {
+ } else if ( ::tqt_cast<TQLineEdit*>(o) ) {
if ( currentItem() && currentItem()->renameBox ) {
if ( e->type() == TQEvent::KeyPress ) {
TQKeyEvent *ke = (TQKeyEvent*)e;
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() );
diff --git a/src/widgets/qmenubar.cpp b/src/widgets/qmenubar.cpp
index ed592df6a..02ee71b24 100644
--- a/src/widgets/qmenubar.cpp
+++ b/src/widgets/qmenubar.cpp
@@ -392,7 +392,7 @@ void TQMenuBar::performDelayedContentsChanged()
if ( isVisible() ) {
update();
#ifndef QT_NO_MAINWINDOW
- TQMainWindow *mw = ::qt_cast<TQMainWindow*>(parent());
+ TQMainWindow *mw = ::tqt_cast<TQMainWindow*>(parent());
if ( mw ) {
mw->triggerLayout();
mw->update();
@@ -515,7 +515,7 @@ bool TQMenuBar::eventFilter( TQObject *object, TQEvent *event )
{
if ( object == parent() && object
#ifndef QT_NO_TOOLBAR
- && !::qt_cast<TQToolBar*>(object)
+ && !::tqt_cast<TQToolBar*>(object)
#endif
&& event->type() == TQEvent::Resize ) {
TQResizeEvent *e = (TQResizeEvent *)event;
@@ -843,7 +843,7 @@ void TQMenuBar::show()
#endif
#ifndef QT_NO_MAINWINDOW
- TQMainWindow *mw = ::qt_cast<TQMainWindow*>(parent());
+ TQMainWindow *mw = ::tqt_cast<TQMainWindow*>(parent());
if ( mw ) //### ugly workaround
mw->triggerLayout();
#endif
@@ -861,7 +861,7 @@ void TQMenuBar::hide()
setAltMode( FALSE );
hidePopups();
#ifndef QT_NO_MAINWINDOW
- TQMainWindow *mw = ::qt_cast<TQMainWindow*>(parent());
+ TQMainWindow *mw = ::tqt_cast<TQMainWindow*>(parent());
if ( mw ) //### ugly workaround
mw->triggerLayout();
#endif
@@ -1630,7 +1630,7 @@ TQSize TQMenuBar::sizeHint() const
TQSize TQMenuBar::minimumSize() const
{
#ifndef QT_NO_TOOLBAR
- TQToolBar *tb = ::qt_cast<TQToolBar*>(parent());
+ TQToolBar *tb = ::tqt_cast<TQToolBar*>(parent());
if ( tb )
return sizeHint();
#endif
diff --git a/src/widgets/qmenudata.cpp b/src/widgets/qmenudata.cpp
index 437234dc7..ef385ab16 100644
--- a/src/widgets/qmenudata.cpp
+++ b/src/widgets/qmenudata.cpp
@@ -293,7 +293,7 @@ int TQMenuData::insertAny( const TQString *text, const TQPixmap *pixmap,
}
mitems->insert( index, mi );
- TQPopupMenu* p = ::qt_cast<TQPopupMenu*>(TQMenuData::d->aWidget);
+ TQPopupMenu* p = ::tqt_cast<TQPopupMenu*>(TQMenuData::d->aWidget);
if (p && p->isVisible() && p->mitems) {
p->mitems->clear();
for ( TQMenuItemListIt it( *mitems ); it.current(); ++it ) {
@@ -821,7 +821,7 @@ void TQMenuData::removeItemAt( int index )
if ( mi->popup_menu )
menuDelPopup( mi->popup_menu );
mitems->remove();
- TQPopupMenu* p = ::qt_cast<TQPopupMenu*>(TQMenuData::d->aWidget);
+ TQPopupMenu* p = ::tqt_cast<TQPopupMenu*>(TQMenuData::d->aWidget);
if (p && p->isVisible() && p->mitems) {
p->mitems->clear();
for ( TQMenuItemListIt it( *mitems ); it.current(); ++it ) {
@@ -849,7 +849,7 @@ void TQMenuData::clear()
mitems->remove();
mi = mitems->current();
}
- TQPopupMenu* p = ::qt_cast<TQPopupMenu*>(TQMenuData::d->aWidget);
+ TQPopupMenu* p = ::tqt_cast<TQPopupMenu*>(TQMenuData::d->aWidget);
if (p && p->isVisible() && p->mitems) {
p->mitems->clear();
}
diff --git a/src/widgets/qpushbutton.cpp b/src/widgets/qpushbutton.cpp
index 09e57b119..3e3925ab7 100644
--- a/src/widgets/qpushbutton.cpp
+++ b/src/widgets/qpushbutton.cpp
@@ -335,7 +335,7 @@ void TQPushButton::init()
hasMenuArrow = FALSE;
flt = FALSE;
#ifndef QT_NO_DIALOG
- autoDefButton = ::qt_cast<TQDialog*>(topLevelWidget()) != 0;
+ autoDefButton = ::tqt_cast<TQDialog*>(topLevelWidget()) != 0;
#else
autoDefButton = FALSE;
#endif
@@ -389,7 +389,7 @@ void TQPushButton::setDefault( bool enable )
return; // no change
defButton = enable;
#ifndef QT_NO_DIALOG
- if ( defButton && ::qt_cast<TQDialog*>(topLevelWidget()) )
+ if ( defButton && ::tqt_cast<TQDialog*>(topLevelWidget()) )
((TQDialog*)topLevelWidget())->setMainDefault( this );
#endif
update();
@@ -613,7 +613,7 @@ void TQPushButton::focusInEvent( TQFocusEvent *e )
if (autoDefButton && !defButton) {
defButton = TRUE;
#ifndef QT_NO_DIALOG
- if ( defButton && ::qt_cast<TQDialog*>(topLevelWidget()) )
+ if ( defButton && ::tqt_cast<TQDialog*>(topLevelWidget()) )
((TQDialog*)topLevelWidget())->setDefault( this );
#endif
}
@@ -627,7 +627,7 @@ void TQPushButton::focusOutEvent( TQFocusEvent *e )
{
#ifndef QT_NO_DIALOG
if ( defButton && autoDefButton ) {
- if ( ::qt_cast<TQDialog*>(topLevelWidget()) )
+ if ( ::tqt_cast<TQDialog*>(topLevelWidget()) )
((TQDialog*)topLevelWidget())->setDefault( 0 );
}
#endif
@@ -706,7 +706,7 @@ void TQPushButton::popupPressed()
bool horizontal = TRUE;
bool topLeft = TRUE; // ### always TRUE
#ifndef QT_NO_TOOLBAR
- TQToolBar *tb = ::qt_cast<TQToolBar*>(parentWidget());
+ TQToolBar *tb = ::tqt_cast<TQToolBar*>(parentWidget());
if ( tb && tb->orientation() == Vertical )
horizontal = FALSE;
#endif
diff --git a/src/widgets/qradiobutton.cpp b/src/widgets/qradiobutton.cpp
index d04c0ff10..10bbc8be1 100644
--- a/src/widgets/qradiobutton.cpp
+++ b/src/widgets/qradiobutton.cpp
@@ -139,7 +139,7 @@ void TQRadioButton::init()
setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Fixed ) );
setToggleButton( TRUE );
#ifndef QT_NO_BUTTONGROUP
- TQButtonGroup *bgrp = ::qt_cast<TQButtonGroup*>(parentWidget());
+ TQButtonGroup *bgrp = ::tqt_cast<TQButtonGroup*>(parentWidget());
if ( bgrp )
bgrp->setRadioButtonExclusive( TRUE );
#endif
diff --git a/src/widgets/qscrollview.cpp b/src/widgets/qscrollview.cpp
index 20d0adeb9..1938ff23f 100644
--- a/src/widgets/qscrollview.cpp
+++ b/src/widgets/qscrollview.cpp
@@ -2385,7 +2385,7 @@ void TQScrollView::frameChanged()
{
// slight ugle-hack - the listview header needs readjusting when
// changing the frame
- if (TQListView *lv = ::qt_cast<TQListView *>(this))
+ if (TQListView *lv = ::tqt_cast<TQListView *>(this))
lv->triggerUpdate();
TQFrame::frameChanged();
updateScrollBars();
diff --git a/src/widgets/qsplashscreen.cpp b/src/widgets/qsplashscreen.cpp
index 1896269b2..3aec8a234 100644
--- a/src/widgets/qsplashscreen.cpp
+++ b/src/widgets/qsplashscreen.cpp
@@ -214,8 +214,8 @@ void TQSplashScreen::finish( TQWidget *mainWin )
{
if ( mainWin ) {
#if defined(Q_WS_X11)
- extern void qt_wait_for_window_manager( TQWidget *mainWin );
- qt_wait_for_window_manager( mainWin );
+ extern void tqt_wait_for_window_manager( TQWidget *mainWin );
+ tqt_wait_for_window_manager( mainWin );
#endif
}
close();
diff --git a/src/widgets/qsplitter.cpp b/src/widgets/qsplitter.cpp
index 95ec5d5ae..cedb498b0 100644
--- a/src/widgets/qsplitter.cpp
+++ b/src/widgets/qsplitter.cpp
@@ -901,7 +901,7 @@ void TQSplitter::recalc( bool update )
}
}
if ( empty ) {
- if ( ::qt_cast<TQSplitter*>(parentWidget()) ) {
+ if ( ::tqt_cast<TQSplitter*>(parentWidget()) ) {
// nested splitters; be nice
maxl = maxt = 0;
} else {
diff --git a/src/widgets/qtabbar.cpp b/src/widgets/qtabbar.cpp
index dcee15084..697b28f5b 100644
--- a/src/widgets/qtabbar.cpp
+++ b/src/widgets/qtabbar.cpp
@@ -614,7 +614,7 @@ void TQTabBar::paint( TQPainter * p, TQTab * t, bool selected ) const
int h = TQMAX(fm.height() + 4, ih );
int offset = 3;
#ifdef Q_WS_MAC
- if (::qt_cast<TQMacStyle *>(&style()))
+ if (::tqt_cast<TQMacStyle *>(&style()))
offset = 0;
#endif
paintLabel( p, TQRect( r.left() + (r.width()-w)/2 - offset,
diff --git a/src/widgets/qtabwidget.cpp b/src/widgets/qtabwidget.cpp
index bb2eccf8e..43c9c76df 100644
--- a/src/widgets/qtabwidget.cpp
+++ b/src/widgets/qtabwidget.cpp
@@ -243,7 +243,7 @@ TQTabWidget::TQTabWidget( TQWidget *parent, const char *name, WFlags f )
installEventFilter( this );
#ifdef Q_OS_MACX
- if (::qt_cast<TQMacStyle*>(&style()))
+ if (::tqt_cast<TQMacStyle*>(&style()))
setMargin(10); // According to HIGuidelines at least.
#endif
}
diff --git a/src/widgets/qtextedit.cpp b/src/widgets/qtextedit.cpp
index 9a5502c1f..df41d2d05 100644
--- a/src/widgets/qtextedit.cpp
+++ b/src/widgets/qtextedit.cpp
@@ -2503,7 +2503,7 @@ void TQTextEdit::contentsMouseReleaseEvent( TQMouseEvent * e )
TQUrl u( doc->context(), onLink, TRUE );
emitLinkClicked( u.toString( FALSE, FALSE ) );
}
- if (::qt_cast<TQTextBrowser*>(this)) { // change for 4.0
+ if (::tqt_cast<TQTextBrowser*>(this)) { // change for 4.0
TQConnectionList *clist = receivers(
"anchorClicked(const TQString&,const TQString&)");
if (!signalsBlocked() && clist) {
@@ -4907,7 +4907,7 @@ bool TQTextEdit::handleReadOnlyKeyEvent( TQKeyEvent *e )
emitLinkClicked( u.toString( FALSE, FALSE ) );
}
if (!doc->focusIndicator.name.isEmpty()) {
- if (::qt_cast<TQTextBrowser*>(this)) { // change for 4.0
+ if (::tqt_cast<TQTextBrowser*>(this)) { // change for 4.0
TQConnectionList *clist = receivers(
"anchorClicked(const TQString&,const TQString&)");
if (!signalsBlocked() && clist) {
diff --git a/src/widgets/qtitlebar.cpp b/src/widgets/qtitlebar.cpp
index 1bf94d6d6..8fc3ca468 100644
--- a/src/widgets/qtitlebar.cpp
+++ b/src/widgets/qtitlebar.cpp
@@ -70,7 +70,7 @@ public:
void maybeTip( const TQPoint &pos )
{
- if ( !::qt_cast<TQTitleBar*>(parentWidget()) )
+ if ( !::tqt_cast<TQTitleBar*>(parentWidget()) )
return;
TQTitleBar *t = (TQTitleBar *)parentWidget();
@@ -404,7 +404,7 @@ void TQTitleBar::mouseMoveEvent( TQMouseEvent * e)
TQPoint p = mapFromGlobal(e->globalPos());
#ifndef QT_NO_WORKSPACE
if(d->window && d->window->parentWidget()->inherits("TQWorkspaceChild")) {
- TQWorkspace *workspace = ::qt_cast<TQWorkspace*>(d->window->parentWidget()->parentWidget());
+ TQWorkspace *workspace = ::tqt_cast<TQWorkspace*>(d->window->parentWidget()->parentWidget());
if(workspace) {
p = workspace->mapFromGlobal( e->globalPos() );
if ( !workspace->rect().contains(p) ) {
diff --git a/src/widgets/qtoolbar.cpp b/src/widgets/qtoolbar.cpp
index 2a48bf628..b465faffb 100644
--- a/src/widgets/qtoolbar.cpp
+++ b/src/widgets/qtoolbar.cpp
@@ -435,7 +435,7 @@ void TQToolBar::styleChange( TQStyle& )
TQObject *ob = 0;
for ( ob = childs->first(); ob; ob = childs->next() ) {
TQWidget *w = (TQWidget*)ob;
- if ( ::qt_cast<TQToolButton*>(w) || ::qt_cast<TQToolBarSeparator*>(w) )
+ if ( ::tqt_cast<TQToolButton*>(w) || ::tqt_cast<TQToolBarSeparator*>(w) )
w->setStyle( &style() );
}
}
@@ -632,7 +632,7 @@ void TQToolBar::createPopup()
}
TQWidget *w = (TQWidget*)it.current();
#ifndef QT_NO_COMBOBOX
- if ( ::qt_cast<TQComboBox*>(w) )
+ if ( ::tqt_cast<TQComboBox*>(w) )
j = 1;
#endif
hide = FALSE;
@@ -646,7 +646,7 @@ void TQToolBar::createPopup()
}
if ( hide && w->isVisible() ) {
doHide = TRUE;
- if ( ::qt_cast<TQToolButton*>(w) ) {
+ if ( ::tqt_cast<TQToolButton*>(w) ) {
TQToolButton *b = (TQToolButton*)w;
TQString s = b->textLabel();
if ( s.isEmpty() )
@@ -659,7 +659,7 @@ void TQToolBar::createPopup()
d->extensionPopup->setItemChecked( id, b->isOn() );
if ( !b->isEnabled() )
d->extensionPopup->setItemEnabled( id, FALSE );
- } else if ( ::qt_cast<TQButton*>(w) ) {
+ } else if ( ::tqt_cast<TQButton*>(w) ) {
TQButton *b = (TQButton*)w;
TQString s = b->text();
if ( s.isEmpty() )
@@ -673,7 +673,7 @@ void TQToolBar::createPopup()
if ( !b->isEnabled() )
d->extensionPopup->setItemEnabled( id, FALSE );
#ifndef QT_NO_COMBOBOX
- } else if ( ::qt_cast<TQComboBox*>(w) ) {
+ } else if ( ::tqt_cast<TQComboBox*>(w) ) {
TQComboBox *c = (TQComboBox*)w;
if ( c->count() != 0 ) {
#ifndef QT_NO_WIDGET_TOPEXTRA
diff --git a/src/widgets/qtoolbox.cpp b/src/widgets/qtoolbox.cpp
index 05793a7de..74f1e6046 100644
--- a/src/widgets/qtoolbox.cpp
+++ b/src/widgets/qtoolbox.cpp
@@ -393,7 +393,7 @@ int TQToolBox::insertItem( int index, TQWidget *item, const TQIconSet &iconSet,
void TQToolBox::buttonClicked()
{
- TQToolBoxButton *tb = ::qt_cast<TQToolBoxButton*>(sender());
+ TQToolBoxButton *tb = ::tqt_cast<TQToolBoxButton*>(sender());
TQWidget* item = 0;
for ( TQToolBoxPrivate::PageList::ConstIterator i = d->pageList.constBegin(); i != d->pageList.constEnd(); ++i )
if ( (*i).button == tb ) {
diff --git a/src/widgets/qtoolbutton.cpp b/src/widgets/qtoolbutton.cpp
index 26f5607f7..e7f7e6db6 100644
--- a/src/widgets/qtoolbutton.cpp
+++ b/src/widgets/qtoolbutton.cpp
@@ -144,7 +144,7 @@ TQToolButton::TQToolButton( TQWidget * parent, const char *name )
{
init();
#ifndef QT_NO_TOOLBAR
- TQToolBar* tb = ::qt_cast<TQToolBar*>(parent);
+ TQToolBar* tb = ::tqt_cast<TQToolBar*>(parent);
if ( tb ) {
setAutoRaise( TRUE );
if ( tb->mainWindow() ) {
@@ -910,7 +910,7 @@ void TQToolButton::popupTimerDone()
setAutoRepeat( FALSE );
bool horizontal = TRUE;
#ifndef QT_NO_TOOLBAR
- TQToolBar *tb = ::qt_cast<TQToolBar*>(parentWidget());
+ TQToolBar *tb = ::tqt_cast<TQToolBar*>(parentWidget());
if ( tb && tb->orientation() == Vertical )
horizontal = FALSE;
#endif
diff --git a/src/widgets/qwidgetplugin.cpp b/src/widgets/qwidgetplugin.cpp
index 37b5156bb..58c1e2c04 100644
--- a/src/widgets/qwidgetplugin.cpp
+++ b/src/widgets/qwidgetplugin.cpp
@@ -237,7 +237,7 @@ bool TQWidgetPluginPrivate::canUnload() const
#ifdef QT_CONTAINER_CUSTOM_WIDGETS
TQWidget* TQWidgetPluginPrivate::containerOfWidget( const TQString &key, TQWidget *widget ) const
{
- TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->qt_cast( "TQWidgetContainerPlugin" );
+ TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->tqt_cast( "TQWidgetContainerPlugin" );
if ( p )
return p->containerOfWidget( key, widget );
return widget;
@@ -245,7 +245,7 @@ TQWidget* TQWidgetPluginPrivate::containerOfWidget( const TQString &key, TQWidge
int TQWidgetPluginPrivate::count( const TQString &key, TQWidget *container ) const
{
- TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->qt_cast( "TQWidgetContainerPlugin" );
+ TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->tqt_cast( "TQWidgetContainerPlugin" );
if ( p )
return p->count( key, container );
return 0;
@@ -253,7 +253,7 @@ int TQWidgetPluginPrivate::count( const TQString &key, TQWidget *container ) con
int TQWidgetPluginPrivate::currentIndex( const TQString &key, TQWidget *container ) const
{
- TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->qt_cast( "TQWidgetContainerPlugin" );
+ TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->tqt_cast( "TQWidgetContainerPlugin" );
if ( p )
return p->currentIndex( key, container );
return -1;
@@ -261,7 +261,7 @@ int TQWidgetPluginPrivate::currentIndex( const TQString &key, TQWidget *containe
TQString TQWidgetPluginPrivate::pageLabel( const TQString &key, TQWidget *container, int index ) const
{
- TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->qt_cast( "TQWidgetContainerPlugin" );
+ TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->tqt_cast( "TQWidgetContainerPlugin" );
if ( p )
return p->pageLabel( key, container, index );
return TQString::null;
@@ -269,7 +269,7 @@ TQString TQWidgetPluginPrivate::pageLabel( const TQString &key, TQWidget *contai
TQWidget *TQWidgetPluginPrivate::page( const TQString &key, TQWidget *container, int index ) const
{
- TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->qt_cast( "TQWidgetContainerPlugin" );
+ TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->tqt_cast( "TQWidgetContainerPlugin" );
if ( p )
return p->page( key, container, index );
return 0;
@@ -277,7 +277,7 @@ TQWidget *TQWidgetPluginPrivate::page( const TQString &key, TQWidget *container,
bool TQWidgetPluginPrivate::isPassiveInteractor( const TQString &key, TQWidget *widget ) const
{
- TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->qt_cast( "TQWidgetContainerPlugin" );
+ TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->tqt_cast( "TQWidgetContainerPlugin" );
if ( p )
return p->isPassiveInteractor( key, widget );
return FALSE;
@@ -285,7 +285,7 @@ bool TQWidgetPluginPrivate::isPassiveInteractor( const TQString &key, TQWidget *
bool TQWidgetPluginPrivate::supportsPages( const TQString &key ) const
{
- TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->qt_cast( "TQWidgetContainerPlugin" );
+ TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->tqt_cast( "TQWidgetContainerPlugin" );
if ( p )
return p->supportsPages( key );
return 0;
@@ -294,7 +294,7 @@ bool TQWidgetPluginPrivate::supportsPages( const TQString &key ) const
TQWidget *TQWidgetPluginPrivate::addPage( const TQString &key, TQWidget *container,
const TQString &name, int index ) const
{
- TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->qt_cast( "TQWidgetContainerPlugin" );
+ TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->tqt_cast( "TQWidgetContainerPlugin" );
if ( p )
return p->addPage( key, container, name, index );
return 0;
@@ -303,14 +303,14 @@ TQWidget *TQWidgetPluginPrivate::addPage( const TQString &key, TQWidget *contain
void TQWidgetPluginPrivate::insertPage( const TQString &key, TQWidget *container,
const TQString &name, int index, TQWidget *page ) const
{
- TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->qt_cast( "TQWidgetContainerPlugin" );
+ TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->tqt_cast( "TQWidgetContainerPlugin" );
if ( p )
p->insertPage( key, container, name, index, page );
}
void TQWidgetPluginPrivate::removePage( const TQString &key, TQWidget *container, int index ) const
{
- TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->qt_cast( "TQWidgetContainerPlugin" );
+ TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->tqt_cast( "TQWidgetContainerPlugin" );
if ( p )
p->removePage( key, container, index );
}
@@ -318,7 +318,7 @@ void TQWidgetPluginPrivate::removePage( const TQString &key, TQWidget *container
void TQWidgetPluginPrivate::movePage( const TQString &key, TQWidget *container,
int fromIndex, int toIndex ) const
{
- TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->qt_cast( "TQWidgetContainerPlugin" );
+ TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->tqt_cast( "TQWidgetContainerPlugin" );
if ( p )
p->movePage( key, container, fromIndex, toIndex );
}
@@ -326,14 +326,14 @@ void TQWidgetPluginPrivate::movePage( const TQString &key, TQWidget *container,
void TQWidgetPluginPrivate::renamePage( const TQString &key, TQWidget *container,
int index, const TQString &newName ) const
{
- TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->qt_cast( "TQWidgetContainerPlugin" );
+ TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->tqt_cast( "TQWidgetContainerPlugin" );
if ( p )
p->renamePage( key, container, index, newName );
}
TQWidgetList TQWidgetPluginPrivate::pages( const TQString &key, TQWidget *container ) const
{
- TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->qt_cast( "TQWidgetContainerPlugin" );
+ TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->tqt_cast( "TQWidgetContainerPlugin" );
if ( p )
return p->pages( key, container );
return TQWidgetList();
@@ -342,7 +342,7 @@ TQWidgetList TQWidgetPluginPrivate::pages( const TQString &key, TQWidget *contai
TQString TQWidgetPluginPrivate::createCode( const TQString &key, const TQString &container,
const TQString &page, const TQString &pageName ) const
{
- TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->qt_cast( "TQWidgetContainerPlugin" );
+ TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->tqt_cast( "TQWidgetContainerPlugin" );
if ( p )
return p->createCode( key, container, page, pageName );
return TQString::null;
diff --git a/src/widgets/qwidgetresizehandler.cpp b/src/widgets/qwidgetresizehandler.cpp
index f0d21a600..80339a4fd 100644
--- a/src/widgets/qwidgetresizehandler.cpp
+++ b/src/widgets/qwidgetresizehandler.cpp
@@ -60,7 +60,7 @@ TQWidgetResizeHandler::TQWidgetResizeHandler( TQWidget *parent, TQWidget *cw, co
{
mode = Nowhere;
widget->setMouseTracking( TRUE );
- TQFrame *frame = ::qt_cast<TQFrame*>(widget);
+ TQFrame *frame = ::tqt_cast<TQFrame*>(widget);
range = frame ? frame->frameWidth() : RANGE;
range = TQMAX( RANGE, range );
activeForMove = activeForResize = TRUE;
@@ -114,7 +114,7 @@ bool TQWidgetResizeHandler::eventFilter( TQObject *o, TQEvent *ee )
TQWidget *w = childOf( widget, (TQWidget*)o );
if ( !w
#ifndef QT_NO_SIZEGRIP
- || ::qt_cast<TQSizeGrip*>(o)
+ || ::tqt_cast<TQSizeGrip*>(o)
#endif
|| tqApp->activePopupWidget() ) {
if ( buttonDown && ee->type() == TQEvent::MouseButtonRelease )
@@ -234,7 +234,7 @@ void TQWidgetResizeHandler::mouseMoveEvent( TQMouseEvent *e )
int mh = TQMAX( childWidget->minimumSizeHint().height(),
childWidget->minimumHeight() );
if ( childWidget != widget ) {
- TQFrame *frame = ::qt_cast<TQFrame*>(widget);
+ TQFrame *frame = ::tqt_cast<TQFrame*>(widget);
if ( frame )
fw = frame->frameWidth();
mw += 2 * fw;