From 9150603ad32928e9c514c0492a8518b742d82ac3 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 9 Jul 2011 02:23:29 +0000 Subject: Remove the tq in front of these incorrectly TQt4-converted methods/data members: tqrepaint[...] tqinvalidate[...] tqparent[...] tqmask[...] tqlayout[...] tqalignment[...] git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1240522 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- cervisia/tooltip.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cervisia/tooltip.cpp') diff --git a/cervisia/tooltip.cpp b/cervisia/tooltip.cpp index efc5108e..d898e80c 100644 --- a/cervisia/tooltip.cpp +++ b/cervisia/tooltip.cpp @@ -49,8 +49,8 @@ void ToolTip::maybeTip(const TQPoint& pos) { text = truncateLines(text, font(), - tqparentWidget()->mapToGlobal(pos), - KGlobalSettings::desktopGeometry(tqparentWidget())); + parentWidget()->mapToGlobal(pos), + KGlobalSettings::desktopGeometry(parentWidget())); tip(rect, text); } } @@ -94,12 +94,12 @@ TQString truncateLines(const TQString& text, - desktopGeometry.top() - 10); // calculate the tooltip's size - const TQSimpleRichText tqlayoutedText(text, font); + const TQSimpleRichText layoutedText(text, font); // only if the tooltip's size is bigger in x- and y-direction the text must // be truncated otherwise the tip is moved to a position where it fits - return ((tqlayoutedText.widthUsed() > maxWidth) - && (tqlayoutedText.height() > maxHeight)) + return ((layoutedText.widthUsed() > maxWidth) + && (layoutedText.height() > maxHeight)) ? truncateLines(text, TQFontMetrics(font), TQSize(maxWidth, maxHeight)) : text; } -- cgit v1.2.3