diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-02 22:38:52 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-02 22:38:52 +0000 |
commit | 458efa7b0c935cbaafa2791021a5f8f7241aa876 (patch) | |
tree | 624583f2873febe23770bee3fa94b5c24bd59f4f /src/gui/general/PixmapFunctions.h | |
parent | 747037b72944ae2c02962b7c5c96e0a7f8852e38 (diff) | |
download | rosegarden-458efa7b0c935cbaafa2791021a5f8f7241aa876.tar.gz rosegarden-458efa7b0c935cbaafa2791021a5f8f7241aa876.zip |
Initial TQt4 port of Rosegarden
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1230242 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/general/PixmapFunctions.h')
-rw-r--r-- | src/gui/general/PixmapFunctions.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/gui/general/PixmapFunctions.h b/src/gui/general/PixmapFunctions.h index ea05693..22b743b 100644 --- a/src/gui/general/PixmapFunctions.h +++ b/src/gui/general/PixmapFunctions.h @@ -40,9 +40,9 @@ class PixmapFunctions { public: /** - * Generate a heuristic mask for the given pixmap. Unlike - * TQPixmap::createHeuristicMask, this removes from the mask all - * pixels that are apparently "background" even if they appear in + * Generate a heuristic tqmask for the given pixmap. Unlike + * TQPixmap::createHeuristicMask, this removes from the tqmask all + * pixels that are aptqparently "background" even if they appear in * holes in the middle of the image. This is more usually what we * want than the default behaviour of createHeuristicMask. * @@ -50,12 +50,12 @@ public: * * This function is slow. */ - static TQBitmap generateMask(const TQPixmap &map, const QRgb &rgb); + static TQBitmap generateMask(const TQPixmap &map, const TQRgb &rgb); /** - * Generate a heuristic mask for the given pixmap. Unlike - * TQPixmap::createHeuristicMask, this removes from the mask all - * pixels that are apparently "background" even if they appear in + * Generate a heuristic tqmask for the given pixmap. Unlike + * TQPixmap::createHeuristicMask, this removes from the tqmask all + * pixels that are aptqparently "background" even if they appear in * holes in the middle of the image. This is more usually what we * want than the default behaviour of createHeuristicMask. * @@ -78,23 +78,23 @@ public: */ static TQPixmap shadePixmap(const TQPixmap &map); - /// Return a TQPixmap that is a mirror image of map (including mask) + /// Return a TQPixmap that is a mirror image of map (including tqmask) static TQPixmap flipVertical(const TQPixmap &map); - /// Return a TQPixmap that is a mirror image of map (including mask) + /// Return a TQPixmap that is a mirror image of map (including tqmask) static TQPixmap flipHorizontal(const TQPixmap &map); - /// Return left and right parts of the QPixmap + /// Return left and right parts of the TQPixmap static std::pair<TQPixmap, TQPixmap> splitPixmap(const TQPixmap &original, int x); /** * Using TQPainter::drawPixmap to draw one pixmap on another does - * not appear to take the mask into account properly. Background + * not appear to take the tqmask into account properly. Background * pixels in the second pixmap erase foreground pixels in the - * first one, regardless of whether they're masked or not. This + * first one, regardless of whether they're tqmasked or not. This * function does what I expect. * - * Note that the source pixmap _must_ have a mask. + * Note that the source pixmap _must_ have a tqmask. */ static void drawPixmapMasked(TQPixmap &dest, TQBitmap &destMask, int x, int y, |