summaryrefslogtreecommitdiffstats
path: root/korundum/rubylib/tutorials
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-07-16 14:26:03 +0900
committerMichele Calgaro <[email protected]>2023-07-16 14:29:57 +0900
commit02712db157a9d5bedd962da3d7f9726b29057059 (patch)
treef4699344367184da9696cf97bc54f2d5427ef940 /korundum/rubylib/tutorials
parent1f00d69db7629853a25425ae5f3ca06d480e5430 (diff)
downloadtdebindings-02712db157a9d5bedd962da3d7f9726b29057059.tar.gz
tdebindings-02712db157a9d5bedd962da3d7f9726b29057059.zip
Drop compatibility code for TQButton
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'korundum/rubylib/tutorials')
-rw-r--r--korundum/rubylib/tutorials/p2/p2.rb23
1 files changed, 11 insertions, 12 deletions
diff --git a/korundum/rubylib/tutorials/p2/p2.rb b/korundum/rubylib/tutorials/p2/p2.rb
index a9647fef..50dce77f 100644
--- a/korundum/rubylib/tutorials/p2/p2.rb
+++ b/korundum/rubylib/tutorials/p2/p2.rb
@@ -1,12 +1,11 @@
-require 'Korundum'
-
- about = KDE::AboutData.new("p2", "Hello World", "0.1")
- KDE::CmdLineArgs.init(ARGV, about)
- a = KDE::Application.new()
- hello = TQt::PushButton.new( a.i18n("Hello World !"), nil )
- hello.autoResize = true
-
- a.mainWidget = hello
- hello.show
-
- a.exec \ No newline at end of file
+require 'Korundum'
+
+ about = KDE::AboutData.new("p2", "Hello World", "0.1")
+ KDE::CmdLineArgs.init(ARGV, about)
+ a = KDE::Application.new()
+ hello = TQt::PushButton.new( a.i18n("Hello World !"), nil )
+
+ a.mainWidget = hello
+ hello.show
+
+ a.exec