From 1eb017313b2ebc441dfc81e73a5d6573d03ea08d Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 13 Jan 2024 11:29:06 +0900 Subject: Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines Signed-off-by: Michele Calgaro (cherry picked from commit faf33629bb6562a6f43f930afafe4b22e9cdb60b) --- korundum/rubylib/templates/annotated/menuapp2.rb | 30 ++++++++++++------------ 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'korundum/rubylib/templates/annotated/menuapp2.rb') diff --git a/korundum/rubylib/templates/annotated/menuapp2.rb b/korundum/rubylib/templates/annotated/menuapp2.rb index f8778163..d471423e 100644 --- a/korundum/rubylib/templates/annotated/menuapp2.rb +++ b/korundum/rubylib/templates/annotated/menuapp2.rb @@ -87,22 +87,22 @@ class MainWin < KDE::MainWindow # where the code for the action is located # "File" menu items - @newAction = KDE::StdAction.openNew(self, SLOT("slotNew()"), actionCollection()) - @openAction = KDE::StdAction.open(self, SLOT("slotOpen()"), actionCollection()) - @saveAction = KDE::StdAction.save(self, SLOT("slotSave()"), actionCollection()) - @saveAsAction = KDE::StdAction.saveAs(self, SLOT("slotSaveAs()"), actionCollection()) - @printAction = KDE::StdAction.print(self, SLOT("slotPrint()"), actionCollection()) - @quitAction = KDE::StdAction.quit(self, SLOT("slotQuit()"), actionCollection()) + @newAction = KDE::StdAction.openNew(self, TQ_SLOT("slotNew()"), actionCollection()) + @openAction = KDE::StdAction.open(self, TQ_SLOT("slotOpen()"), actionCollection()) + @saveAction = KDE::StdAction.save(self, TQ_SLOT("slotSave()"), actionCollection()) + @saveAsAction = KDE::StdAction.saveAs(self, TQ_SLOT("slotSaveAs()"), actionCollection()) + @printAction = KDE::StdAction.print(self, TQ_SLOT("slotPrint()"), actionCollection()) + @quitAction = KDE::StdAction.quit(self, TQ_SLOT("slotQuit()"), actionCollection()) # "Edit" menu items - @undoAction = KDE::StdAction.undo(self, SLOT("slotUndo()"), actionCollection()) - @redoAction = KDE::StdAction.redo(self, SLOT("slotRedo()"), actionCollection()) - @cutAction = KDE::StdAction.cut(self, SLOT("slotCut()"), actionCollection()) - @copyAction = KDE::StdAction.copy(self, SLOT("slotCopy()"), actionCollection()) - @pasteAction = KDE::StdAction.paste(self, SLOT("slotPaste()"), actionCollection()) - @findAction = KDE::StdAction.find(self, SLOT("slotFind()"), actionCollection()) - @findNextAction = KDE::StdAction.findNext(self, SLOT("slotFindNext()"), actionCollection()) - @replaceAction = KDE::StdAction.replace(self, SLOT("slotReplace()"), actionCollection()) + @undoAction = KDE::StdAction.undo(self, TQ_SLOT("slotUndo()"), actionCollection()) + @redoAction = KDE::StdAction.redo(self, TQ_SLOT("slotRedo()"), actionCollection()) + @cutAction = KDE::StdAction.cut(self, TQ_SLOT("slotCut()"), actionCollection()) + @copyAction = KDE::StdAction.copy(self, TQ_SLOT("slotCopy()"), actionCollection()) + @pasteAction = KDE::StdAction.paste(self, TQ_SLOT("slotPaste()"), actionCollection()) + @findAction = KDE::StdAction.find(self, TQ_SLOT("slotFind()"), actionCollection()) + @findNextAction = KDE::StdAction.findNext(self, TQ_SLOT("slotFindNext()"), actionCollection()) + @replaceAction = KDE::StdAction.replace(self, TQ_SLOT("slotReplace()"), actionCollection()) # For actions that are not "standard", you can create your # own actions using KDE::Action. This example doesn't include @@ -114,7 +114,7 @@ class MainWin < KDE::MainWindow # This TDEAction constructor requires a string, an accelerator (0 # in this case), a slot, and a TQObject (None in this case) - @specialAction = KDE::Action.new(i18n("Special"), KDE::Shortcut.new(0), self, SLOT('slotSpecial()'), actionCollection(), "specialActionName") + @specialAction = KDE::Action.new(i18n("Special"), KDE::Shortcut.new(0), self, TQ_SLOT('slotSpecial()'), actionCollection(), "specialActionName") end def initMenus() -- cgit v1.2.1