summaryrefslogtreecommitdiffstats
path: root/kspread/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'kspread/plugins')
-rw-r--r--kspread/plugins/calculator/kcalc_core.cpp2
-rwxr-xr-xkspread/plugins/scripting/scripts/scripteditor/ScriptEditor.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/kspread/plugins/calculator/kcalc_core.cpp b/kspread/plugins/calculator/kcalc_core.cpp
index e82e56c9..7a6f8209 100644
--- a/kspread/plugins/calculator/kcalc_core.cpp
+++ b/kspread/plugins/calculator/kcalc_core.cpp
@@ -575,7 +575,7 @@ void TQtCalculator::EnterNegate()
TQString string;
string = display_str;
int pos;
- pos = string.tqfindRev('e',-1,false);
+ pos = string.findRev('e',-1,false);
if(pos == -1)
return;
diff --git a/kspread/plugins/scripting/scripts/scripteditor/ScriptEditor.py b/kspread/plugins/scripting/scripts/scripteditor/ScriptEditor.py
index 8217a751..f434bce5 100755
--- a/kspread/plugins/scripting/scripts/scripteditor/ScriptEditor.py
+++ b/kspread/plugins/scripting/scripts/scripteditor/ScriptEditor.py
@@ -813,7 +813,7 @@ class SampleDialog(qt.QDialog):
widget = self.samplechild.widgets[widgetname]
value = widget.value()
if value != None:
- code = code.tqreplace("{%s}" % widgetname, str(value))
+ code = code.replace("{%s}" % widgetname, str(value))
return code
class MainDialog(qt.QDialog):