File: aclock.pl

package info (click to toggle)
libqt-perl 3.008-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 4,204 kB
  • ctags: 1,367
  • sloc: perl: 16,531; sh: 9,686; cpp: 6,711; makefile: 125
file content (13 lines) | stat: -rw-r--r-- 314 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/perl -w
use strict;
use Qt;
use AnalogClock;

my $a = Qt::Application(\@ARGV);
my $clock = AnalogClock;
$clock->setAutoMask(1) if @ARGV and $ARGV[0] eq '-transparent';
$clock->resize(100, 100);
$a->setMainWidget($clock);
$clock->setCaption("PerlQt example - Analog Clock");
$clock->show;
exit $a->exec;