summaryrefslogtreecommitdiffstats
path: root/lib/kofficeui/KoTooluButton.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commitb6edfe41c9395f2e20784cbf0e630af6426950a3 (patch)
tree56ed9b871d4296e6c15949c24e16420be1b28697 /lib/kofficeui/KoTooluButton.cpp
parentef39e8e4178a8f98cf5f154916ba0f03e4855206 (diff)
downloadkoffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.tar.gz
koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/kofficeui/KoTooluButton.cpp')
-rw-r--r--lib/kofficeui/KoTooluButton.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/kofficeui/KoTooluButton.cpp b/lib/kofficeui/KoTooluButton.cpp
index 4b5b1b4d..9f500bb1 100644
--- a/lib/kofficeui/KoTooluButton.cpp
+++ b/lib/kofficeui/KoTooluButton.cpp
@@ -377,7 +377,7 @@ void KoColorPanel::paintEvent( TQPaintEvent* e )
if ( !m_colorMap.isEmpty() ) {
int currentRow = startRow, currentCol = startCol;
while ( currentRow < endRow && currentCol < endCol ) {
- TQMap<Position, TQColor>::ConstIterator it = m_colorMap.tqfind( Position( currentCol, currentRow ) );
+ TQMap<Position, TQColor>::ConstIterator it = m_colorMap.find( Position( currentCol, currentRow ) );
if( it != m_colorMap.end() )
p.fillRect( ( currentCol << 4 ) + 2, ( currentRow << 4 ) + 2, 12, 12, it.data() );
@@ -516,7 +516,7 @@ TQColor KoColorPanel::mapToColor( const TQPoint& point ) const
TQColor KoColorPanel::mapToColor( const KoColorPanel::Position& position ) const
{
- TQMap<Position, TQColor>::ConstIterator it = m_colorMap.tqfind( position );
+ TQMap<Position, TQColor>::ConstIterator it = m_colorMap.find( position );
if ( it != m_colorMap.end() )
return it.data();
return TQColor();
@@ -576,7 +576,7 @@ void KoColorPanel::updateFocusPosition( const Position& newPosition )
m_focusPosition = newPosition;
- TQMap<Position, TQColor>::ConstIterator it = m_colorMap.tqfind( m_focusPosition );
+ TQMap<Position, TQColor>::ConstIterator it = m_colorMap.find( m_focusPosition );
if ( it != m_colorMap.end() ) {
// draw at the new focus position
tqstyle().tqdrawPrimitive( TQStyle::PE_Panel, &p, TQRect( m_focusPosition.x << 4, m_focusPosition.y << 4, TILESIZE, TILESIZE ),
@@ -588,7 +588,7 @@ void KoColorPanel::updateFocusPosition( const Position& newPosition )
void KoColorPanel::paint( const Position& position )
{
- TQMap<Position, TQColor>::ConstIterator it = m_colorMap.tqfind( position );
+ TQMap<Position, TQColor>::ConstIterator it = m_colorMap.find( position );
if ( it == m_colorMap.end() )
return;
@@ -852,7 +852,7 @@ void KoToolButton::buttonShift( int& dx, int& dy )
bool KoToolButton::hitArrow( const TQPoint& pos )
{
- return TQRect( width() - ARROW_WIDTH, 0, ARROW_WIDTH, height() ).tqcontains( pos );
+ return TQRect( width() - ARROW_WIDTH, 0, ARROW_WIDTH, height() ).contains( pos );
}
#include <KoTooluButton.moc>