summaryrefslogtreecommitdiffstats
path: root/qtsharp/src/examples/samples/scribblewindow.cs
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-13 11:45:40 +0900
commitfaf33629bb6562a6f43f930afafe4b22e9cdb60b (patch)
tree8fc6dc6d999a3a039ace28db2fe5b96712fa18e0 /qtsharp/src/examples/samples/scribblewindow.cs
parent0ff7d227c65fecb4fb7482ecd679acb594ef5cf7 (diff)
downloadtdebindings-faf33629bb6562a6f43f930afafe4b22e9cdb60b.tar.gz
tdebindings-faf33629bb6562a6f43f930afafe4b22e9cdb60b.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'qtsharp/src/examples/samples/scribblewindow.cs')
-rw-r--r--qtsharp/src/examples/samples/scribblewindow.cs26
1 files changed, 13 insertions, 13 deletions
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);