From e5e5db14bf9a12b17fefe650fface82bb250aaec Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 30 Aug 2010 23:26:07 +0000 Subject: * More TQt/Qt4 features * Various compilation fixes for Slackware git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/tqtinterface@1170159 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- qtinterface/tqwhatsthis.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'qtinterface/tqwhatsthis.cpp') diff --git a/qtinterface/tqwhatsthis.cpp b/qtinterface/tqwhatsthis.cpp index 3f1bfde..1a170c5 100644 --- a/qtinterface/tqwhatsthis.cpp +++ b/qtinterface/tqwhatsthis.cpp @@ -21,3 +21,15 @@ Boston, MA 02110-1301, USA. #include #include + +#ifdef USE_QT4 + +static QString textFor( QWidget * widget, const QPoint & pos, bool includeParents ) { + QString text; + Q3WhatsThis *wt = new Q3WhatsThis(widget); + text = wt->text(pos); + delete wt; + return text; +} + +#endif // USE_QT4 \ No newline at end of file -- cgit v1.2.3