summaryrefslogtreecommitdiffstats
path: root/qtruby/rubylib/examples/textedit/textedit.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qtruby/rubylib/examples/textedit/textedit.rb')
-rw-r--r--qtruby/rubylib/examples/textedit/textedit.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/qtruby/rubylib/examples/textedit/textedit.rb b/qtruby/rubylib/examples/textedit/textedit.rb
index 1f80cb7a..bb67fed7 100644
--- a/qtruby/rubylib/examples/textedit/textedit.rb
+++ b/qtruby/rubylib/examples/textedit/textedit.rb
@@ -40,7 +40,7 @@ class MyTextEditor < TQt::TextEdit
end
def createPopupMenu(pos) # virtual
pm = TQt::PopupMenu.new
- pm.insertItem("Insert Image!", self, SLOT('insert_icon()'))
+ pm.insertItem("Insert Image!", self, TQ_SLOT('insert_icon()'))
pm
end
def has_metadata
@@ -111,18 +111,18 @@ class MyWidget < TQt::MainWindow
def initialize()
super
@editor = MyTextEditor.new(self)
- connect(@editor, SIGNAL('textChanged()'), self, SLOT('text_changed()'))
- connect(@editor, SIGNAL('saved()'), self, SLOT('saved()'))
+ connect(@editor, TQ_SIGNAL('textChanged()'), self, TQ_SLOT('text_changed()'))
+ connect(@editor, TQ_SIGNAL('saved()'), self, TQ_SLOT('saved()'))
fileTools = TQt::ToolBar.new(self, "file operations")
fileMenu = TQt::PopupMenu.new(self)
actions = [
- RAction.new("&New", Icons::FILE_NEW, @editor, SLOT('new()'), [fileTools, fileMenu]),
- RAction.new("&Open...", Icons::FILE_OPEN, @editor, SLOT('open()'), [fileTools, fileMenu]),
- @save = RAction.new("Save &As...", Icons::FILE_SAVE_AS, @editor, SLOT('save_as()'), [fileTools, fileMenu]),
+ RAction.new("&New", Icons::FILE_NEW, @editor, TQ_SLOT('new()'), [fileTools, fileMenu]),
+ RAction.new("&Open...", Icons::FILE_OPEN, @editor, TQ_SLOT('open()'), [fileTools, fileMenu]),
+ @save = RAction.new("Save &As...", Icons::FILE_SAVE_AS, @editor, TQ_SLOT('save_as()'), [fileTools, fileMenu]),
RSeperator.new([fileMenu]),
- RAction.new("E&xit", Icons::EXIT, $qApp, SLOT('quit()'), [fileMenu])
+ RAction.new("E&xit", Icons::EXIT, $qApp, TQ_SLOT('quit()'), [fileMenu])
]
build_actions(actions)