summaryrefslogtreecommitdiffstats
path: root/krita/core/kis_boundary.cc
diff options
context:
space:
mode:
Diffstat (limited to 'krita/core/kis_boundary.cc')
-rw-r--r--krita/core/kis_boundary.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/krita/core/kis_boundary.cc b/krita/core/kis_boundary.cc
index 24524aeb7..0c9681c25 100644
--- a/krita/core/kis_boundary.cc
+++ b/krita/core/kis_boundary.cc
@@ -15,8 +15,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <qpixmap.h>
-#include <qpainter.h>
+#include <tqpixmap.h>
+#include <tqpainter.h>
#include "kis_colorspace.h"
#include "kis_iterators_pixel.h"
@@ -28,7 +28,7 @@ KisBoundary::KisBoundary(KisPaintDevice* dev) {
m_fuzzyness = 255 / 2;
}
-bool KisBoundary::isDark(Q_UINT8 val) {
+bool KisBoundary::isDark(TQ_UINT8 val) {
return val < m_fuzzyness;
}
@@ -38,42 +38,42 @@ void KisBoundary::generateBoundary(int w, int h) {
KisColorSpace* cs = m_device->colorSpace();
- // Horizontal
+ //Qt::Horizontal
for (int currentY = - 1; currentY < h; currentY++) {
KisHLineIteratorPixel topIt = m_device->createHLineIterator(0, currentY, w, false);
KisHLineIteratorPixel botIt = m_device->createHLineIterator(0, currentY + 1, w, false);
bool darkTop;
bool darkBot;
- m_horSegments.append(QValueList<PointPair>());
+ m_horSegments.append(TQValueList<PointPair>());
while (!topIt.isDone()) {
darkTop = cs->getAlpha(topIt.rawData());
darkBot = cs->getAlpha(botIt.rawData());
if (darkTop != darkBot) {
// detected a change
- m_horSegments.back().append(qMakePair(KisPoint(botIt.x(), botIt.y()), 1));
+ m_horSegments.back().append(tqMakePair(KisPoint(botIt.x(), botIt.y()), 1));
}
++topIt;
++botIt;
}
}
- // Vertical
+ //Qt::Vertical
for (int currentX = - 1; currentX < w; currentX++) {
KisVLineIteratorPixel leftIt = m_device->createVLineIterator(currentX, 0, h, false);
KisVLineIteratorPixel rightIt = m_device->createVLineIterator(currentX + 1, 0, h, false);
bool darkLeft;
bool darkRight;
- m_vertSegments.append(QValueList<PointPair>());
+ m_vertSegments.append(TQValueList<PointPair>());
while (!leftIt.isDone()) {
darkLeft = cs->getAlpha(leftIt.rawData());
darkRight = cs->getAlpha(rightIt.rawData());
if (darkLeft != darkRight) {
// detected a change
- m_vertSegments.back().append(qMakePair(KisPoint(rightIt.x(), rightIt.y()), 1));
+ m_vertSegments.back().append(tqMakePair(KisPoint(rightIt.x(), rightIt.y()), 1));
}
++leftIt;
++rightIt;