summaryrefslogtreecommitdiffstats
path: root/kspread/kspread_editors.cc
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 /kspread/kspread_editors.cc
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 'kspread/kspread_editors.cc')
-rw-r--r--kspread/kspread_editors.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/kspread/kspread_editors.cc b/kspread/kspread_editors.cc
index 1ed83ac2..c9948189 100644
--- a/kspread/kspread_editors.cc
+++ b/kspread/kspread_editors.cc
@@ -137,12 +137,12 @@ int FormulaEditorHighlighter::highlightParagraph(const TQString& text, int /* en
Range newRange( token.text() );
- if (!alreadyFoundRanges.tqcontains(newRange))
+ if (!alreadyFoundRanges.contains(newRange))
{
alreadyFoundRanges.append(newRange);
d->rangeCount++;
}
- setFormat(token.pos() + 1, token.text().length(), colors[ alreadyFoundRanges.tqfindIndex(newRange) % colors.size()] );
+ setFormat(token.pos() + 1, token.text().length(), colors[ alreadyFoundRanges.findIndex(newRange) % colors.size()] );
}
break;
case Token::Boolean: // True, False (also i18n-ized)
@@ -768,7 +768,7 @@ void CellEditor::slotCursorPositionChanged(int /* para */, int pos)
Region region(d->canvas->view(), token.text());
it = region.constBegin();
- if (!alreadyUsedRegions.tqcontains(region))
+ if (!alreadyUsedRegions.contains(region))
{
TQRect r=(*it)->rect();
@@ -1310,7 +1310,7 @@ LocationEditWidget::LocationEditWidget( TQWidget * _parent,
void LocationEditWidget::addCompletionItem( const TQString &_item )
{
kdDebug()<<" LocationEditWidget::addCompletionItem add :"<<_item<<endl;
- if ( completionList.items().tqcontains( _item) == 0 )
+ if ( completionList.items().contains( _item) == 0 )
{
completionList.addItem( _item );
kdDebug()<<" _utem :"<<_item<<endl;
@@ -1348,14 +1348,14 @@ bool LocationEditWidget::activateItem()
// Set the cell component to uppercase:
// Sheet1!a1 -> Sheet1!A2
- int pos = ltext.tqfind('!');
+ int pos = ltext.find('!');
if ( pos !=- 1 )
tmp = ltext.left(pos)+ltext.mid(pos).upper();
else
tmp = ltext.upper();
// Selection entered in location widget
- if ( ltext.tqcontains( ':' ) )
+ if ( ltext.contains( ':' ) )
m_pView->selectionInfo()->initialize( Region(m_pView,tmp) );
// Location entered in location widget
else