From 27f46d6031d41aa6ce071885a7e280e1097680e1 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 8 Jan 2024 11:54:27 +0900 Subject: Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines Signed-off-by: Michele Calgaro (cherry picked from commit 7d5aea7e8497095f76841f3dd8f2eab9c4cb58aa) --- examples/tqdir.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/tqdir.py') diff --git a/examples/tqdir.py b/examples/tqdir.py index 99875d0..bc9ddbc 100755 --- a/examples/tqdir.py +++ b/examples/tqdir.py @@ -174,7 +174,7 @@ class CustomFileDialog(TQFileDialog): p.setPixmap(TQPixmap(bookmarks)) TQToolTip.add(p, "Bookmarks") self.bookmarkMenu = TQPopupMenu(self) - self.connect(self.bookmarkMenu, SIGNAL("activated(int)"), + self.connect(self.bookmarkMenu, TQ_SIGNAL("activated(int)"), self.bookmarkChosen) self.addId = self.bookmarkMenu.insertItem("Add bookmark") self.bookmarkMenu.insertSeparator() @@ -184,12 +184,12 @@ class CustomFileDialog(TQFileDialog): self.addToolButton(p, True) self.connect(self.dirView, PYSIGNAL("folderSelected(const TQString &)"), self.setDir2) - self.connect(self, SIGNAL("dirEntered(const TQString &)"), + self.connect(self, TQ_SIGNAL("dirEntered(const TQString &)"), self.dirView.setDir) b = TQToolButton(self) TQToolTip.add(b, "Go Home!") b.setPixmap(TQPixmap(home)) - self.connect(b, SIGNAL("clicked()"), self.goHome) + self.connect(b, TQ_SIGNAL("clicked()"), self.goHome) self.addToolButton(b) if preview: -- cgit v1.2.3