diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-08-09 22:25:47 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-08-09 22:25:47 -0500 |
commit | eaa7ee2e0bbca40ba3173c4304f81957e8964291 (patch) | |
tree | 4f793aa48a5080aedc94ce6e519c3b86708f2b88 /tqtinterface/qt4/src/kernel/tqpixmapcache.cpp | |
parent | 79a9d7a46a20d4a0923bc06fc471fdc2176ef865 (diff) | |
download | experimental-eaa7ee2e0bbca40ba3173c4304f81957e8964291.tar.gz experimental-eaa7ee2e0bbca40ba3173c4304f81957e8964291.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
Diffstat (limited to 'tqtinterface/qt4/src/kernel/tqpixmapcache.cpp')
-rw-r--r-- | tqtinterface/qt4/src/kernel/tqpixmapcache.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tqtinterface/qt4/src/kernel/tqpixmapcache.cpp b/tqtinterface/qt4/src/kernel/tqpixmapcache.cpp index 6724d82..e42ec38 100644 --- a/tqtinterface/qt4/src/kernel/tqpixmapcache.cpp +++ b/tqtinterface/qt4/src/kernel/tqpixmapcache.cpp @@ -58,7 +58,7 @@ This class is a tool for optimized drawing with TQPixmap. You can use it to store temporary pixmaps that are expensive to generate without using more storage space than cacheLimit(). Use insert() - to insert pixmaps, tqfind() to tqfind them and clear() to empty the + to insert pixmaps, find() to find them and clear() to empty the cache. For example, TQRadioButton has a non-trivial visual representation @@ -75,7 +75,7 @@ radio button. All radio buttons in the program share the cached pixmap since TQPixmapCache is application-global. - TQPixmapCache tqcontains no member data, only static functions to + TQPixmapCache contains no member data, only static functions to access the global pixmap cache. It creates an internal TQCache for caching the pixmaps. @@ -171,13 +171,13 @@ static TQSingleCleanupHandler<TQPMCache> qpm_cleanup_cache; \warning If valid, you should copy the pixmap immediately (this is fast). Subsequent insertions into the cache could cause the pointer to become invalid. For this reason, we recommend you use - tqfind(const TQString&, TQPixmap&) instead. + find(const TQString&, TQPixmap&) instead. Example: \code TQPixmap* pp; TQPixmap p; - if ( (pp=TQPixmapCache::tqfind("my_big_image", pm)) ) { + if ( (pp=TQPixmapCache::find("my_big_image", pm)) ) { p = *pp; } else { p.load("bigimage.png"); @@ -187,9 +187,9 @@ static TQSingleCleanupHandler<TQPMCache> qpm_cleanup_cache; \endcode */ -TQPixmap *TQPixmapCache::tqfind( const TQString &key ) +TQPixmap *TQPixmapCache::find( const TQString &key ) { - return pm_cache ? pm_cache->tqfind(key) : 0; + return pm_cache ? pm_cache->find(key) : 0; } @@ -203,7 +203,7 @@ TQPixmap *TQPixmapCache::tqfind( const TQString &key ) Example: \code TQPixmap p; - if ( !TQPixmapCache::tqfind("my_big_image", pm) ) { + if ( !TQPixmapCache::find("my_big_image", pm) ) { pm.load("bigimage.png"); TQPixmapCache::insert("my_big_image", pm); } @@ -211,9 +211,9 @@ TQPixmap *TQPixmapCache::tqfind( const TQString &key ) \endcode */ -bool TQPixmapCache::tqfind( const TQString &key, TQPixmap& pm ) +bool TQPixmapCache::find( const TQString &key, TQPixmap& pm ) { - TQPixmap* p = pm_cache ? pm_cache->tqfind(key) : 0; + TQPixmap* p = pm_cache ? pm_cache->find(key) : 0; if ( p ) pm = *p; return !!p; } |