Re: Trap closeEvent
Roy Souther <[email protected]> Mon, 06 Jun 2005 12:09:18 -0600
| Newsgroups | gmane.comp.kde.devel.perl |
|---|---|
| Organization | Silicon Tao Technology Systems Inc. |
| Message-ID | <1118081358.18164.28.camel@UtopiaPlanetia> |
Answer my own question. I must be having a bad day. Time to go find some
beer before I realy mess things up.
use Qt::slots
closeEvent => [ 'QEvent*' ];
sub closeEvent
{
$QEventPointer = shift;
if ( User has not selected an option yet )
{
$QEventPointer->ignore();
}
}
On Mon, 2005-06-06 at 11:56 -0600, Roy Souther wrote:
> 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
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) iD8DBQBCpJFNY62fql08qicRApvgAJ9rOCIGTLXBixoiWHZNV3F//AcaYACZAcV+ QWWDGvx8jRZ1Qs5XPqnTSEE= =0ENw -----END PGP SIGNATURE-----