diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-29 19:00:37 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-29 19:00:37 +0000 |
commit | 25794f504692e5a36c490438814e9dfda8aaa2dd (patch) | |
tree | 8061e6d27b5bc9042afdff177872779c4e8c9015 /src/kchmlistitemtooltip.h | |
parent | 35ff2a942f63b5201c04f41c3097e61cdd7817e9 (diff) | |
download | kchmviewer-25794f504692e5a36c490438814e9dfda8aaa2dd.tar.gz kchmviewer-25794f504692e5a36c490438814e9dfda8aaa2dd.zip |
TQt4 port kchmviewer
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kchmviewer@1234150 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kchmlistitemtooltip.h')
-rw-r--r-- | src/kchmlistitemtooltip.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/kchmlistitemtooltip.h b/src/kchmlistitemtooltip.h index 07014c8..51c0dd9 100644 --- a/src/kchmlistitemtooltip.h +++ b/src/kchmlistitemtooltip.h @@ -28,17 +28,17 @@ /** @author tim */ -class KCHMListItemTooltip : public QToolTip +class KCHMListItemTooltip : public TQToolTip { public: - KCHMListItemTooltip( KQListView *parent ) - : QToolTip( parent->viewport() ) { m_pParent = parent; } + KCHMListItemTooltip( KQListView *tqparent ) + : TQToolTip( tqparent->viewport() ) { m_pParent = tqparent; } virtual ~KCHMListItemTooltip() {}; - void maybeTip ( const QPoint & pos ) + void maybeTip ( const TQPoint & pos ) { - QListViewItem *it = m_pParent->itemAt( pos ); + TQListViewItem *it = m_pParent->itemAt( pos ); if ( !it ) return; @@ -47,13 +47,13 @@ class KCHMListItemTooltip : public QToolTip int section = m_pParent->header()->sectionAt (pos.x ()); // Get the rect of the whole item (the row for the tip) - QRect itemRect = m_pParent->itemRect( it ); + TQRect tqitemRect = m_pParent->tqitemRect( it ); // Get the rect of the whole section (the column for the tip) - QRect headerRect = m_pParent->header ()->sectionRect (section); + TQRect headerRect = m_pParent->header ()->sectionRect (section); // "Intersect" row and column to get exact rect for the tip - QRect destRect( headerRect.left (), itemRect.top(), headerRect.width(), itemRect.height() ); + TQRect destRect( headerRect.left (), tqitemRect.top(), headerRect.width(), tqitemRect.height() ); int item_width = it->width( m_pParent->fontMetrics(), m_pParent, 0 ) + it->depth() * m_pParent->treeStepSize(); |