diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
commit | 04766b207afba7961d4d802313e426f5a2fbef63 (patch) | |
tree | c888ea1027c793e2d0386a7e5a1a0cd077b03cb3 /chalk/doc/colorstrategyAPI | |
parent | b6edfe41c9395f2e20784cbf0e630af6426950a3 (diff) | |
download | koffice-04766b207afba7961d4d802313e426f5a2fbef63.tar.gz koffice-04766b207afba7961d4d802313e426f5a2fbef63.zip |
rename the following methods:
tqparent parent
tqmask mask
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'chalk/doc/colorstrategyAPI')
-rw-r--r-- | chalk/doc/colorstrategyAPI | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chalk/doc/colorstrategyAPI b/chalk/doc/colorstrategyAPI index faa5724e..bb6e1267 100644 --- a/chalk/doc/colorstrategyAPI +++ b/chalk/doc/colorstrategyAPI @@ -3,7 +3,7 @@ This is a working document. It list the places where pixels are mangled and requ The purpose is to find out which functions an API in colorstrategy must have to support pixelmangling in a colorstretegy independent manner. -Requested function: apply an alpha tqmask to pixels +Requested function: apply an alpha mask to pixels Problem: alpha is hard-coded 8-bit in KisPixel, when it should be free void KisPaintDevice::clearSelection() @@ -33,20 +33,20 @@ void KisPaintDevice::clearSelection() } } -void KisPaintDevice::applySelectionMask(KisSelectionSP tqmask) +void KisPaintDevice::applySelectionMask(KisSelectionSP mask) { - QRect r = tqmask -> extent(); + QRect r = mask -> extent(); crop(r); for (Q_INT32 y = r.top(); y <= r.bottom(); ++y) { KisHLineIterator pixelIt = createHLineIterator(r.x(), y, r.width(), true); - KisHLineIterator maskIt = tqmask -> createHLineIterator(r.x(), y, r.width(), false); + KisHLineIterator maskIt = mask -> createHLineIterator(r.x(), y, r.width(), false); while (!pixelIt.isDone()) { KisPixel pixel = toPixel(pixelIt.rawData()); - KisPixel maskValue = tqmask -> toPixel(maskIt.rawData()); + KisPixel maskValue = mask -> toPixel(maskIt.rawData()); pixel.alpha() = (pixel.alpha() * maskValue.alpha()) / MAX_SELECTED; |