diff options
Diffstat (limited to 'kaddressbook/views')
-rw-r--r-- | kaddressbook/views/configurecardviewdialog.cpp | 2 | ||||
-rw-r--r-- | kaddressbook/views/contactlistview.cpp | 24 | ||||
-rw-r--r-- | kaddressbook/views/contactlistview.h | 2 |
3 files changed, 14 insertions, 14 deletions
diff --git a/kaddressbook/views/configurecardviewdialog.cpp b/kaddressbook/views/configurecardviewdialog.cpp index 834431af9..846be3898 100644 --- a/kaddressbook/views/configurecardviewdialog.cpp +++ b/kaddressbook/views/configurecardviewdialog.cpp @@ -196,7 +196,7 @@ void CardViewLookNFeelPage::initGUI() TQTabWidget *tabs = new TQTabWidget( this ); // Layout - TQVBox *loTab = new TQVBox( this, "tqlayouttab" ); + TQVBox *loTab = new TQVBox( this, "layouttab" ); loTab->setSpacing( spacing ); loTab->setMargin( margin ); 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; diff --git a/kaddressbook/views/contactlistview.h b/kaddressbook/views/contactlistview.h index 65c927026..5492b9161 100644 --- a/kaddressbook/views/contactlistview.h +++ b/kaddressbook/views/contactlistview.h @@ -72,7 +72,7 @@ public: private: KABC::Addressee mAddressee; KABC::Field::List mFields; - ContactListView *tqparentListView; + ContactListView *parentListView; KABC::AddressBook *mDocument; KIMProxy *mIMProxy; bool mHasIM; |