diff options
Diffstat (limited to 'kaddressbook')
-rw-r--r-- | kaddressbook/editors/imeditorwidget.cpp | 4 | ||||
-rw-r--r-- | kaddressbook/views/cardview.cpp | 44 | ||||
-rw-r--r-- | kaddressbook/views/cardview.h | 6 |
3 files changed, 27 insertions, 27 deletions
diff --git a/kaddressbook/editors/imeditorwidget.cpp b/kaddressbook/editors/imeditorwidget.cpp index aba21b65b..d74f51c14 100644 --- a/kaddressbook/editors/imeditorwidget.cpp +++ b/kaddressbook/editors/imeditorwidget.cpp @@ -271,7 +271,7 @@ void IMEditorWidget::slotSetStandard() return; //Selected is already preferred else { item->setPreferred( false ); - mWidget->lvAddresses->tqrepaintItem( item ); + mWidget->lvAddresses->repaintItem( item ); break; } } @@ -282,7 +282,7 @@ void IMEditorWidget::slotSetStandard() mPreferred = current->address(); current->setPreferred( true ); setModified( true ); - mWidget->lvAddresses->tqrepaintItem( current ); + mWidget->lvAddresses->repaintItem( current ); } } diff --git a/kaddressbook/views/cardview.cpp b/kaddressbook/views/cardview.cpp index 28803b164..9b0784d89 100644 --- a/kaddressbook/views/cardview.cpp +++ b/kaddressbook/views/cardview.cpp @@ -107,9 +107,9 @@ class CardViewSeparator cg.brush(TQColorGroup::Button) ); } - void tqrepaintSeparator() + void repaintSeparator() { - mView->tqrepaintContents( mRect ); + mView->repaintContents( mRect ); } private: @@ -448,16 +448,16 @@ CardViewItem *CardViewItem::nextItem() const return item; } -void CardViewItem::tqrepaintCard() +void CardViewItem::repaintCard() { if ( mView ) - mView->tqrepaintItem( this ); + mView->repaintItem( this ); } void CardViewItem::setCaption( const TQString &caption ) { d->mCaption = caption; - tqrepaintCard(); + repaintCard(); } TQString CardViewItem::fieldValue( const TQString &label ) const @@ -653,9 +653,9 @@ void CardView::setCurrentItem( CardViewItem *item ) CardViewItem *it = d->mCurrentItem; d->mCurrentItem = item; if ( it ) - it->tqrepaintCard(); + it->repaintCard(); - item->tqrepaintCard(); + item->repaintCard(); } if ( ! d->mOnSeparator ) @@ -692,9 +692,9 @@ void CardView::ensureItemVisible( const CardViewItem *item ) ensureVisible( item->d->x + d->mItemWidth, item->d->y, d->mItemSpacing, 0 ); } -void CardView::tqrepaintItem( const CardViewItem *item ) +void CardView::repaintItem( const CardViewItem *item ) { - tqrepaintContents( TQRect( item->d->x, item->d->y, d->mItemWidth, item->height() ) ); + repaintContents( TQRect( item->d->x, item->d->y, d->mItemWidth, item->height() ) ); } void CardView::setSelectionMode( CardView::SelectionMode mode ) @@ -716,7 +716,7 @@ void CardView::selectAll( bool state ) for ( iter.toFirst(); iter.current(); ++iter ) { if ( (*iter)->isSelected() ) { (*iter)->setSelected( false ); - (*iter)->tqrepaintCard(); + (*iter)->repaintCard(); } } @@ -743,7 +743,7 @@ void CardView::setSelected( CardViewItem *item, bool selected ) CardViewItem *it = d->mCurrentItem; d->mCurrentItem = item; if ( it ) - it->tqrepaintCard(); + it->repaintCard(); } if ( d->mSelectionMode == CardView::Single ) { @@ -754,7 +754,7 @@ void CardView::setSelected( CardViewItem *item, bool selected ) if ( selected ) { item->setSelected( selected ); - item->tqrepaintCard(); + item->repaintCard(); emit selectionChanged(); emit selectionChanged( item ); } else { @@ -763,7 +763,7 @@ void CardView::setSelected( CardViewItem *item, bool selected ) } } else if ( d->mSelectionMode == CardView::Multi ) { item->setSelected( selected ); - item->tqrepaintCard(); + item->repaintCard(); emit selectionChanged(); } else if ( d->mSelectionMode == CardView::Extended ) { bool b = signalsBlocked(); @@ -772,7 +772,7 @@ void CardView::setSelected( CardViewItem *item, bool selected ) blockSignals( b ); item->setSelected( selected ); - item->tqrepaintCard(); + item->repaintCard(); emit selectionChanged(); } } @@ -1048,12 +1048,12 @@ void CardView::contentsMousePressEvent( TQMouseEvent *e ) blockSignals( b ); item->setSelected( true ); - item->tqrepaintCard(); + item->repaintCard(); emit selectionChanged( item ); } else if ( d->mSelectionMode == CardView::Multi ) { // toggle the selection item->setSelected( !item->isSelected() ); - item->tqrepaintCard(); + item->repaintCard(); emit selectionChanged(); } else if ( d->mSelectionMode == CardView::Extended ) { if ( (e->button() & Qt::LeftButton) && (e->state() & TQt::ShiftButton) ) { @@ -1079,13 +1079,13 @@ void CardView::contentsMousePressEvent( TQMouseEvent *e ) for ( ; from <= to; from++ ) { aItem = d->mItemList.at( from ); aItem->setSelected( s ); - tqrepaintItem( aItem ); + repaintItem( aItem ); } emit selectionChanged(); } else if ( (e->button() & Qt::LeftButton) && (e->state() & TQt::ControlButton) ) { item->setSelected( !item->isSelected() ); - item->tqrepaintCard(); + item->repaintCard(); emit selectionChanged(); } else if ( e->button() & Qt::LeftButton ) { bool b = signalsBlocked(); @@ -1094,7 +1094,7 @@ void CardView::contentsMousePressEvent( TQMouseEvent *e ) blockSignals( b ); item->setSelected( true ); - item->tqrepaintCard(); + item->repaintCard(); emit selectionChanged(); } } @@ -1202,13 +1202,13 @@ void CardView::focusInEvent( TQFocusEvent* ) if ( !d->mCurrentItem && d->mItemList.count() ) setCurrentItem( d->mItemList.first() ); else if ( d->mCurrentItem ) - d->mCurrentItem->tqrepaintCard(); + d->mCurrentItem->repaintCard(); } void CardView::focusOutEvent( TQFocusEvent* ) { if ( d->mCurrentItem ) - d->mCurrentItem->tqrepaintCard(); + d->mCurrentItem->repaintCard(); } void CardView::keyPressEvent( TQKeyEvent *e ) @@ -1363,7 +1363,7 @@ void CardView::keyPressEvent( TQKeyEvent *e ) for ( ; from <= to; from++ ) { item = d->mItemList.at( from ); item->setSelected( s ); - tqrepaintItem( item ); + repaintItem( item ); } emit selectionChanged(); diff --git a/kaddressbook/views/cardview.h b/kaddressbook/views/cardview.h index 0001fcfb9..e2229dd2d 100644 --- a/kaddressbook/views/cardview.h +++ b/kaddressbook/views/cardview.h @@ -90,7 +90,7 @@ class CardViewItem Repaints the card. This is done by sending a tqrepaint event to the view with the clip rect defined as this card. */ - virtual void tqrepaintCard(); + virtual void repaintCard(); /** Adds a field to the card. @@ -255,7 +255,7 @@ class CardView : public TQScrollView /** Repaints the given item. */ - void tqrepaintItem( const CardViewItem *item ); + void repaintItem( const CardViewItem *item ); enum SelectionMode { Single, Multi, Extended, NoSelection }; @@ -516,7 +516,7 @@ class CardView : public TQScrollView void drawContents( TQPainter *p, int clipx, int clipy, int clipw, int cliph ); /** - Sets the tqlayout to dirty and tqrepaints. + Sets the tqlayout to dirty and repaints. */ void resizeEvent( TQResizeEvent* ); |