summaryrefslogtreecommitdiffstats
path: root/kexi/plugins/scripting
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/plugins/scripting')
-rw-r--r--kexi/plugins/scripting/kexiscripting/kexiscriptdesignview.cpp4
-rw-r--r--kexi/plugins/scripting/scripts/copycenter/CopyCenter.py12
2 files changed, 8 insertions, 8 deletions
diff --git a/kexi/plugins/scripting/kexiscripting/kexiscriptdesignview.cpp b/kexi/plugins/scripting/kexiscripting/kexiscriptdesignview.cpp
index 0c95cb0e..39f84599 100644
--- a/kexi/plugins/scripting/kexiscripting/kexiscriptdesignview.cpp
+++ b/kexi/plugins/scripting/kexiscripting/kexiscriptdesignview.cpp
@@ -295,7 +295,7 @@ KexiDB::SchemaData* KexiScriptDesignView::storeNewData(const KexiDB::SchemaData&
if(! storeData()) {
kdWarning() << "KexiScriptDesignView::storeNewData Failed to store the data." << endl;
//failure: remove object's schema data to avoid garbage
- KexiDB::Connection *conn = tqparentDialog()->mainWin()->project()->dbConnection();
+ KexiDB::Connection *conn = parentDialog()->mainWin()->project()->dbConnection();
conn->removeObject( s->id() );
delete s;
return 0;
@@ -306,7 +306,7 @@ KexiDB::SchemaData* KexiScriptDesignView::storeNewData(const KexiDB::SchemaData&
tristate KexiScriptDesignView::storeData(bool /*dontAsk*/)
{
- kexipluginsdbg << "KexiScriptDesignView::storeData(): " << tqparentDialog()->partItem()->name() << " [" << tqparentDialog()->id() << "]" << endl;
+ kexipluginsdbg << "KexiScriptDesignView::storeData(): " << parentDialog()->partItem()->name() << " [" << parentDialog()->id() << "]" << endl;
TQDomDocument domdoc("script");
TQDomElement scriptelem = domdoc.createElement("script");
diff --git a/kexi/plugins/scripting/scripts/copycenter/CopyCenter.py b/kexi/plugins/scripting/scripts/copycenter/CopyCenter.py
index 3a2734aa..43fa7e25 100644
--- a/kexi/plugins/scripting/scripts/copycenter/CopyCenter.py
+++ b/kexi/plugins/scripting/scripts/copycenter/CopyCenter.py
@@ -238,19 +238,19 @@ def runGuiApp(copycenter, name):
f.close()
print "File \%s\" successfully written." % filename
- def addItem(self, pluginimpl, afteritem = None, tqparentitem = None):
+ def addItem(self, pluginimpl, afteritem = None, parentitem = None):
#print "CopyJobWidget.addItem"
class ListViewItem(qt.QListViewItem):
- def __init__(self, pluginimpl, listview, tqparentitem = None, afteritem = None):
+ def __init__(self, pluginimpl, listview, parentitem = None, afteritem = None):
self.pluginimpl = pluginimpl
- if tqparentitem == None:
+ if parentitem == None:
qt.QListViewItem.__init__(self,listview)
self.setOpen(True)
else:
if afteritem == None:
- qt.QListViewItem.__init__(self,tqparentitem)
+ qt.QListViewItem.__init__(self,parentitem)
else:
- qt.QListViewItem.__init__(self,tqparentitem,afteritem)
+ qt.QListViewItem.__init__(self,parentitem,afteritem)
self.setRenameEnabled(1,True)
def startRename(self, columnindex):
qt.QListViewItem.startRename(self,columnindex)
@@ -274,7 +274,7 @@ def runGuiApp(copycenter, name):
if qt.QListViewItem.text(self,0).tqcontains("password"):
return "*" * len(str(qt.QListViewItem.text(self,1)))
return qt.QListViewItem.text(self,columnindex)
- return ListViewItem(pluginimpl, self.listview, tqparentitem, afteritem)
+ return ListViewItem(pluginimpl, self.listview, parentitem, afteritem)
def updateItem(self,pluginname,pluginimpl):
#print "CopyJobWidget.updateItem"