diff options
Diffstat (limited to 'digikam/imageplugins/border/border.cpp')
-rw-r--r-- | digikam/imageplugins/border/border.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/digikam/imageplugins/border/border.cpp b/digikam/imageplugins/border/border.cpp index ab9de57..df5f90e 100644 --- a/digikam/imageplugins/border/border.cpp +++ b/digikam/imageplugins/border/border.cpp @@ -27,11 +27,11 @@ #include <cmath> #include <cstdlib> -// Qt includes. +// TQt includes. -#include <qpoint.h> -#include <qregion.h> -#include <qpointarray.h> +#include <tqpoint.h> +#include <tqregion.h> +#include <tqpointarray.h> // Local includes. @@ -42,8 +42,8 @@ namespace DigikamBorderImagesPlugin { -Border::Border(Digikam::DImg *image, QObject *parent, int orgWidth, int orgHeight, - QString borderPath, int borderType, float borderPercent, +Border::Border(Digikam::DImg *image, TQObject *tqparent, int orgWidth, int orgHeight, + TQString borderPath, int borderType, float borderPercent, Digikam::DColor solidColor, Digikam::DColor niepceBorderColor, Digikam::DColor niepceLineColor, @@ -51,7 +51,7 @@ Border::Border(Digikam::DImg *image, QObject *parent, int orgWidth, int orgHeigh Digikam::DColor bevelLowerRightColor, Digikam::DColor decorativeFirstColor, Digikam::DColor decorativeSecondColor) - : Digikam::DImgThreadedFilter(image, parent, "Border") + : Digikam::DImgThreadedFilter(image, tqparent, "Border") { m_orgWidth = orgWidth; m_orgHeight = orgHeight; @@ -78,8 +78,8 @@ Border::Border(Digikam::DImg *image, QObject *parent, int orgWidth, int orgHeigh initFilter(); } -Border::Border(Digikam::DImg *orgImage, QObject *parent, int orgWidth, int orgHeight, - QString borderPath, int borderType, +Border::Border(Digikam::DImg *orgImage, TQObject *tqparent, int orgWidth, int orgHeight, + TQString borderPath, int borderType, int borderWidth1, int borderWidth2, int borderWidth3, int borderWidth4, Digikam::DColor solidColor, Digikam::DColor niepceBorderColor, @@ -88,7 +88,7 @@ Border::Border(Digikam::DImg *orgImage, QObject *parent, int orgWidth, int orgHe Digikam::DColor bevelLowerRightColor, Digikam::DColor decorativeFirstColor, Digikam::DColor decorativeSecondColor) - : Digikam::DImgThreadedFilter(orgImage, parent, "Border") + : Digikam::DImgThreadedFilter(orgImage, tqparent, "Border") { m_orgWidth = orgWidth; m_orgHeight = orgHeight; @@ -218,17 +218,17 @@ void Border::bevel(Digikam::DImg &src, Digikam::DImg &dest, const Digikam::DColo dest = Digikam::DImg(width, height, src.sixteenBit(), src.hasAlpha()); dest.fill(topColor); - QPointArray btTriangle(3); + TQPointArray btTriangle(3); btTriangle.setPoint(0, width, 0); btTriangle.setPoint(1, 0, height); btTriangle.setPoint(2, width, height); - QRegion btRegion(btTriangle); + TQRegion btRegion(btTriangle); for(int x=0 ; x < width ; x++) { for(int y=0 ; y < height ; y++) { - if (btRegion.contains(QPoint(x, y))) + if (btRegion.tqcontains(TQPoint(x, y))) dest.setPixelColor(x, y, btmColor); } } |