diff options
Diffstat (limited to 'krita/core/kis_selection.h')
| -rw-r--r-- | krita/core/kis_selection.h | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/krita/core/kis_selection.h b/krita/core/kis_selection.h index 959be4923..f41915dae 100644 --- a/krita/core/kis_selection.h +++ b/krita/core/kis_selection.h @@ -18,7 +18,7 @@ #ifndef KIS_SELECTION_H_ #define KIS_SELECTION_H_ -#include <qrect.h> +#include <tqrect.h> #include "kis_types.h" #include "kis_paint_device.h" @@ -47,13 +47,13 @@ class KRITACORE_EXPORT KisSelection : public KisPaintDevice { public: /** * Create a new KisSelection - * @param dev the parent paint device. The selection will never be bigger than the parent + * @param dev the tqparent paint device. The selection will never be bigger than the tqparent * paint device. */ KisSelection(KisPaintDeviceSP dev); /** - * Create a new KisSelection. This selection will not have a parent paint device. + * Create a new KisSelection. This selection will not have a tqparent paint device. */ KisSelection(); @@ -65,22 +65,22 @@ public: virtual ~KisSelection(); // Returns selectedness, or 0 if invalid coordinates - Q_UINT8 selected(Q_INT32 x, Q_INT32 y); + TQ_UINT8 selected(TQ_INT32 x, TQ_INT32 y); - void setSelected(Q_INT32 x, Q_INT32 y, Q_UINT8 s); + void setSelected(TQ_INT32 x, TQ_INT32 y, TQ_UINT8 s); - QImage maskImage(); + TQImage tqmaskImage(); - void select(QRect r); + void select(TQRect r); void invert(); - void clear(QRect r); + void clear(TQRect r); void clear(); /// Tests if the the rect is totally outside the selection - bool isTotallyUnselected(QRect r); + bool isTotallyUnselected(TQRect r); /** * Tests if the the rect is totally outside the selection, but uses selectedRect @@ -88,63 +88,63 @@ public: * * XXX: This comment makes no sense anymore! (BSAR) */ - bool isProbablyTotallyUnselected(QRect r); + bool isProbablyTotallyUnselected(TQRect r); /** * Rough, but fastish way of determining the area * of the tiles used by the selection. */ - QRect selectedRect() const; + TQRect selectedRect() const; /** * Slow, but exact way of determining the rectangle * that encloses the selection */ - QRect selectedExactRect() const; + TQRect selectedExactRect() const; - void paintSelection(QImage img, Q_INT32 x, Q_INT32 y, Q_INT32 w, Q_INT32 h); - void paintSelection(QImage img, const QRect& scaledImageRect, const QSize& scaledImageSize, const QSize& imageSize); + void paintSelection(TQImage img, TQ_INT32 x, TQ_INT32 y, TQ_INT32 w, TQ_INT32 h); + void paintSelection(TQImage img, const TQRect& scaledImageRect, const TQSize& scaledImageSize, const TQSize& imageSize); void startCachingExactRect(); void stopCachingExactRect(); - // if the parent layer is interested in keeping up to date with the dirtyness + // if the tqparent layer is interested in keeping up to date with the dirtyness // of this layer, set to true void setInterestedInDirtyness(bool b) { m_dirty = b; } bool interestedInDirtyness() const { return m_dirty; } - virtual void setDirty(const QRect & rc); + virtual void setDirty(const TQRect & rc); virtual void setDirty(); - inline KisPaintDeviceSP parentPaintDevice() { return m_parentPaintDevice; } + inline KisPaintDeviceSP tqparentPaintDevice() { return m_parentPaintDevice; } private: - void paintUniformSelectionRegion(QImage img, const QRect& imageRect, const QRegion& uniformRegion); + void paintUniformSelectionRegion(TQImage img, const TQRect& imageRect, const TQRegion& uniformRegion); private: // We don't want these methods to be used on selections: - void extent(Q_INT32 &x, Q_INT32 &y, Q_INT32 &w, Q_INT32 &h) const + void extent(TQ_INT32 &x, TQ_INT32 &y, TQ_INT32 &w, TQ_INT32 &h) const { KisPaintDevice::extent(x,y,w,h); } - QRect extent() const { return KisPaintDevice::extent(); } + TQRect extent() const { return KisPaintDevice::extent(); } - void exactBounds(Q_INT32 &x, Q_INT32 &y, Q_INT32 &w, Q_INT32 &h) const + void exactBounds(TQ_INT32 &x, TQ_INT32 &y, TQ_INT32 &w, TQ_INT32 &h) const { return KisPaintDevice::exactBounds(x,y,w,h); } - QRect exactBounds() const + TQRect exactBounds() const { return KisPaintDevice::exactBounds(); } - QRect exactBoundsOldMethod() const + TQRect exactBoundsOldMethod() const { return KisPaintDevice::exactBoundsOldMethod(); } - QRect exactBoundsImprovedOldMethod() const + TQRect exactBoundsImprovedOldMethod() const { return KisPaintDevice::exactBoundsImprovedOldMethod(); } @@ -153,7 +153,7 @@ private: private: KisPaintDeviceSP m_parentPaintDevice; bool m_doCacheExactRect; - QRect m_cachedExactRect; + TQRect m_cachedExactRect; bool m_dirty; }; |
