summaryrefslogtreecommitdiffstats
path: root/examples/SQL
diff options
context:
space:
mode:
Diffstat (limited to 'examples/SQL')
-rwxr-xr-xexamples/SQL/dbconnect.py2
-rw-r--r--examples/SQL/frmconnect.py4
-rwxr-xr-xexamples/SQL/runform1.py2
-rwxr-xr-xexamples/SQL/runform2.py2
-rwxr-xr-xexamples/SQL/runsqlex.py2
-rwxr-xr-xexamples/SQL/sqlcustom1.py4
6 files changed, 8 insertions, 8 deletions
diff --git a/examples/SQL/dbconnect.py b/examples/SQL/dbconnect.py
index 75887e6..557d3d6 100755
--- a/examples/SQL/dbconnect.py
+++ b/examples/SQL/dbconnect.py
@@ -42,7 +42,7 @@ class dbConnect(frmConnect):
self.txtPasswd.setText(self.password)
list(map(self.cmbServer.insertItem, self.hostnames))
list(map(self.cmbDatabase.insertItem, self.databases))
- self.connect(self.buttonHelp, SIGNAL("clicked()"),
+ self.connect(self.buttonHelp, TQ_SIGNAL("clicked()"),
self.buttonHelp_clicked)
def accept(self):
diff --git a/examples/SQL/frmconnect.py b/examples/SQL/frmconnect.py
index 430f5b2..7945f42 100644
--- a/examples/SQL/frmconnect.py
+++ b/examples/SQL/frmconnect.py
@@ -104,8 +104,8 @@ class frmConnect(TQDialog):
frmConnectLayout.addWidget(self.grpConnection,0,0)
- self.connect(self.buttonOK,SIGNAL("clicked()"),self,SLOT("accept()"))
- self.connect(self.buttonCancel,SIGNAL("clicked()"),self,SLOT("reject()"))
+ self.connect(self.buttonOK,TQ_SIGNAL("clicked()"),self,TQ_SLOT("accept()"))
+ self.connect(self.buttonCancel,TQ_SIGNAL("clicked()"),self,TQ_SLOT("reject()"))
self.setTabOrder(self.txtName,self.txtPasswd)
self.setTabOrder(self.txtPasswd,self.cmbServer)
diff --git a/examples/SQL/runform1.py b/examples/SQL/runform1.py
index 8ef4908..95113b9 100755
--- a/examples/SQL/runform1.py
+++ b/examples/SQL/runform1.py
@@ -13,7 +13,7 @@ class mainWindow(Form1):
if __name__ == "__main__":
a = TQApplication(sys.argv)
if createConnection():
- TQObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
+ TQObject.connect(a,TQ_SIGNAL("lastWindowClosed()"),a,TQ_SLOT("quit()"))
w = mainWindow()
a.setMainWidget(w)
w.show()
diff --git a/examples/SQL/runform2.py b/examples/SQL/runform2.py
index 112d04f..659034a 100755
--- a/examples/SQL/runform2.py
+++ b/examples/SQL/runform2.py
@@ -13,7 +13,7 @@ class mainWindow(Form2):
if __name__ == "__main__":
a = TQApplication(sys.argv)
if createConnection():
- TQObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
+ TQObject.connect(a,TQ_SIGNAL("lastWindowClosed()"),a,TQ_SLOT("quit()"))
w = mainWindow()
a.setMainWidget(w)
w.show()
diff --git a/examples/SQL/runsqlex.py b/examples/SQL/runsqlex.py
index 4f35e52..989b8c3 100755
--- a/examples/SQL/runsqlex.py
+++ b/examples/SQL/runsqlex.py
@@ -143,7 +143,7 @@ class MainWindow(SqlEx):
if __name__ == "__main__":
a = TQApplication(sys.argv)
- TQObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
+ TQObject.connect(a,TQ_SIGNAL("lastWindowClosed()"),a,TQ_SLOT("quit()"))
w = MainWindow()
a.setMainWidget(w)
w.show()
diff --git a/examples/SQL/sqlcustom1.py b/examples/SQL/sqlcustom1.py
index 0c37911..7803114 100755
--- a/examples/SQL/sqlcustom1.py
+++ b/examples/SQL/sqlcustom1.py
@@ -22,7 +22,7 @@ FALSE = 0
class CustomEdit(TQLineEdit):
def __init__(self, parent = None, name = None):
TQLineEdit.__init__(self, parent, name)
- TQObject.connect(self, SIGNAL("textChanged(const TQString &)"),
+ TQObject.connect(self, TQ_SIGNAL("textChanged(const TQString &)"),
self.changed)
def changed(self, line):
@@ -44,7 +44,7 @@ class FormDialog(TQDialog):
salaryEdit = TQLineEdit(self)
salaryEdit.setAlignment(TQt.AlignRight)
saveButton = TQPushButton("&Save", self)
- self.connect(saveButton, SIGNAL("clicked()"), self.save)
+ self.connect(saveButton, TQ_SIGNAL("clicked()"), self.save)
grid = TQGridLayout(self)
grid.addWidget(forenameLabel, 0, 0)