summaryrefslogtreecommitdiffstats
path: root/korundum/rubylib/templates/annotated/menuapp2.rb
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-13 11:29:06 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-14 20:32:49 +0900
commit1eb017313b2ebc441dfc81e73a5d6573d03ea08d (patch)
tree8d37ac85ad8a529697fc81479852a039de534b8e /korundum/rubylib/templates/annotated/menuapp2.rb
parent673e65a4a15e713643f4bb804f7af6dfdaa0d6d6 (diff)
downloadtdebindings-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 'korundum/rubylib/templates/annotated/menuapp2.rb')
-rw-r--r--korundum/rubylib/templates/annotated/menuapp2.rb30
1 files changed, 15 insertions, 15 deletions
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()