diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
commit | eba47f8f0637f451e21348187591e1f1fd58ac74 (patch) | |
tree | 448f10b95c656604acc331a3236c1e59bde5c1ad /kolourpaint/kpwidgetmapper.cpp | |
parent | c7e8736c69373f48b0401319757c742e8607431a (diff) | |
download | tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip |
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kolourpaint/kpwidgetmapper.cpp')
-rw-r--r-- | kolourpaint/kpwidgetmapper.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kolourpaint/kpwidgetmapper.cpp b/kolourpaint/kpwidgetmapper.cpp index beb2624c..8c91556b 100644 --- a/kolourpaint/kpwidgetmapper.cpp +++ b/kolourpaint/kpwidgetmapper.cpp @@ -28,16 +28,16 @@ #include <kpwidgetmapper.h> -#include <qpoint.h> -#include <qrect.h> -#include <qwidget.h> +#include <tqpoint.h> +#include <tqrect.h> +#include <tqwidget.h> namespace kpWidgetMapper { -QPoint fromGlobal (const QWidget *widget, const QPoint &point) +TQPoint fromGlobal (const TQWidget *widget, const TQPoint &point) { if (!widget) return point; @@ -45,17 +45,17 @@ QPoint fromGlobal (const QWidget *widget, const QPoint &point) return widget->mapFromGlobal (point); } -QRect fromGlobal (const QWidget *widget, const QRect &rect) +TQRect fromGlobal (const TQWidget *widget, const TQRect &rect) { if (!widget || !rect.isValid ()) return rect; - QPoint topLeft = fromGlobal (widget, rect.topLeft ()); - return QRect (topLeft.x (), topLeft.y (), rect.width (), rect.height ()); + TQPoint topLeft = fromGlobal (widget, rect.topLeft ()); + return TQRect (topLeft.x (), topLeft.y (), rect.width (), rect.height ()); } -QPoint toGlobal (const QWidget *widget, const QPoint &point) +TQPoint toGlobal (const TQWidget *widget, const TQPoint &point) { if (!widget) return point; @@ -63,13 +63,13 @@ QPoint toGlobal (const QWidget *widget, const QPoint &point) return widget->mapToGlobal (point); } -QRect toGlobal (const QWidget *widget, const QRect &rect) +TQRect toGlobal (const TQWidget *widget, const TQRect &rect) { if (!widget || !rect.isValid ()) return rect; - QPoint topLeft = toGlobal (widget, rect.topLeft ()); - return QRect (topLeft.x (), topLeft.y (), rect.width (), rect.height ()); + TQPoint topLeft = toGlobal (widget, rect.topLeft ()); + return TQRect (topLeft.x (), topLeft.y (), rect.width (), rect.height ()); } |