diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-09 02:23:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-09 02:23:29 +0000 |
commit | 9150603ad32928e9c514c0492a8518b742d82ac3 (patch) | |
tree | 6e3f83e2b94146bb42eed57eb6dd8f2fb0369e6f /cervisia/tooltip.cpp | |
parent | 6b126a99d5eecef5cb96589ed5c2e522bcb06ca9 (diff) | |
download | tdesdk-9150603ad32928e9c514c0492a8518b742d82ac3.tar.gz tdesdk-9150603ad32928e9c514c0492a8518b742d82ac3.zip |
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
Diffstat (limited to 'cervisia/tooltip.cpp')
-rw-r--r-- | cervisia/tooltip.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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; } |