[Kde-bindings] KDE/kdebindings/csharp/qyoto
Arno Rehn
kde at arnorehn.de
Mon May 28 13:58:24 UTC 2007
SVN commit 669101 by arnorehn:
* Updated the code of the first tutorials to be more like C++ ones.
CCMAIL: kde-bindings at kde.org
M +4 -0 ChangeLog
M +1 -2 examples/tutorial/t1/t1.cs
M +3 -3 examples/tutorial/t2/t2.cs
M +0 -1 examples/tutorial/t4/t4.cs
M +1 -1 examples/tutorial/t5/t5.cs
--- trunk/KDE/kdebindings/csharp/qyoto/ChangeLog #669100:669101
@@ -1,3 +1,7 @@
+2007-05-28 Arno Rehn <arno at arnorehn.de>
+
+ * Updated the code of the first tutorials to be more like C++ ones.
+
2007-05-28 Richard Dale <rdale at foton.es>
* Further simplified the marshalling of primitive reference types. As
--- trunk/KDE/kdebindings/csharp/qyoto/examples/tutorial/t1/t1.cs #669100:669101
@@ -6,8 +6,7 @@
public static int Main(String[] args) {
QApplication app = new QApplication(args);
QPushButton hello = new QPushButton("Hello world!");
- QLabel label = new QLabel(hello);
- hello.Resize(100, 30);
+ hello.Resize(100, 30);
hello.Show();
return QApplication.Exec();
}
--- trunk/KDE/kdebindings/csharp/qyoto/examples/tutorial/t2/t2.cs #669100:669101
@@ -4,13 +4,13 @@
public class T2 : Qt
{
public static int Main(String[] args) {
- QApplication a = new QApplication(args);
+ QApplication app = new QApplication(args);
- QPushButton quit = new QPushButton( "Quit", null );
+ QPushButton quit = new QPushButton( "Quit" );
quit.Resize( 75, 30 );
quit.Font = new QFont( "Times", 18, (int) QFont.Weight.Bold );
- QObject.Connect( quit, SIGNAL("clicked()"), a, SLOT("quit()") );
+ QObject.Connect( quit, SIGNAL("clicked()"), app, SLOT("quit()") );
quit.Show();
return QApplication.Exec();
--- trunk/KDE/kdebindings/csharp/qyoto/examples/tutorial/t4/t4.cs #669100:669101
@@ -19,7 +19,6 @@
new QApplication(args);
MyWidget w = new MyWidget();
- w.SetGeometry( 100, 100, 200, 120 );
w.Show();
return QApplication.Exec();
}
--- trunk/KDE/kdebindings/csharp/qyoto/examples/tutorial/t5/t5.cs #669100:669101
@@ -18,7 +18,7 @@
Connect(quit, SIGNAL("clicked()"), qApp, SLOT("quit()"));
Connect(slider, SIGNAL("valueChanged(int)"),
- lcd, SLOT("display(int)"));
+ lcd, SLOT("display(int)"));
QVBoxLayout layout = new QVBoxLayout();
layout.AddWidget(quit);
More information about the Kde-bindings
mailing list