summaryrefslogtreecommitdiffstats
path: root/qtsharp/src/examples/samples/display.cs
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:44:01 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:44:01 +0000
commit479f5f799523bffbcc83dff581a2299c047c6fff (patch)
tree186aae707ed02aac6c7cab2fb14e97f72aca5e36 /qtsharp/src/examples/samples/display.cs
parentf1dbff6145c98324ff82e34448b7483727e8ace4 (diff)
downloadtdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.tar.gz
tdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1157645 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'qtsharp/src/examples/samples/display.cs')
-rw-r--r--qtsharp/src/examples/samples/display.cs30
1 files changed, 15 insertions, 15 deletions
diff --git a/qtsharp/src/examples/samples/display.cs b/qtsharp/src/examples/samples/display.cs
index b1c7ca10..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 : QMainWindow {
+ public class Display : TQMainWindow {
private TextArea textarea;
- private QScrollView scrollview;
- private QMenuBar menubar;
- private QPopupMenu filemenu, aboutmenu;
+ private TQScrollView scrollview;
+ private TQMenuBar menubar;
+ private TQPopupMenu filemenu, aboutmenu;
- private class TextArea : QTextEdit {
+ private class TextArea : TQTextEdit {
- public TextArea (QWidget parent) : base (parent)
+ public TextArea (TQWidget parent) : base (parent)
{
- QFile file = new QFile ("display.cs");
+ TQFile file = new TQFile ("display.cs");
if ( file.Open(1) ) {
- QTextStream ts = new QTextStream (file);
+ TQTextStream ts = new TQTextStream (file);
this.SetText (ts.Read ());
this.SetTabStopWidth (30);
}
@@ -25,13 +25,13 @@ namespace QtSamples {
public Display ()
{
- filemenu = new QPopupMenu (null, "filemenu");
- filemenu.InsertItem ("&Quit", qApp, SLOT ("quit()"));
+ filemenu = new TQPopupMenu (null, "filemenu");
+ filemenu.InsertItem ("&Quit", qApp, TQT_SLOT ("quit()"));
- aboutmenu = new QPopupMenu(null, "aboutmenu");
- aboutmenu.InsertItem("&About Qt-Sharp", this, SLOT("slotAbout()"));
+ aboutmenu = new TQPopupMenu(null, "aboutmenu");
+ aboutmenu.InsertItem("&About Qt-Sharp", this, TQT_SLOT("slotAbout()"));
- menubar = new QMenuBar(this, "");
+ menubar = new TQMenuBar(this, "");
menubar.InsertItem("&File", filemenu);
menubar.InsertItem("&About", aboutmenu);
@@ -42,7 +42,7 @@ namespace QtSamples {
public void slotAbout ()
{
- QMessageBox.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)
{
- QApplication app = new QApplication (args);
+ TQApplication app = new TQApplication (args);
Display demo = new Display ();
demo.SetCaption ("Qt-Sharp-0.7!");
app.SetMainWidget (demo);