diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | f1a1c11c4d8dff7be49de6d27f6acfe96f199de3 (patch) | |
tree | b86f88c75087a91fec27df159bb227d21c09a81f /style | |
parent | 664a63eaba4c3706a655b4fb54310c8966d51b02 (diff) | |
download | tde-style-lipstik-f1a1c11c4d8dff7be49de6d27f6acfe96f199de3.tar.gz tde-style-lipstik-f1a1c11c4d8dff7be49de6d27f6acfe96f199de3.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kde-style-lipstik@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'style')
-rw-r--r-- | style/lipstik.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/style/lipstik.cpp b/style/lipstik.cpp index eca21f9..c45a1a1 100644 --- a/style/lipstik.cpp +++ b/style/lipstik.cpp @@ -731,7 +731,7 @@ void LipstikStyle::renderPixel(TQPainter *p, int key = search.key(); CacheEntry *cacheEntry; - if( (cacheEntry = pixmapCache->tqfind(key)) ) { + if( (cacheEntry = pixmapCache->find(key)) ) { if( search == *cacheEntry ) { // match! we can draw now... if(cacheEntry->pixmap) p->drawPixmap(pos, *(cacheEntry->pixmap) ); @@ -864,7 +864,7 @@ void LipstikStyle::renderGradient(TQPainter *painter, int key = search.key(); CacheEntry *cacheEntry; - if( (cacheEntry = pixmapCache->tqfind(key)) ) { + if( (cacheEntry = pixmapCache->find(key)) ) { if( search == *cacheEntry ) { // match! we can draw now... if(cacheEntry->pixmap) { painter->drawTiledPixmap(rect, *(cacheEntry->pixmap) ); @@ -1733,7 +1733,7 @@ void LipstikStyle::tqdrawPrimitive(PrimitiveElement pe, case PE_ButtonTool: case PE_ButtonDropDown: case PE_ButtonCommand: { - bool khtmlMode = opt.isDefault() ? false : khtmlWidgets.tqcontains(opt.widget()); + bool khtmlMode = opt.isDefault() ? false : khtmlWidgets.contains(opt.widget()); renderButton(p, r, cg, (on||down), mouseOver, true, enabled, khtmlMode ); break; } @@ -2578,7 +2578,7 @@ void LipstikStyle::tqdrawControl(ControlElement element, } else { // find the animation Offset for the current Widget TQWidget* nonConstWidget = const_cast<TQWidget*>(widget); - TQMapConstIterator<TQWidget*, int> iter = progAnimWidgets.tqfind(nonConstWidget); + TQMapConstIterator<TQWidget*, int> iter = progAnimWidgets.find(nonConstWidget); if (iter != progAnimWidgets.end()) animShift = iter.data(); } @@ -3014,7 +3014,7 @@ void LipstikStyle::tqdrawControl(ControlElement element, TQString s = mi->text(); // Does the menu item have a text label? if ( !s.isNull() ) { - int t = s.tqfind( '\t' ); + int t = s.find( '\t' ); int m = 2; int text_flags = AlignVCenter | ShowPrefix | DontClip | SingleLine; text_flags |= reverse ? AlignRight : AlignLeft; @@ -3203,7 +3203,7 @@ void LipstikStyle::tqdrawComplexControl(ComplexControl control, :cg.background(); uint contourFlags = 0; - if( khtmlWidgets.tqcontains(cb) ) + if( khtmlWidgets.contains(cb) ) contourFlags |= Draw_AlphaBlend; if (_inputFocusHighlight && hasFocus && editable && enabled) @@ -3856,7 +3856,7 @@ TQSize LipstikStyle::tqsizeFromContents(ContentsType t, } } - if (!mi->text().isNull() && (mi->text().tqfind('\t') >= 0)) { + if (!mi->text().isNull() && (mi->text().find('\t') >= 0)) { w += itemHMargin + itemFrame*2 + 7; } else if (mi->popup()) { w += 2 * arrowHMargin; |