diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kmail/folderviewtooltip.h | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/folderviewtooltip.h')
-rw-r--r-- | kmail/folderviewtooltip.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kmail/folderviewtooltip.h b/kmail/folderviewtooltip.h index 55afa1a0e..24f9fbbec 100644 --- a/kmail/folderviewtooltip.h +++ b/kmail/folderviewtooltip.h @@ -3,27 +3,27 @@ #include <kmfoldercachedimap.h> -#include <qtooltip.h> +#include <tqtooltip.h> namespace KMail { class FolderViewToolTip : public QToolTip { public: - FolderViewToolTip( QListView* parent ) : - QToolTip( parent->viewport() ), + FolderViewToolTip( TQListView* parent ) : + TQToolTip( parent->viewport() ), mListView( parent ) {} protected: - void maybeTip( const QPoint &point ) + void maybeTip( const TQPoint &point ) { KMFolderTreeItem *item = dynamic_cast<KMFolderTreeItem*>( mListView->itemAt( point ) ); if ( !item ) return; - const QRect itemRect = mListView->itemRect( item ); + const TQRect itemRect = mListView->itemRect( item ); if ( !itemRect.isValid() ) return; - const QRect headerRect = mListView->header()->sectionRect( 0 ); + const TQRect headerRect = mListView->header()->sectionRect( 0 ); if ( !headerRect.isValid() ) return; @@ -31,10 +31,10 @@ class FolderViewToolTip : public QToolTip return; item->updateCount(); - QString tipText = i18n("<qt><b>%1</b><br>Total: %2<br>Unread: %3<br>Size: %4" ) + TQString tipText = i18n("<qt><b>%1</b><br>Total: %2<br>Unread: %3<br>Size: %4" ) .arg( item->folder()->prettyURL().replace( " ", " " ) ) - .arg( item->totalCount() < 0 ? "-" : QString::number( item->totalCount() ) ) - .arg( item->unreadCount() < 0 ? "-" : QString::number( item->unreadCount() ) ) + .arg( item->totalCount() < 0 ? "-" : TQString::number( item->totalCount() ) ) + .arg( item->unreadCount() < 0 ? "-" : TQString::number( item->unreadCount() ) ) .arg( KIO::convertSize( item->folderSize() ) ); if ( KMFolderCachedImap* imap = dynamic_cast<KMFolderCachedImap*>( item->folder()->storage() ) ) { @@ -43,11 +43,11 @@ class FolderViewToolTip : public QToolTip tipText += i18n("<br>Quota: %1").arg( info.toString() ); } - tip( QRect( headerRect.left(), itemRect.top(), headerRect.width(), itemRect.height() ), tipText ); + tip( TQRect( headerRect.left(), itemRect.top(), headerRect.width(), itemRect.height() ), tipText ); } private: - QListView *mListView; + TQListView *mListView; }; } |