diff options
Diffstat (limited to 'ksquirrel/sq_glwidget_helpers.cpp')
-rw-r--r-- | ksquirrel/sq_glwidget_helpers.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/ksquirrel/sq_glwidget_helpers.cpp b/ksquirrel/sq_glwidget_helpers.cpp index bad2d89..f501478 100644 --- a/ksquirrel/sq_glwidget_helpers.cpp +++ b/ksquirrel/sq_glwidget_helpers.cpp @@ -19,10 +19,10 @@ #include "config.h" #endif -#include <qwmatrix.h> -#include <qrect.h> -#include <qpoint.h> -#include <qpointarray.h> +#include <tqwmatrix.h> +#include <tqrect.h> +#include <tqpoint.h> +#include <tqpointarray.h> #include <algorithm> @@ -36,8 +36,8 @@ #include "sq_glwidget_helpers.h" -SQ_ToolButtonPopup::SQ_ToolButtonPopup(const QPixmap &pix, const QString &textLabel, KToolBar *parent) - : KToolBarButton(pix, -1, parent, 0, textLabel) +SQ_ToolButtonPopup::SQ_ToolButtonPopup(const TQPixmap &pix, const TQString &textLabel, KToolBar *tqparent) + : KToolBarButton(pix, -1, tqparent, 0, textLabel) { setFixedWidth(SQ_ToolButton::fixedWidth()); } @@ -45,9 +45,9 @@ SQ_ToolButtonPopup::SQ_ToolButtonPopup(const QPixmap &pix, const QString &textLa SQ_ToolButtonPopup::~SQ_ToolButtonPopup() {} -SQ_ToolButton::SQ_ToolButton(const QIconSet &iconSet, const QString &textLabel, - QObject *receiver, const char *slot, KToolBar *parent, const char *name) - : QToolButton(iconSet, textLabel, QString::null, receiver, slot, parent, name) +SQ_ToolButton::SQ_ToolButton(const TQIconSet &iconSet, const TQString &textLabel, + TQObject *receiver, const char *slot, KToolBar *tqparent, const char *name) + : TQToolButton(iconSet, textLabel, TQString(), receiver, slot, tqparent, name) { setFixedWidth(SQ_ToolButton::fixedWidth()); } @@ -74,7 +74,7 @@ int SQ_GLHelpers::roundAngle(int curangle) return curangle; } -void SQ_GLHelpers::subRotation(QWMatrix &wm, int curangle, int orient) +void SQ_GLHelpers::subRotation(TQWMatrix &wm, int curangle, int orient) { curangle = SQ_GLHelpers::roundAngle(curangle); @@ -106,9 +106,9 @@ void SQ_GLHelpers::subRotation(QWMatrix &wm, int curangle, int orient) } } -bool SQ_GLHelpers::normalizeSelection(int &sx, int &sy, int &sw, int &sh, int w, int h, const QWMatrix &matr, int curangle, int orient) +bool SQ_GLHelpers::normalizeSelection(int &sx, int &sy, int &sw, int &sh, int w, int h, const TQWMatrix &matr, int curangle, int orient) { - QWMatrix wm = matr; + TQWMatrix wm = matr; SQ_GLHelpers::subRotation(wm, curangle, orient); @@ -117,7 +117,7 @@ bool SQ_GLHelpers::normalizeSelection(int &sx, int &sy, int &sw, int &sh, int w, int ax = -w/2 + sx; int ay = h/2 - sy; - QPointArray pa(4), pb; + TQPointArray pa(4), pb; pa.setPoint(0, ax, ay-sh); pa.setPoint(1, ax+sw, ay-sh); |