summaryrefslogtreecommitdiffstats
path: root/kspread/plugins/scripting/scripts/scripteditor
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-07-11 21:42:08 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-07-11 21:42:08 +0900
commit20e4a19b0d7cc800d57be50c56d69023adae4046 (patch)
tree522b0ae95b8f7e9ee59a3b405de24b2dd8180bc4 /kspread/plugins/scripting/scripts/scripteditor
parentc2fdb394e63c0df50f1a38eace1077a9151374ce (diff)
downloadkoffice-20e4a19b0d7cc800d57be50c56d69023adae4046.tar.gz
koffice-20e4a19b0d7cc800d57be50c56d69023adae4046.zip
Replace _OBJECT_NAME_STRING defines with actual strings. This relates to the merging of tqtinterface with tqt3.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kspread/plugins/scripting/scripts/scripteditor')
-rwxr-xr-xkspread/plugins/scripting/scripts/scripteditor/ScriptEditor.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/kspread/plugins/scripting/scripts/scripteditor/ScriptEditor.py b/kspread/plugins/scripting/scripts/scripteditor/ScriptEditor.py
index e23b9c565..229598093 100755
--- a/kspread/plugins/scripting/scripts/scripteditor/ScriptEditor.py
+++ b/kspread/plugins/scripting/scripts/scripteditor/ScriptEditor.py
@@ -658,7 +658,7 @@ class Samples:
'd = dcopext.DCOPApp(apps[0], dcopclient)',
'result,typename,data = d.appclient.call(apps[0],"klipper","getClipboardContents()","")',
'ds = tqt.TQDataStream(data, tqt.IO_ReadOnly)',
- 'print("Clipboard content:\\n%s" % tdecore.dcop_next(ds, TQSTRING_OBJECT_NAME_STRING))',
+ 'print("Clipboard content:\\n%s" % tdecore.dcop_next(ds, "TQString"))',
)
class AmarokCollectionInfos:
@@ -708,7 +708,7 @@ class Samples:
'if not state: raise Exception("Failed to call the kopete contacts-function")',
'',
'ds = tqt.TQDataStream(rdata.data(), tqt.IO_ReadOnly)',
- 'sl = tdecore.dcop_next (ds, TQSTRINGLIST_OBJECT_NAME_STRING)',
+ 'sl = tdecore.dcop_next (ds, "TQStringList")',
'print("contacts=%s" % [ str(s) for s in sl ])',
)
@@ -759,7 +759,7 @@ class Samples:
'',
'# Get the selected text.',
'(state,rtype,rdata) = d.appclient.call(appname, frameset.obj(), "selectedText()", "")',
- 'print("Selected Text: %s" % dataToList( rdata,[TQSTRING_OBJECT_NAME_STRING] )[0])',
+ 'print("Selected Text: %s" % dataToList( rdata,["TQString"] )[0])',
)
####################################################################################