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) --- qtsharp/src/examples/samples/scribblewindow.cs | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'qtsharp/src/examples/samples/scribblewindow.cs') diff --git a/qtsharp/src/examples/samples/scribblewindow.cs b/qtsharp/src/examples/samples/scribblewindow.cs index 405b0e31..e078387c 100644 --- a/qtsharp/src/examples/samples/scribblewindow.cs +++ b/qtsharp/src/examples/samples/scribblewindow.cs @@ -36,18 +36,18 @@ namespace QtSamples { ScribbleWindow () : base (null, null) { filemenu = new TQPopupMenu (null, "filemenu"); - filemenu.InsertItem ("&Load", this, TQT_SLOT ("SlotLoad()") ); - filemenu.InsertItem ("&Save", this, TQT_SLOT ("SlotSave()") ); + filemenu.InsertItem ("&Load", this, TQ_SLOT ("SlotLoad()") ); + filemenu.InsertItem ("&Save", this, TQ_SLOT ("SlotSave()") ); filemenu.InsertSeparator (); - filemenu.InsertItem ("&Quit", tqApp, TQT_SLOT ("quit()")); + filemenu.InsertItem ("&Quit", tqApp, TQ_SLOT ("quit()")); aboutmenu = new TQPopupMenu (null, "helpmenu"); - aboutmenu.InsertItem ("&About Qt-Sharp", this, TQT_SLOT ("SlotAboutQtSharp()")); - aboutmenu.InsertItem ("&About Qt", this, TQT_SLOT ("SlotAboutQt()")); + aboutmenu.InsertItem ("&About Qt-Sharp", this, TQ_SLOT ("SlotAboutQtSharp()")); + aboutmenu.InsertItem ("&About Qt", this, TQ_SLOT ("SlotAboutQt()")); menubar = new TQMenuBar (this, ""); menubar.InsertItem ("&File", filemenu); - menubar.InsertItem ("&Color", this, TQT_SLOT("SlotColorChooser()")); + menubar.InsertItem ("&Color", this, TQ_SLOT("SlotColorChooser()")); menubar.InsertItem ("&About", aboutmenu); scrollview = new TQScrollView (this); @@ -58,12 +58,12 @@ namespace QtSamples { this.SetCentralWidget (scrollview); SetMaximumSize (Width (), Height () - menubar.Height ()); - TQObject.Connect (this, TQT_SIGNAL ("colorChanged(TQColor)"), - scribblearea, TQT_SLOT ("SlotSetColor(TQColor)") ); - TQObject.Connect (this, TQT_SIGNAL ("load(TQString)"), - scribblearea, TQT_SLOT ("PerformLoad(TQString)") ); - TQObject.Connect (this, TQT_SIGNAL ("save(TQString)"), - scribblearea, TQT_SLOT ("PerformSave(TQString)") ); + TQObject.Connect (this, TQ_SIGNAL ("colorChanged(TQColor)"), + scribblearea, TQ_SLOT ("SlotSetColor(TQColor)") ); + TQObject.Connect (this, TQ_SIGNAL ("load(TQString)"), + scribblearea, TQ_SLOT ("PerformLoad(TQString)") ); + TQObject.Connect (this, TQ_SIGNAL ("save(TQString)"), + scribblearea, TQ_SLOT ("PerformSave(TQString)") ); } public void SlotLoad () @@ -123,7 +123,7 @@ namespace QtSamples { SetBackgroundMode (Qt.BackgroundMode.NoBackground); popupmenu = new TQPopupMenu(); - popupmenu.InsertItem ("&Clear", this, TQT_SLOT ("SlotClearArea()") ); + popupmenu.InsertItem ("&Clear", this, TQ_SLOT ("SlotClearArea()") ); mouseMoveEvent += new MouseMoveEvent (MouseMoved); mousePressEvent += new MousePressEvent (MousePressed); -- cgit v1.2.1