diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-30 23:26:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-30 23:26:07 +0000 |
commit | e5e5db14bf9a12b17fefe650fface82bb250aaec (patch) | |
tree | 04c3848e58635eaa773ef7d85a4ed24597be33dd /qtinterface/tqwhatsthis.cpp | |
parent | f7c45454128a78405313e1ebb86ef5f597481ebe (diff) | |
download | tqtinterface-e5e5db14bf9a12b17fefe650fface82bb250aaec.tar.gz tqtinterface-e5e5db14bf9a12b17fefe650fface82bb250aaec.zip |
* 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
Diffstat (limited to 'qtinterface/tqwhatsthis.cpp')
-rw-r--r-- | qtinterface/tqwhatsthis.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
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 <tqt.h> #include <tqwhatsthis.h> + +#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 |