diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
commit | 5f5ee2367157176ed223b86343eb0a9e4022e020 (patch) | |
tree | 6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /kregexpeditor/multicontainerwidget.cpp | |
parent | 4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff) | |
download | tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.tar.gz tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kregexpeditor/multicontainerwidget.cpp')
-rw-r--r-- | kregexpeditor/multicontainerwidget.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kregexpeditor/multicontainerwidget.cpp b/kregexpeditor/multicontainerwidget.cpp index b4ae399..cf4403a 100644 --- a/kregexpeditor/multicontainerwidget.cpp +++ b/kregexpeditor/multicontainerwidget.cpp @@ -19,14 +19,14 @@ #include "dragaccepter.h" MultiContainerWidget::MultiContainerWidget( RegExpEditorWindow* editorWindow, - QWidget* parent, const char* name) + TQWidget* parent, const char* name) :RegExpWidget( editorWindow, parent, name ) { } void MultiContainerWidget::append( RegExpWidget* child ) { - child->reparent( this, QPoint(0,0), false ); + child->reparent( this, TQPoint(0,0), false ); _children.append( child ); _children.append( new DragAccepter( _editorWindow, this ) ); } @@ -36,7 +36,7 @@ bool MultiContainerWidget::hasSelection() const if ( _isSelected ) return true; - QPtrListIterator<RegExpWidget> it(_children); + TQPtrListIterator<RegExpWidget> it(_children); ++it; // Move past the first dragAccepter for ( ; *it; it += 2 ) { if ( (*it)->hasSelection() ) { @@ -107,8 +107,8 @@ bool MultiContainerWidget::updateSelection(bool parentSelected) { bool changed = false; bool isSel = _isSelected; - QMemArray<bool> oldState(_children.count()); - QMemArray<bool> newState(_children.count()); + TQMemArray<bool> oldState(_children.count()); + TQMemArray<bool> newState(_children.count()); for (int i = 0; i< (int)_children.count();i++) { oldState[i] = _children.at(i)->isSelected(); @@ -177,21 +177,21 @@ bool MultiContainerWidget::updateSelection(bool parentSelected) -QRect MultiContainerWidget::selectionRect() const +TQRect MultiContainerWidget::selectionRect() const { if ( _isSelected ) - return QRect( mapToGlobal( QPoint(0,0) ), size() ); + return TQRect( mapToGlobal( TQPoint(0,0) ), size() ); else { - QRect res; - QPtrListIterator<RegExpWidget> it(_children); + TQRect res; + TQPtrListIterator<RegExpWidget> it(_children); ++it; // Move past the first dragAccepter for ( ; *it; it +=2 ) { if ( (*it)->hasSelection() ) { - QRect childSel = (*it)->selectionRect(); + TQRect childSel = (*it)->selectionRect(); if ( res.isNull() ) res = childSel; else { - QRect newRes; + TQRect newRes; newRes.setLeft( QMIN( res.left(), childSel.left() ) ); newRes.setTop( QMIN( res.top(), childSel.top() ) ); newRes.setRight( QMAX( res.right(), childSel.right() ) ); @@ -204,7 +204,7 @@ QRect MultiContainerWidget::selectionRect() const } } -RegExpWidget* MultiContainerWidget::widgetUnderPoint( QPoint globalPos, bool justVisibleWidgets ) +RegExpWidget* MultiContainerWidget::widgetUnderPoint( TQPoint globalPos, bool justVisibleWidgets ) { unsigned int start, incr; if ( justVisibleWidgets ) { @@ -228,7 +228,7 @@ RegExpWidget* MultiContainerWidget::widgetUnderPoint( QPoint globalPos, bool jus } } -RegExpWidget* MultiContainerWidget::findWidgetToEdit( QPoint globalPos ) +RegExpWidget* MultiContainerWidget::findWidgetToEdit( TQPoint globalPos ) { for ( unsigned int i = 1; i < _children.count(); i+=2 ) { RegExpWidget* wid = _children.at(i)->findWidgetToEdit( globalPos ); @@ -241,7 +241,7 @@ RegExpWidget* MultiContainerWidget::findWidgetToEdit( QPoint globalPos ) void MultiContainerWidget::selectWidget( bool sel ) { RegExpWidget::selectWidget( sel ); - QPtrListIterator<RegExpWidget> it(_children); + TQPtrListIterator<RegExpWidget> it(_children); for ( ; *it ; ++it ) { (*it)->selectWidget( sel ); } @@ -250,7 +250,7 @@ void MultiContainerWidget::selectWidget( bool sel ) void MultiContainerWidget::updateAll() { - for ( QPtrListIterator<RegExpWidget> it(_children); *it ; ++it ) { + for ( TQPtrListIterator<RegExpWidget> it(_children); *it ; ++it ) { (*it)->updateAll(); } RegExpWidget::updateAll(); @@ -258,7 +258,7 @@ void MultiContainerWidget::updateAll() void MultiContainerWidget::updateCursorRecursively() { - for ( QPtrListIterator<RegExpWidget> it(_children); *it ; ++it ) { + for ( TQPtrListIterator<RegExpWidget> it(_children); *it ; ++it ) { (*it)->updateCursorRecursively(); } updateCursorShape(); |