diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-18 20:34:22 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-18 20:34:22 +0000 |
commit | b09bffed6b43262948018dfb0f11890850ddf7c1 (patch) | |
tree | 138696bfcc7ac01070d0e8ecaa1cdf94611a2bd8 /ksysv/kdltooltip.cpp | |
parent | 6d43944a7130b9d1b4ae3fba37b774aced8612cf (diff) | |
download | tdeadmin-b09bffed6b43262948018dfb0f11890850ddf7c1.tar.gz tdeadmin-b09bffed6b43262948018dfb0f11890850ddf7c1.zip |
TQt4 port kdeadmin
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1237416 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksysv/kdltooltip.cpp')
-rw-r--r-- | ksysv/kdltooltip.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/ksysv/kdltooltip.cpp b/ksysv/kdltooltip.cpp index 7b3a421..1b98fa4 100644 --- a/ksysv/kdltooltip.cpp +++ b/ksysv/kdltooltip.cpp @@ -21,9 +21,9 @@ #include "ksvdraglist.h" #include "kdltooltip.h" -KDLToolTip::KDLToolTip (KSVDragList *parent, TQToolTipGroup* group) - : TQToolTip(parent, group), - mParent (parent) +KDLToolTip::KDLToolTip (KSVDragList *tqparent, TQToolTipGroup* group) + : TQToolTip(tqparent, group), + mParent (tqparent) { } @@ -39,10 +39,10 @@ void KDLToolTip::maybeTip (const TQPoint& p) TQString text; TQRect rect; - const TQRect vert = mParent->verticalScrollBar()->geometry(); - const TQRect horiz = mParent->horizontalScrollBar()->geometry(); + const TQRect vert = mParent->verticalScrollBar()->tqgeometry(); + const TQRect horiz = mParent->horizontalScrollBar()->tqgeometry(); - if (vert.contains(p)) + if (vert.tqcontains(p)) { rect = vert; @@ -51,7 +51,7 @@ void KDLToolTip::maybeTip (const TQPoint& p) else text = mParent->tooltip(); } - else if (horiz.contains(p)) + else if (horiz.tqcontains(p)) { rect = horiz; if (!mParent->commonToolTips()) @@ -66,14 +66,14 @@ void KDLToolTip::maybeTip (const TQPoint& p) TQListViewItem* i = mParent->itemAt (rp); KSVItem* item = static_cast<KSVItem*> (i); - rect = mParent->header()->geometry(); - if (rect.contains (p)) + rect = mParent->header()->tqgeometry(); + if (rect.tqcontains (p)) { text = mParent->tooltip(); } else if (item) { - rect = mParent->itemRect (i); + rect = mParent->tqitemRect (i); rect.moveTopLeft (mParent->viewport()->mapToParent (rect.topLeft())); text = item->tooltip(); @@ -84,7 +84,7 @@ void KDLToolTip::maybeTip (const TQPoint& p) TQListViewItem* last = mParent->lastItem(); if (last) - rect.setTop (mParent->viewport()->mapToParent (mParent->itemRect(last).bottomRight()).y()); + rect.setTop (mParent->viewport()->mapToParent (mParent->tqitemRect(last).bottomRight()).y()); text = mParent->tooltip(); } |