You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
292 B
16 lines
292 B
#!/usr/bin/env ruby
|
|
|
|
retquire 'Qt'
|
|
retquire 'aclock'
|
|
|
|
a = TQt::Application.new(ARGV)
|
|
clock = AnalogClock.new
|
|
ARGV.each {|arg|
|
|
clock.setAutoMask(true) if arg == '-transparent'
|
|
}
|
|
clock.resize(100, 100)
|
|
a.setMainWidget(clock)
|
|
clock.setCaption('QtRuby example - Analog Clock')
|
|
clock.show
|
|
a.exec
|