diff options
Diffstat (limited to 'libkdepim/kfoldertree.cpp')
-rw-r--r-- | libkdepim/kfoldertree.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/libkdepim/kfoldertree.cpp b/libkdepim/kfoldertree.cpp index 5e2636738..2bf6ca1be 100644 --- a/libkdepim/kfoldertree.cpp +++ b/libkdepim/kfoldertree.cpp @@ -118,7 +118,7 @@ int KFolderTreeItem::compare( TQListViewItem * i, int col, bool ) const else { // sort by unread or total-column - Q_INT64 a = 0, b = 0; + TQ_INT64 a = 0, b = 0; if (col == static_cast<KFolderTree*>(listView())->unreadIndex()) { a = mUnread; @@ -181,7 +181,7 @@ void KFolderTreeItem::setTotalCount( int aTotal ) } //----------------------------------------------------------------------------- -void KFolderTreeItem::setFolderSize( Q_INT64 aSize ) +void KFolderTreeItem::setFolderSize( TQ_INT64 aSize ) { if ( aSize < 0 ) return; // we need to update even if nothing changed, kids ... @@ -195,10 +195,10 @@ void KFolderTreeItem::setFolderSize( Q_INT64 aSize ) size = KIO::convertSize(mSize); } if ( childCount() > 0 && !isOpen() ) { - Q_INT64 recursiveSize = recursiveFolderSize(); + TQ_INT64 recursiveSize = recursiveFolderSize(); if ( recursiveSize != mSize ) { if ( mType != Root ) - size += TQString::fromLatin1(" + %1").arg( KIO::convertSize( recursiveSize - mSize ) ); + size += TQString::tqfromLatin1(" + %1").arg( KIO::convertSize( recursiveSize - mSize ) ); else size = KIO::convertSize( recursiveSize ); } @@ -209,9 +209,9 @@ void KFolderTreeItem::setFolderSize( Q_INT64 aSize ) } //----------------------------------------------------------------------------- -Q_INT64 KFolderTreeItem::recursiveFolderSize() const +TQ_INT64 KFolderTreeItem::recursiveFolderSize() const { - Q_INT64 size = mSize; + TQ_INT64 size = mSize; for ( TQListViewItem *item = firstChild() ; item ; item = item->nextSibling() ) @@ -351,7 +351,7 @@ void KFolderTreeItem::setFolderIsCloseToQuota( bool v ) { if ( mFolderIsCloseToQuota != v) { mFolderIsCloseToQuota = v; - repaint(); + tqrepaint(); } } @@ -391,9 +391,9 @@ void KFolderTree::setStyleDependantFrameWidth() // set the width of the frame to a reasonable value for the current GUI style int frameWidth; if( style().isA("KeramikStyle") ) - frameWidth = style().pixelMetric( TQStyle::PM_DefaultFrameWidth ) - 1; + frameWidth = style().tqpixelMetric( TQStyle::PM_DefaultFrameWidth ) - 1; else - frameWidth = style().pixelMetric( TQStyle::PM_DefaultFrameWidth ); + frameWidth = style().tqpixelMetric( TQStyle::PM_DefaultFrameWidth ); if ( frameWidth < 0 ) frameWidth = 0; if ( frameWidth != lineWidth() ) @@ -464,7 +464,7 @@ bool KFolderTree::acceptDrag( TQDropEvent* event ) const void KFolderTree::addUnreadColumn( const TQString & name, int width ) { mUnreadIndex = addColumn( name, width ); - setColumnAlignment( mUnreadIndex, qApp->reverseLayout() ? Qt::AlignLeft : Qt::AlignRight ); + setColumnAlignment( mUnreadIndex, tqApp->reverseLayout() ? Qt::AlignLeft : Qt::AlignRight ); header()->adjustHeaderSize(); } @@ -472,7 +472,7 @@ void KFolderTree::addUnreadColumn( const TQString & name, int width ) void KFolderTree::addTotalColumn( const TQString & name, int width ) { mTotalIndex = addColumn( name, width ); - setColumnAlignment( mTotalIndex, qApp->reverseLayout() ? Qt::AlignLeft : Qt::AlignRight ); + setColumnAlignment( mTotalIndex, tqApp->reverseLayout() ? Qt::AlignLeft : Qt::AlignRight ); header()->adjustHeaderSize(); } @@ -507,7 +507,7 @@ void KFolderTree::removeTotalColumn() void KFolderTree::addSizeColumn( const TQString & name, int width ) { mSizeIndex = addColumn( name, width ); - setColumnAlignment( mSizeIndex, qApp->reverseLayout() ? Qt::AlignLeft : Qt::AlignRight ); + setColumnAlignment( mSizeIndex, tqApp->reverseLayout() ? Qt::AlignLeft : Qt::AlignRight ); header()->adjustHeaderSize(); } @@ -535,7 +535,7 @@ void KFolderTree::setFullWidth( bool fullWidth ) //----------------------------------------------------------------------------- void KFolderTree::slotSizeChanged( int section, int, int newSize ) { - viewport()->repaint( + viewport()->tqrepaint( header()->sectionPos(section), 0, newSize, visibleHeight(), false ); } |