summaryrefslogtreecommitdiffstats
path: root/kaddressbook/views/contactlistview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kaddressbook/views/contactlistview.cpp')
-rw-r--r--kaddressbook/views/contactlistview.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kaddressbook/views/contactlistview.cpp b/kaddressbook/views/contactlistview.cpp
index 31f0ac6ca..eab88e2e3 100644
--- a/kaddressbook/views/contactlistview.cpp
+++ b/kaddressbook/views/contactlistview.cpp
@@ -54,10 +54,10 @@ DynamicTip::DynamicTip( ContactListView *tqparent)
void DynamicTip::maybeTip( const TQPoint &pos )
{
- if (!tqparentWidget()->inherits( "ContactListView" ))
+ if (!parentWidget()->inherits( "ContactListView" ))
return;
- ContactListView *plv = (ContactListView*)tqparentWidget();
+ ContactListView *plv = (ContactListView*)parentWidget();
if (!plv->tooltips())
return;
@@ -109,7 +109,7 @@ void DynamicTip::maybeTip( const TQPoint &pos )
linew += fm.width( notes[i] );
if ( lastSpace >= a && notes[i] != '\n' )
- if (linew >= tqparentWidget()->width()) {
+ if (linew >= parentWidget()->width()) {
doBreak = true;
if ( lastSpace > a ) {
i = lastSpace;
@@ -152,7 +152,7 @@ ContactListViewItem::ContactListViewItem(const KABC::Addressee &a,
const KABC::Field::List &fields,
KIMProxy *proxy )
: KListViewItem(tqparent), mAddressee(a), mFields( fields ),
- tqparentListView( tqparent ), mDocument(doc), mIMProxy( proxy )
+ parentListView( tqparent ), mDocument(doc), mIMProxy( proxy )
{
if ( mIMProxy )
mHasIM = mIMProxy->isPresent( mAddressee.uid() );
@@ -164,15 +164,15 @@ ContactListViewItem::ContactListViewItem(const KABC::Addressee &a,
TQString ContactListViewItem::key(int column, bool ascending) const
{
// Preserve behaviour of TQListViewItem::key(), otherwise we cause a crash if the column does not exist
- if ( column >= tqparentListView->columns() )
+ if ( column >= parentListView->columns() )
return TQString();
#if KDE_VERSION >= 319
Q_UNUSED( ascending )
- if ( tqparentListView->showIM() ) {
+ if ( parentListView->showIM() ) {
// in this case, one column is reserved for IM presence
// so we have to process it differently
- if ( column == tqparentListView->imColumn() ) {
+ if ( column == parentListView->imColumn() ) {
// increment by one before converting to string so that -1 is not greater than 1
// create the sort key by taking the numeric status 0 low, 5 high, and subtracting it from 5
// so that the default ascending gives online before offline, etc.
@@ -201,8 +201,8 @@ void ContactListViewItem::paintCell(TQPainter * p,
if ( !p )
return;
- if (tqparentListView->singleLine()) {
- p->setPen( tqparentListView->alternateColor() );
+ if (parentListView->singleLine()) {
+ p->setPen( parentListView->alternateColor() );
p->drawLine( 0, height() - 1, width, height() - 1 );
}
}
@@ -210,7 +210,7 @@ void ContactListViewItem::paintCell(TQPainter * p,
ContactListView *ContactListViewItem::tqparent()
{
- return tqparentListView;
+ return parentListView;
}
@@ -230,9 +230,9 @@ void ContactListViewItem::refresh()
// don't show unknown presence, it's not interesting
if ( mHasIM ) {
if ( mIMProxy->presenceNumeric( mAddressee.uid() ) > 0 )
- setPixmap( tqparentListView->imColumn(), mIMProxy->presenceIcon( mAddressee.uid() ) );
+ setPixmap( parentListView->imColumn(), mIMProxy->presenceIcon( mAddressee.uid() ) );
else
- setPixmap( tqparentListView->imColumn(), TQPixmap() );
+ setPixmap( parentListView->imColumn(), TQPixmap() );
}
KABC::Field::List::ConstIterator it;