diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 16:20:48 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 16:20:48 -0600 |
commit | e63beeb5bdb82987b1e00bc35178667786fbad48 (patch) | |
tree | ab77b6ac830b7944d5d1eb9ce8f81feb8fdab948 /qtsharp/src/examples/samples/display.cs | |
parent | 67557a2b56c0678c22ab1b00c4fd0224c5e9ed99 (diff) | |
download | tdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.tar.gz tdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.zip |
Fix incorrect conversion
Diffstat (limited to 'qtsharp/src/examples/samples/display.cs')
-rw-r--r-- | qtsharp/src/examples/samples/display.cs | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/qtsharp/src/examples/samples/display.cs b/qtsharp/src/examples/samples/display.cs index 00703b4b..9f2f4939 100644 --- a/qtsharp/src/examples/samples/display.cs +++ b/qtsharp/src/examples/samples/display.cs @@ -3,20 +3,20 @@ namespace QtSamples { using Qt; using System; - public class Display : TTQMainWindow { + public class Display : TQMainWindow { private TextArea textarea; - private TTQScrollView scrollview; - private TTQMenuBar menubar; - private TTQPopupMenu filemenu, aboutmenu; + private TQScrollView scrollview; + private TQMenuBar menubar; + private TQPopupMenu filemenu, aboutmenu; - private class TextArea : TTQTextEdit { + private class TextArea : TQTextEdit { - public TextArea (TTQWidget parent) : base (parent) + public TextArea (TQWidget parent) : base (parent) { - TTQFile file = new TTQFile ("display.cs"); + TQFile file = new TQFile ("display.cs"); if ( file.Open(1) ) { - TTQTextStream ts = new TTQTextStream (file); + TQTextStream ts = new TQTextStream (file); this.SetText (ts.Read ()); this.SetTabStopWidth (30); } @@ -25,13 +25,13 @@ namespace QtSamples { public Display () { - filemenu = new TTQPopupMenu (null, "filemenu"); + filemenu = new TQPopupMenu (null, "filemenu"); filemenu.InsertItem ("&Quit", qApp, TQT_SLOT ("quit()")); - aboutmenu = new TTQPopupMenu(null, "aboutmenu"); + aboutmenu = new TQPopupMenu(null, "aboutmenu"); aboutmenu.InsertItem("&About Qt-Sharp", this, TQT_SLOT("slotAbout()")); - menubar = new TTQMenuBar(this, ""); + menubar = new TQMenuBar(this, ""); menubar.InsertItem("&File", filemenu); menubar.InsertItem("&About", aboutmenu); @@ -42,7 +42,7 @@ namespace QtSamples { public void slotAbout () { - TTQMessageBox.Information ( + TQMessageBox.Information ( this, "About Qt-Sharp-0.7", "A Qt (http://www.trolltech.com) to C# language binding.\n" + "Qt-Sharp is compatible with Mono (http://go-mono.org) and\n" + @@ -53,7 +53,7 @@ namespace QtSamples { public static void Main (String[] args) { - TTQApplication app = new TTQApplication (args); + TQApplication app = new TQApplication (args); Display demo = new Display (); demo.SetCaption ("Qt-Sharp-0.7!"); app.SetMainWidget (demo); |