Trap closeEvent

Roy Souther <[email protected]> Mon, 06 Jun 2005 11:56:19 -0600
Newsgroups gmane.comp.kde.devel.perl
Organization Silicon Tao Technology Systems Inc.
Message-ID <1118080579.18164.26.camel@UtopiaPlanetia>
I am trying to trap the close even but cannot get the syntax for the
slot declaration.

use Qt::slots
    closeEvent => [ Qt::Event ];

That is wrong but I don't know what it should be.  I tried [ QEvent ]
and a few other combinations.

When I get that working. What should the slot look like? Can I just use
shift?

sub closeEvent
{
    $QEventPointer = shift;

    if ( User has not selected an option yet )
    {
        $QEventPointer->ignore();
    }
}


Roy Souther
www.SiliconTao.com
Let Open Source help your business move beyond.

For security this message is digitally authenticated by GnuPG.

_______________________________________________
Kde-perl mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-perl
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBCpI5DY62fql08qicRAgOWAJ49KxKWJfHlMbOFV1FoPXnpf2l6YwCgmMmS
RK0V7Fe2uqVuKEZHDNkITBU=
=y8FF
-----END PGP SIGNATURE-----