summaryrefslogtreecommitdiffstats
path: root/kaddressbook/views/cardview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-07 21:14:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-07 21:14:06 +0000
commitfc5197ec86abe5dc0fa4b48979684845b52357f2 (patch)
tree35d6457c1e624c3920774e3dadafc7151bec36e6 /kaddressbook/views/cardview.cpp
parent09e3107854a6c8601b556a1bf0cc61d5df801f6a (diff)
downloadtdepim-fc5197ec86abe5dc0fa4b48979684845b52357f2.tar.gz
tdepim-fc5197ec86abe5dc0fa4b48979684845b52357f2.zip
Rename incorrect instances of tqrepaint[...] to repaint[...]
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1240369 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kaddressbook/views/cardview.cpp')
-rw-r--r--kaddressbook/views/cardview.cpp44
1 files changed, 22 insertions, 22 deletions
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();