From 90825e2392b2d70e43c7a25b8a3752299a933894 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- korundum/rubylib/tutorials/p1/p1.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 korundum/rubylib/tutorials/p1/p1.rb (limited to 'korundum/rubylib/tutorials/p1') diff --git a/korundum/rubylib/tutorials/p1/p1.rb b/korundum/rubylib/tutorials/p1/p1.rb new file mode 100644 index 00000000..87e5e1b9 --- /dev/null +++ b/korundum/rubylib/tutorials/p1/p1.rb @@ -0,0 +1,13 @@ +require 'Qt' + + a = Qt::Application.new( ARGV ) + + hello = Qt::PushButton.new( "Hello world!", nil ) + hello.resize( 100, 30 ) + + Qt::Object::connect( hello, SIGNAL('clicked()'), a, SLOT('quit()') ) + + a.setMainWidget( hello ) + hello.show() + + a.exec() \ No newline at end of file -- cgit v1.2.1