diff options
Diffstat (limited to 'src/viewcontainer.cpp')
-rw-r--r-- | src/viewcontainer.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/viewcontainer.cpp b/src/viewcontainer.cpp index 594a473..a87a233 100644 --- a/src/viewcontainer.cpp +++ b/src/viewcontainer.cpp @@ -27,11 +27,11 @@ ViewContainer::ViewContainer( const TQString & caption, KTechlab * ktechlab, TQW b_deleted = false; p_ktechlab = ktechlab; if (ktechlab) - connect( ktechlab, TQT_SIGNAL(needUpdateCaptions()), this, TQT_SLOT(updateCaption()) ); + connect( ktechlab, TQ_SIGNAL(needUpdateCaptions()), this, TQ_SLOT(updateCaption()) ); TQHBoxLayout *layout = new TQHBoxLayout(this); m_baseViewArea = new ViewArea( this, this, 0, "viewarea_0" ); - connect( m_baseViewArea, TQT_SIGNAL(destroyed(TQObject* )), this, TQT_SLOT(baseViewAreaDestroyed(TQObject* )) ); + connect( m_baseViewArea, TQ_SIGNAL(destroyed(TQObject* )), this, TQ_SLOT(baseViewAreaDestroyed(TQObject* )) ); layout->addWidget(m_baseViewArea); @@ -410,13 +410,13 @@ ViewArea *ViewArea::createViewArea( Position position, uint id ) return 0l; } - setOrientation( ( position == Right ) ? Qt::Horizontal : Qt::Vertical ); + setOrientation( ( position == Right ) ? TQt::Horizontal : TQt::Vertical ); p_viewArea1 = new ViewArea(this, p_viewContainer, m_id, TQString("viewarea_%1").arg(TQString::number(m_id)).latin1()); p_viewArea2 = new ViewArea(this, p_viewContainer, id, TQString("viewarea_%1").arg(TQString::number(id)).latin1()); - connect( p_viewArea1, TQT_SIGNAL(destroyed(TQObject* )), this, TQT_SLOT(viewAreaDestroyed(TQObject* )) ); - connect( p_viewArea2, TQT_SIGNAL(destroyed(TQObject* )), this, TQT_SLOT(viewAreaDestroyed(TQObject* )) ); + connect( p_viewArea1, TQ_SIGNAL(destroyed(TQObject* )), this, TQ_SLOT(viewAreaDestroyed(TQObject* )) ); + connect( p_viewArea2, TQ_SIGNAL(destroyed(TQObject* )), this, TQ_SLOT(viewAreaDestroyed(TQObject* )) ); p_view->reparent( p_viewArea1, TQPoint(), true ); p_viewArea1->setView(p_view); @@ -424,7 +424,7 @@ ViewArea *ViewArea::createViewArea( Position position, uint id ) m_id = p_viewContainer->uniqueParentId(); TQValueList<int> splitPos; - int pos = ((orientation() == Qt::Horizontal) ? width()/2 : height()/2); + int pos = ((orientation() == TQt::Horizontal) ? width()/2 : height()/2); splitPos << pos << pos; setSizes(splitPos); @@ -436,7 +436,7 @@ ViewArea *ViewArea::createViewArea( Position position, uint id ) void ViewArea::viewAreaDestroyed( TQObject *obj ) { - ViewArea *viewArea = static_cast<ViewArea*>(TQT_TQWIDGET(obj)); + ViewArea *viewArea = static_cast<ViewArea*>(obj); if ( viewArea == p_viewArea1 ) p_viewArea1 = 0l; @@ -459,7 +459,7 @@ void ViewArea::setView( View *view ) return; } p_view = view; - connect( view, TQT_SIGNAL(destroyed()), this, TQT_SLOT(viewDestroyed()) ); + connect( view, TQ_SIGNAL(destroyed()), this, TQ_SLOT(viewDestroyed()) ); } @@ -499,7 +499,7 @@ void ViewArea::saveState( TDEConfig *config ) if ( va1Ok || va2Ok ) { - config->writeEntry( orientationKey(m_id), (orientation() == Qt::Horizontal) ? "LeftRight" : "TopBottom" ); + config->writeEntry( orientationKey(m_id), (orientation() == TQt::Horizontal) ? "LeftRight" : "TopBottom" ); TQValueList<int> contains; if (va1Ok) @@ -542,7 +542,7 @@ void ViewArea::restoreState( TDEConfig *config, int id, const TQString &groupNam if ( config->hasKey( orientationKey(id) ) ) { TQString orientation = config->readEntry( orientationKey(m_id) ); - setOrientation( (orientation == "LeftRight") ? Qt::Horizontal : Qt::Vertical ); + setOrientation( (orientation == "LeftRight") ? TQt::Horizontal : TQt::Vertical ); } config->setGroup(groupName); @@ -560,7 +560,7 @@ void ViewArea::restoreState( TDEConfig *config, int id, const TQString &groupNam { int viewArea1Id = contains[0]; p_viewArea1 = new ViewArea(this, p_viewContainer, viewArea1Id, TQString("viewarea_%1").arg(TQString::number(viewArea1Id)).latin1()); - connect( p_viewArea1, TQT_SIGNAL(destroyed(TQObject* )), this, TQT_SLOT(viewAreaDestroyed(TQObject* )) ); + connect( p_viewArea1, TQ_SIGNAL(destroyed(TQObject* )), this, TQ_SLOT(viewAreaDestroyed(TQObject* )) ); p_viewArea1->restoreState( config, viewArea1Id, groupName ); p_viewArea1->show(); } @@ -569,7 +569,7 @@ void ViewArea::restoreState( TDEConfig *config, int id, const TQString &groupNam { int viewArea2Id = contains[1]; p_viewArea2 = new ViewArea(this, p_viewContainer, viewArea2Id, TQString("viewarea_%1").arg(TQString::number(viewArea2Id)).latin1()); - connect( p_viewArea2, TQT_SIGNAL(destroyed(TQObject* )), this, TQT_SLOT(viewAreaDestroyed(TQObject* )) ); + connect( p_viewArea2, TQ_SIGNAL(destroyed(TQObject* )), this, TQ_SLOT(viewAreaDestroyed(TQObject* )) ); p_viewArea2->restoreState( config, viewArea2Id, groupName ); p_viewArea2->show(); } |