summaryrefslogtreecommitdiffstats
path: root/languages/ruby/app_templates/qtrubyapp/qtrubyapp.rb
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-14 14:24:33 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-14 14:24:33 +0900
commit35fbd60457d1e51e6a0df5d181d1a0f00ad75a2c (patch)
treebb3c7d39dd8592f3676cbd663a3cc42c7b288b41 /languages/ruby/app_templates/qtrubyapp/qtrubyapp.rb
parent59f10590f7686267df6e294111a2ff5661089026 (diff)
downloadtdevelop-35fbd60457d1e51e6a0df5d181d1a0f00ad75a2c.tar.gz
tdevelop-35fbd60457d1e51e6a0df5d181d1a0f00ad75a2c.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'languages/ruby/app_templates/qtrubyapp/qtrubyapp.rb')
-rw-r--r--languages/ruby/app_templates/qtrubyapp/qtrubyapp.rb26
1 files changed, 13 insertions, 13 deletions
diff --git a/languages/ruby/app_templates/qtrubyapp/qtrubyapp.rb b/languages/ruby/app_templates/qtrubyapp/qtrubyapp.rb
index df98824d..1f399323 100644
--- a/languages/ruby/app_templates/qtrubyapp/qtrubyapp.rb
+++ b/languages/ruby/app_templates/qtrubyapp/qtrubyapp.rb
@@ -18,15 +18,15 @@ class %{APPNAMESC} < TQt::MainWindow
openIcon = TQt::Pixmap.new( "fileopen.xpm" )
fileOpen = TQt::ToolButton.new( TQt::IconSet.new(openIcon), tr("Open File"), nil,
- self, SLOT('choose()'), fileTools, "open file" )
+ self, TQ_SLOT('choose()'), fileTools, "open file" )
saveIcon = TQt::Pixmap.new( "filesave.xpm" )
fileSave = TQt::ToolButton.new( TQt::IconSet.new(saveIcon), tr("Save File"), nil,
- self, SLOT('save()'), fileTools, "save file" )
+ self, TQ_SLOT('save()'), fileTools, "save file" )
printIcon = TQt::Pixmap.new( "fileprint.xpm" )
filePrint = TQt::ToolButton.new( TQt::IconSet.new(printIcon), tr("Print File"), nil,
- self, SLOT('print()'), fileTools, "print file" )
+ self, TQ_SLOT('print()'), fileTools, "print file" )
TQt::WhatsThis.whatsThisButton( fileTools )
@@ -58,40 +58,40 @@ class %{APPNAMESC} < TQt::MainWindow
menuBar().insertItem( tr("&File"), file )
- file.insertItem( tr("&New"), self, SLOT('newDoc()'), TQt::KeySequence.new(CTRL+Key_N) )
+ file.insertItem( tr("&New"), self, TQ_SLOT('newDoc()'), TQt::KeySequence.new(CTRL+Key_N) )
id = file.insertItem( TQt::IconSet.new(openIcon), tr("&Open..."),
- self, SLOT('choose()'), TQt::KeySequence.new(CTRL+Key_O) )
+ self, TQ_SLOT('choose()'), TQt::KeySequence.new(CTRL+Key_O) )
file.setWhatsThis( id, fileOpenText )
id = file.insertItem( TQt::IconSet.new(saveIcon), tr("&Save"),
- self, SLOT('save()'), TQt::KeySequence.new(CTRL+Key_S) )
+ self, TQ_SLOT('save()'), TQt::KeySequence.new(CTRL+Key_S) )
file.setWhatsThis( id, fileSaveText )
- id = file.insertItem( tr("Save &As..."), self, SLOT('saveAs()') )
+ id = file.insertItem( tr("Save &As..."), self, TQ_SLOT('saveAs()') )
file.setWhatsThis( id, fileSaveText )
file.insertSeparator()
id = file.insertItem( TQt::IconSet.new(printIcon), tr("&Print..."),
- self, SLOT('print()'), TQt::KeySequence.new(CTRL+Key_P) )
+ self, TQ_SLOT('print()'), TQt::KeySequence.new(CTRL+Key_P) )
file.setWhatsThis( id, filePrintText )
file.insertSeparator()
- file.insertItem( tr("&Close"), self, SLOT('close()'), TQt::KeySequence.new(CTRL+Key_W) )
+ file.insertItem( tr("&Close"), self, TQ_SLOT('close()'), TQt::KeySequence.new(CTRL+Key_W) )
- file.insertItem( tr("&Quit"), $tqApp, SLOT( 'closeAllWindows()' ), TQt::KeySequence.new(CTRL+Key_Q) )
+ file.insertItem( tr("&Quit"), $tqApp, TQ_SLOT( 'closeAllWindows()' ), TQt::KeySequence.new(CTRL+Key_Q) )
menuBar().insertSeparator()
help = TQt::PopupMenu.new( self )
menuBar().insertItem( tr("&Help"), help )
- help.insertItem( tr("&About"), self, SLOT('about()'), TQt::KeySequence.new(Key_F1) )
- help.insertItem( tr("About &Qt"), self, SLOT('aboutQt()') )
+ help.insertItem( tr("&About"), self, TQ_SLOT('about()'), TQt::KeySequence.new(Key_F1) )
+ help.insertItem( tr("About &Qt"), self, TQ_SLOT('aboutQt()') )
help.insertSeparator()
- help.insertItem( tr("What's &This"), self, SLOT('whatsThis()'), TQt::KeySequence.new(SHIFT+Key_F1) )
+ help.insertItem( tr("What's &This"), self, TQ_SLOT('whatsThis()'), TQt::KeySequence.new(SHIFT+Key_F1) )
@e = TQt::TextEdit.new( self, "editor" )
@e.setFocus()