diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-10 10:12:35 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-11 10:03:49 +0900 |
| commit | db88dbbdb24193c81d3b4b893553b78cddf32eb3 (patch) | |
| tree | 392ed8ab9606ee7a8a67b201e84a8b4a9e8ddb5a /examples/pytde-sampler/basic_widgets/historycombo.py | |
| parent | bab19cc2a24fceccebe4477c4af99a6a162ef998 (diff) | |
| download | pytde-db88dbbd.tar.gz pytde-db88dbbd.zip | |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit d94985267d6f224c5a9833736762f466d264374d)
Diffstat (limited to 'examples/pytde-sampler/basic_widgets/historycombo.py')
| -rw-r--r-- | examples/pytde-sampler/basic_widgets/historycombo.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/pytde-sampler/basic_widgets/historycombo.py b/examples/pytde-sampler/basic_widgets/historycombo.py index a43e8a9..8891235 100644 --- a/examples/pytde-sampler/basic_widgets/historycombo.py +++ b/examples/pytde-sampler/basic_widgets/historycombo.py @@ -1,5 +1,5 @@ from PyTQt.tqt import TQt, TQFrame, TQHBoxLayout, TQVBoxLayout, TQStringList, TQLabel, \ - SIGNAL, SLOT + TQ_SIGNAL, TQ_SLOT from tdeui import KHistoryCombo, KTextEdit @@ -41,11 +41,11 @@ class MainFrame(TQFrame): layout.addWidget(self.historyCombo, 0) layout.addStretch(10) - self.connect(self.historyCombo, SIGNAL('activated(const TQString& )'), - self.historyCombo, SLOT('addToHistory(const TQString&)')) - self.connect(self.historyCombo, SIGNAL('cleared()'), + self.connect(self.historyCombo, TQ_SIGNAL('activated(const TQString& )'), + self.historyCombo, TQ_SLOT('addToHistory(const TQString&)')) + self.connect(self.historyCombo, TQ_SIGNAL('cleared()'), self.historyCleared) - self.connect(self.historyCombo, SIGNAL('activated(const TQString &)'), + self.connect(self.historyCombo, TQ_SIGNAL('activated(const TQString &)'), self.historySelection.setText) def historyCleared(self): |
