summaryrefslogtreecommitdiffstats
path: root/languages/ruby/app_templates/qtrubyapp/main.rb
diff options
context:
space:
mode:
Diffstat (limited to 'languages/ruby/app_templates/qtrubyapp/main.rb')
-rw-r--r--languages/ruby/app_templates/qtrubyapp/main.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/languages/ruby/app_templates/qtrubyapp/main.rb b/languages/ruby/app_templates/qtrubyapp/main.rb
new file mode 100644
index 00000000..6f4bceae
--- /dev/null
+++ b/languages/ruby/app_templates/qtrubyapp/main.rb
@@ -0,0 +1,10 @@
+require 'Qt'
+require '%{APPNAMELC}.rb'
+
+a = Qt::Application.new( ARGV )
+mw = %{APPNAMESC}.new
+mw.caption = "%{APPNAMESC}"
+mw.show
+a.connect( a, SIGNAL('lastWindowClosed()'), a, SLOT('quit()') )
+a.exec
+