diff options
Diffstat (limited to 'qtsharp/src/examples/samples')
-rw-r--r-- | qtsharp/src/examples/samples/display.cs | 4 | ||||
-rw-r--r-- | qtsharp/src/examples/samples/emit.cs | 4 | ||||
-rw-r--r-- | qtsharp/src/examples/samples/hello.cs | 2 | ||||
-rw-r--r-- | qtsharp/src/examples/samples/mandelbrot.cs | 2 | ||||
-rw-r--r-- | qtsharp/src/examples/samples/mandelbrot2.cs | 2 | ||||
-rw-r--r-- | qtsharp/src/examples/samples/qstring-slot.cs | 2 | ||||
-rw-r--r-- | qtsharp/src/examples/samples/quantumfractals.cs | 38 | ||||
-rw-r--r-- | qtsharp/src/examples/samples/scribblewindow.cs | 26 |
8 files changed, 40 insertions, 40 deletions
diff --git a/qtsharp/src/examples/samples/display.cs b/qtsharp/src/examples/samples/display.cs index daf8daa0..8d94b5f8 100644 --- a/qtsharp/src/examples/samples/display.cs +++ b/qtsharp/src/examples/samples/display.cs @@ -26,10 +26,10 @@ namespace QtSamples { public Display () { filemenu = new TQPopupMenu (null, "filemenu"); - filemenu.InsertItem ("&Quit", tqApp, TQT_SLOT ("quit()")); + filemenu.InsertItem ("&Quit", tqApp, TQ_SLOT ("quit()")); aboutmenu = new TQPopupMenu(null, "aboutmenu"); - aboutmenu.InsertItem("&About Qt-Sharp", this, TQT_SLOT("slotAbout()")); + aboutmenu.InsertItem("&About Qt-Sharp", this, TQ_SLOT("slotAbout()")); menubar = new TQMenuBar(this, ""); menubar.InsertItem("&File", filemenu); diff --git a/qtsharp/src/examples/samples/emit.cs b/qtsharp/src/examples/samples/emit.cs index 125166a2..08a27555 100644 --- a/qtsharp/src/examples/samples/emit.cs +++ b/qtsharp/src/examples/samples/emit.cs @@ -13,8 +13,8 @@ namespace QtSamples { { TQPushButton pb = new TQPushButton ("Papa Smurf", this); - Connect (pb, TQT_SIGNAL ("clicked ()"), TQT_SLOT ("DoEmit ()")); - Connect (this, TQT_SIGNAL ("MySignal ()"), TQT_SLOT ("PrintStuff ()")); + Connect (pb, TQ_SIGNAL ("clicked ()"), TQ_SLOT ("DoEmit ()")); + Connect (this, TQ_SIGNAL ("MySignal ()"), TQ_SLOT ("PrintStuff ()")); } public void DoEmit () diff --git a/qtsharp/src/examples/samples/hello.cs b/qtsharp/src/examples/samples/hello.cs index 1039aa34..524c4d4c 100644 --- a/qtsharp/src/examples/samples/hello.cs +++ b/qtsharp/src/examples/samples/hello.cs @@ -25,7 +25,7 @@ namespace QtSamples { public HelloWorld () : base (null) { TQPushButton pb = new TQPushButton ("Hello Qt-Sharp-0.7!", this); - TQObject.Connect (pb, TQT_SIGNAL ("clicked()"), this, TQT_SLOT("SlotClicked()")); + TQObject.Connect (pb, TQ_SIGNAL ("clicked()"), this, TQ_SLOT("SlotClicked()")); } public void SlotClicked () diff --git a/qtsharp/src/examples/samples/mandelbrot.cs b/qtsharp/src/examples/samples/mandelbrot.cs index 3850b781..77acb98d 100644 --- a/qtsharp/src/examples/samples/mandelbrot.cs +++ b/qtsharp/src/examples/samples/mandelbrot.cs @@ -213,7 +213,7 @@ public class ImageDialog : TQDialog { pixmapLabel.SetScaledContents (true); dialogLayout.AddWidget (pixmapLabel); - TQObject.Connect (redrawButton, TQT_SIGNAL ("clicked()"), this, TQT_SLOT ("Redraw()")); + TQObject.Connect (redrawButton, TQ_SIGNAL ("clicked()"), this, TQ_SLOT ("Redraw()")); Redraw (); } diff --git a/qtsharp/src/examples/samples/mandelbrot2.cs b/qtsharp/src/examples/samples/mandelbrot2.cs index 175ef9bc..08f7bc56 100644 --- a/qtsharp/src/examples/samples/mandelbrot2.cs +++ b/qtsharp/src/examples/samples/mandelbrot2.cs @@ -272,7 +272,7 @@ public class ImageDialog : TQDialog { //pixmapLabel.SetPixmap( new TQPixmap( image ) ); - TQObject.Connect (redrawButton, TQT_SIGNAL ("clicked()"), pixmapLabel, TQT_SLOT ("Repaint()")); + TQObject.Connect (redrawButton, TQ_SIGNAL ("clicked()"), pixmapLabel, TQ_SLOT ("Repaint()")); //Redraw (); } diff --git a/qtsharp/src/examples/samples/qstring-slot.cs b/qtsharp/src/examples/samples/qstring-slot.cs index c0559f5b..be807ea0 100644 --- a/qtsharp/src/examples/samples/qstring-slot.cs +++ b/qtsharp/src/examples/samples/qstring-slot.cs @@ -15,7 +15,7 @@ public class MyWidget : TQVBox label = new TQLabel( this, "label" ); label.SetText("Default"); - TQObject.Connect( lineEdit, TQT_SIGNAL("textChanged(TQString)"), + TQObject.Connect( lineEdit, TQ_SIGNAL("textChanged(TQString)"), label, "SetText(TQString)" ); } diff --git a/qtsharp/src/examples/samples/quantumfractals.cs b/qtsharp/src/examples/samples/quantumfractals.cs index 3020eae6..a213f948 100644 --- a/qtsharp/src/examples/samples/quantumfractals.cs +++ b/qtsharp/src/examples/samples/quantumfractals.cs @@ -37,9 +37,9 @@ namespace Qf { //Setup the filemenu filemenu = new TQPopupMenu (null, "filemenu"); - filemenu.InsertItem ("&Screenshot", display, TQT_SLOT ("SlotScreenshot()")); + filemenu.InsertItem ("&Screenshot", display, TQ_SLOT ("SlotScreenshot()")); filemenu.InsertSeparator (); - filemenu.InsertItem ("&Quit", tqApp, TQT_SLOT ("quit()")); + filemenu.InsertItem ("&Quit", tqApp, TQ_SLOT ("quit()")); //Setup the shapemenu shapemenu = new TQPopupMenu (null, "typemenu"); @@ -52,12 +52,12 @@ namespace Qf { shapemenu.InsertItem( "&Icosidodecahedron", 6); //Connect the shapemenu - TQObject.Connect (shapemenu, TQT_SIGNAL ("activated(int)"), - display, TQT_SLOT("SlotShapeMenu(int)")); + TQObject.Connect (shapemenu, TQ_SIGNAL ("activated(int)"), + display, TQ_SLOT("SlotShapeMenu(int)")); //Setup the settingsmenu settingsmenu = new TQPopupMenu (null, "settingsmenu"); - settingsmenu.InsertItem ("&Alpha", display, TQT_SLOT ("SlotSetAlpha()")); + settingsmenu.InsertItem ("&Alpha", display, TQ_SLOT ("SlotSetAlpha()")); //Setup the menubar menubar = new TQMenuBar (this, ""); @@ -144,20 +144,20 @@ namespace Qf { buttons.AddWidget (intense); //Connect the buttons and SlotQuit - TQObject.Connect (start, TQT_SIGNAL ("clicked()"), - this, TQT_SLOT ("SlotStart()")); - TQObject.Connect (stop, TQT_SIGNAL ("clicked()"), - this, TQT_SLOT ("SlotStop()")); - TQObject.Connect (reset, TQT_SIGNAL ("clicked()"), - this, TQT_SLOT ("SlotReset()")); - TQObject.Connect (gray, TQT_SIGNAL ("clicked()"), - this, TQT_SLOT ("SlotGray()")); - TQObject.Connect (intense, TQT_SIGNAL ("clicked()"), - this, TQT_SLOT ("SlotIntense()")); - TQObject.Connect (buffer, TQT_SIGNAL ("Painted()"), - this, TQT_SLOT ("SlotSetLabels()")); - TQObject.Connect (tqApp, TQT_SIGNAL ("lastWindowClosed ()"), - this, TQT_SLOT ("SlotQuit ()")); + TQObject.Connect (start, TQ_SIGNAL ("clicked()"), + this, TQ_SLOT ("SlotStart()")); + TQObject.Connect (stop, TQ_SIGNAL ("clicked()"), + this, TQ_SLOT ("SlotStop()")); + TQObject.Connect (reset, TQ_SIGNAL ("clicked()"), + this, TQ_SLOT ("SlotReset()")); + TQObject.Connect (gray, TQ_SIGNAL ("clicked()"), + this, TQ_SLOT ("SlotGray()")); + TQObject.Connect (intense, TQ_SIGNAL ("clicked()"), + this, TQ_SLOT ("SlotIntense()")); + TQObject.Connect (buffer, TQ_SIGNAL ("Painted()"), + this, TQ_SLOT ("SlotSetLabels()")); + TQObject.Connect (tqApp, TQ_SIGNAL ("lastWindowClosed ()"), + this, TQ_SLOT ("SlotQuit ()")); //Layout labels labels = new TQVBoxLayout (layout); 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); |