summaryrefslogtreecommitdiffstats
path: root/src/workspace/qworkspace.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-06 20:38:40 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-06 20:38:40 -0600
commiteb1d1e0dec5720ace27395e290b7093cd68b150d (patch)
tree04a199ef5ea853d86a6f9a44716c0874d41c20f6 /src/workspace/qworkspace.cpp
parentae8aba1e0f17943046e6bfa889b169f7fc41da0d (diff)
downloadtqt3-eb1d1e0dec5720ace27395e290b7093cd68b150d.tar.gz
tqt3-eb1d1e0dec5720ace27395e290b7093cd68b150d.zip
Automated update from qt3
Diffstat (limited to 'src/workspace/qworkspace.cpp')
-rw-r--r--src/workspace/qworkspace.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/workspace/qworkspace.cpp b/src/workspace/qworkspace.cpp
index ef8dbed36..acf1fcb87 100644
--- a/src/workspace/qworkspace.cpp
+++ b/src/workspace/qworkspace.cpp
@@ -804,7 +804,7 @@ void TQWorkspace::handleUndock(TQDockWindow *w)
TQRect maxRect = dw->availableGeometry(dw->screenNumber(d->mainwindow));
TQPoint wpos(maxRect.left(), maxRect.top());
int possible = 0;
- if(!::qt_cast<TQToolBar*>(w)) {
+ if(!::tqt_cast<TQToolBar*>(w)) {
struct place_score { int o, x, y; } score = {0, 0, 0};
int left = 1, x = wpos.x(), y = wpos.y();
TQPtrListIterator<TQDockWindow> it( d->dockwindows );
@@ -937,15 +937,15 @@ void TQWorkspace::showEvent( TQShowEvent *e )
if(d->wmode == AutoDetect) {
d->wmode = MDI;
TQWidget *o = topLevelWidget();
- if(::qt_cast<TQMainWindow*>(o)) {
+ if(::tqt_cast<TQMainWindow*>(o)) {
d->wmode = TopLevel;
const TQObjectList *c = o->children();
for(TQObjectListIt it(*c); it; ++it) {
if((*it)->isWidgetType() && !((TQWidget *)(*it))->isTopLevel() &&
- !::qt_cast<TQHBox*>(*it) && !::qt_cast<TQVBox*>(*it) &&
- !::qt_cast<TQWorkspaceChild*>(*it) && !(*it)->inherits("TQHideDock") &&
- !::qt_cast<TQDockArea*>(*it) && !::qt_cast<TQWorkspace*>(*it) &&
- !::qt_cast<TQMenuBar*>(*it) && !::qt_cast<TQStatusBar*>(*it)) {
+ !::tqt_cast<TQHBox*>(*it) && !::tqt_cast<TQVBox*>(*it) &&
+ !::tqt_cast<TQWorkspaceChild*>(*it) && !(*it)->inherits("TQHideDock") &&
+ !::tqt_cast<TQDockArea*>(*it) && !::tqt_cast<TQWorkspace*>(*it) &&
+ !::tqt_cast<TQMenuBar*>(*it) && !::tqt_cast<TQStatusBar*>(*it)) {
d->wmode = MDI;
break;
}
@@ -954,7 +954,7 @@ void TQWorkspace::showEvent( TQShowEvent *e )
}
if(d->wmode == TopLevel) {
TQWidget *o = topLevelWidget();
- d->mainwindow = ::qt_cast<TQMainWindow*>(o);
+ d->mainwindow = ::tqt_cast<TQMainWindow*>(o);
const TQObjectList children = *o->children();
for(TQObjectListIt it(children); it; ++it) {
if(!(*it)->isWidgetType())
@@ -962,16 +962,16 @@ void TQWorkspace::showEvent( TQShowEvent *e )
TQWidget *w = (TQWidget *)(*it);
if(w->isTopLevel())
continue;
- if(::qt_cast<TQDockArea*>(w)) {
+ if(::tqt_cast<TQDockArea*>(w)) {
const TQObjectList *dock_c = w->children();
if(dock_c) {
TQPtrList<TQToolBar> tb_list;
for(TQObjectListIt dock_it(*dock_c); dock_it; ++dock_it) {
if(!(*dock_it)->isWidgetType())
continue;
- if(::qt_cast<TQToolBar*>(*dock_it)) {
+ if(::tqt_cast<TQToolBar*>(*dock_it)) {
tb_list.append((TQToolBar *)(*dock_it));
- } else if (::qt_cast<TQDockWindow*>(*dock_it)) {
+ } else if (::tqt_cast<TQDockWindow*>(*dock_it)) {
TQDockWindow *dw = (TQDockWindow*)(*dock_it);
dw->move(dw->mapToGlobal(TQPoint(0, 0)));
d->newdocks.append(dw);
@@ -1012,13 +1012,13 @@ void TQWorkspace::showEvent( TQShowEvent *e )
}
}
w->installEventFilter(this);
- } else if(::qt_cast<TQStatusBar*>(w)) {
+ } else if(::tqt_cast<TQStatusBar*>(w)) {
if(activeWindow()) {
TQWorkspaceChild *c;
if ( ( c = findChild(activeWindow()) ) )
c->setStatusBar((TQStatusBar*)w);
}
- } else if(::qt_cast<TQWorkspaceChild*>(w)) {
+ } else if(::tqt_cast<TQWorkspaceChild*>(w)) {
w->reparent(this, w->testWFlags(~(0)) | WType_TopLevel, w->pos());
}
}
@@ -1033,7 +1033,7 @@ void TQWorkspace::showEvent( TQShowEvent *e )
o->reparent(w, TQPoint(0, 0), TRUE);
{
TQMenuBar *mb = 0;
- if(::qt_cast<TQMainWindow*>(o))
+ if(::tqt_cast<TQMainWindow*>(o))
mb = ((TQMainWindow *)o)->menuBar();
if(!mb)
mb = (TQMenuBar*)o->child(NULL, "TQMenuBar");
@@ -1291,7 +1291,7 @@ TQWidgetList TQWorkspace::windowList( WindowOrder order ) const
while (it.current()) {
TQObject *o = it.current();
++it;
- TQWorkspaceChild *c = ::qt_cast<TQWorkspaceChild*>(o);
+ TQWorkspaceChild *c = ::tqt_cast<TQWorkspaceChild*>(o);
if (c && c->windowWidget())
windows.append(c->windowWidget());
}
@@ -1313,15 +1313,15 @@ bool TQWorkspace::eventFilter( TQObject *o, TQEvent * e)
{
if(d->wmode == TopLevel && d->mainwindow && o->parent() == d->mainwindow) {
if((e->type() == TQEvent::ChildInserted || e->type() == TQEvent::Reparent) &&
- ::qt_cast<TQDockArea*>(o) && !((TQWidget*)o)->isVisible()) {
+ ::tqt_cast<TQDockArea*>(o) && !((TQWidget*)o)->isVisible()) {
TQChildEvent *ce = (TQChildEvent*)e;
- if(!::qt_cast<TQDockWindow*>(ce->child())) {
+ if(!::tqt_cast<TQDockWindow*>(ce->child())) {
tqDebug("No idea what to do..");
return FALSE;
}
TQDockWindow *w = (TQDockWindow*)ce->child();
if(d->newdocks.find(w) == -1 && d->dockwindows.find(w) == -1) {
- if(::qt_cast<TQToolBar*>(w))
+ if(::tqt_cast<TQToolBar*>(w))
d->newdocks.prepend(w);
else
d->newdocks.append(w);
@@ -1451,7 +1451,7 @@ bool TQWorkspace::eventFilter( TQObject *o, TQEvent * e)
if ( c->shademode )
c->showShaded();
}
- } else if ( ::qt_cast<TQWorkspaceChild*>(o) ) {
+ } else if ( ::tqt_cast<TQWorkspaceChild*>(o) ) {
d->popup->hide();
}
updateWorkspace();
@@ -2148,7 +2148,7 @@ TQWorkspaceChild::~TQWorkspaceChild()
{
if ( iconw )
delete iconw->parentWidget();
- TQWorkspace *workspace = ::qt_cast<TQWorkspace*>(parentWidget());
+ TQWorkspace *workspace = ::tqt_cast<TQWorkspace*>(parentWidget());
if ( workspace ) {
workspace->d->focus.removeRef(this);
if ( workspace->d->active == this ) {
@@ -2536,7 +2536,7 @@ void TQWorkspaceChild::styleChange( TQStyle & )
{
resizeEvent( 0 );
if ( iconw ) {
- TQVBox *vbox = (TQVBox*)iconw->parentWidget()->qt_cast( "TQVBox" );
+ TQVBox *vbox = (TQVBox*)iconw->parentWidget()->tqt_cast( "TQVBox" );
Q_ASSERT(vbox);
if ( !style().styleHint( TQStyle::SH_TitleBar_NoBorder ) ) {
vbox->setFrameStyle( TQFrame::WinPanel | TQFrame::Raised );