diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-13 11:29:06 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-14 20:32:49 +0900 |
commit | 1eb017313b2ebc441dfc81e73a5d6573d03ea08d (patch) | |
tree | 8d37ac85ad8a529697fc81479852a039de534b8e /qtruby/bin/rbqtsh | |
parent | 673e65a4a15e713643f4bb804f7af6dfdaa0d6d6 (diff) | |
download | tdebindings-1eb017313b2ebc441dfc81e73a5d6573d03ea08d.tar.gz tdebindings-1eb017313b2ebc441dfc81e73a5d6573d03ea08d.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit faf33629bb6562a6f43f930afafe4b22e9cdb60b)
Diffstat (limited to 'qtruby/bin/rbqtsh')
-rwxr-xr-x | qtruby/bin/rbqtsh | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/qtruby/bin/rbqtsh b/qtruby/bin/rbqtsh index 413a037f..ae52df4e 100755 --- a/qtruby/bin/rbqtsh +++ b/qtruby/bin/rbqtsh @@ -317,13 +317,13 @@ class QtShellControl < TQt::MainWindow @helpExampleAction.addTo(helpMenu) @menubar.insertItem(trUtf8("&Help"), helpMenu) - connect(@fileOpenAction, SIGNAL('activated()'), self, SLOT('fileOpen()')) - connect(@fileSaveAction, SIGNAL('activated()'), self, SLOT('fileSave()')) - connect(@fileSaveAsAction, SIGNAL('activated()'), self, SLOT('fileSaveAs()')) - connect(@filePrintAction, SIGNAL('activated()'), self, SLOT('filePrint()')) - connect(@fileExitAction, SIGNAL('activated()'), self, SLOT('fileExit()')) - connect(@runAction, SIGNAL('activated()'), self, SLOT('runSelection()')) - connect(@helpExampleAction, SIGNAL('activated()'), self, SLOT('helpExample()')) + connect(@fileOpenAction, TQ_SIGNAL('activated()'), self, TQ_SLOT('fileOpen()')) + connect(@fileSaveAction, TQ_SIGNAL('activated()'), self, TQ_SLOT('fileSave()')) + connect(@fileSaveAsAction, TQ_SIGNAL('activated()'), self, TQ_SLOT('fileSaveAs()')) + connect(@filePrintAction, TQ_SIGNAL('activated()'), self, TQ_SLOT('filePrint()')) + connect(@fileExitAction, TQ_SIGNAL('activated()'), self, TQ_SLOT('fileExit()')) + connect(@runAction, TQ_SIGNAL('activated()'), self, TQ_SLOT('runSelection()')) + connect(@helpExampleAction, TQ_SIGNAL('activated()'), self, TQ_SLOT('helpExample()')) @executedLines = [] end @@ -497,13 +497,13 @@ def initialize(*k) self.show @shellWindow.show - connect(@shellWindow.comboBox.lineEdit, SIGNAL('returnPressed()'), self, SLOT('evalInput()')) + connect(@shellWindow.comboBox.lineEdit, TQ_SIGNAL('returnPressed()'), self, TQ_SLOT('evalInput()')) @prompt = '<b><font color="blue">$></font></b>' self.setCaption("MainWindow - this") @shellWindow.sessionLog.setText("Ready.<br>") - connect(@shellWindow, SIGNAL('fileNeedsEval(TQString)'), self, SLOT('evalFile(TQString)')) - connect(@shellWindow, SIGNAL('selection(TQString)'), self, SLOT('evalSelection(TQString)')) + connect(@shellWindow, TQ_SIGNAL('fileNeedsEval(TQString)'), self, TQ_SLOT('evalFile(TQString)')) + connect(@shellWindow, TQ_SIGNAL('selection(TQString)'), self, TQ_SLOT('evalSelection(TQString)')) end def logAppend(str) @@ -620,7 +620,7 @@ self.resize(220,240) @vbox.show @sample = TQt::PopupMenu.new(self) $ slots 'there()' -@sample.insertItem("&There", self, SLOT('there()')) +@sample.insertItem("&There", self, TQ_SLOT('there()')) self.menuBar.insertItem("&Here", sample) $ def there; statusBar.message("There...", 2000); end EXAMPLE |