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
221 B
16 lines
221 B
13 years ago
|
package TQt::enumerations;
|
||
13 years ago
|
#
|
||
|
# Proposed usage:
|
||
|
#
|
||
|
# package MyWidget;
|
||
|
#
|
||
13 years ago
|
# use TQt::enumerations MyInfo => {
|
||
13 years ago
|
# Foo => 1,
|
||
|
# Bar => 10,
|
||
|
# Baz => 64
|
||
|
# };
|
||
|
#
|
||
13 years ago
|
# use TQt::enumerations MyInfo => [qw(Foo Bar Baz)];
|
||
13 years ago
|
#
|
||
|
1;
|