<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.2.2">
</HEAD>
<BODY>
Answer my own question. I must be having a bad day. Time to go find some beer before I realy mess things up.<BR>
<BR>
use Qt::slots<BR>
&nbsp;&nbsp;&nbsp; closeEvent =&gt; [ 'QEvent*' ];<BR>
<BR>
sub closeEvent<BR>
{<BR>
&nbsp;&nbsp;&nbsp; $QEventPointer = shift;<BR>
<BR>
&nbsp;&nbsp;&nbsp; if ( User has not selected an option yet )<BR>
&nbsp;&nbsp;&nbsp; {<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $QEventPointer-&gt;ignore();<BR>
&nbsp;&nbsp;&nbsp; }<BR>
}<BR>
<BR>
<BR>
On Mon, 2005-06-06 at 11:56 -0600, Roy Souther wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">I am trying to trap the close even but cannot get the syntax for the slot declaration.</FONT><BR>
    <BR>
    <FONT COLOR="#000000">use Qt::slots</FONT><BR>
    <FONT COLOR="#000000">&nbsp;&nbsp;&nbsp; closeEvent =&gt; [ Qt::Event ];</FONT><BR>
    <BR>
    <FONT COLOR="#000000">That is wrong but I don't know what it should be.&nbsp; I tried [ QEvent ] and a few other combinations.</FONT><BR>
    <BR>
    <FONT COLOR="#000000">When I get that working. What should the slot look like? Can I just use shift?</FONT><BR>
    <BR>
    <FONT COLOR="#000000">sub closeEvent</FONT><BR>
    <FONT COLOR="#000000">{</FONT><BR>
    <FONT COLOR="#000000">&nbsp;&nbsp;&nbsp; $QEventPointer = shift;</FONT><BR>
    <BR>
    <FONT COLOR="#000000">&nbsp;&nbsp;&nbsp; if ( User has not selected an option yet )</FONT><BR>
    <FONT COLOR="#000000">&nbsp;&nbsp;&nbsp; {</FONT><BR>
    <FONT COLOR="#000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $QEventPointer-&gt;ignore();</FONT><BR>
    <FONT COLOR="#000000">&nbsp;&nbsp;&nbsp; }</FONT><BR>
    <FONT COLOR="#000000">}</FONT><BR>
    <BR>
    <TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<U><A HREF="mailto:roy@SiliconTao.com">Roy Souther</A></U><BR>
<U><A HREF="http://www.SiliconTao.com">www.SiliconTao.com</A></U><BR>
Let Open Source help your business move beyond.<BR>
<BR>
For security this message is digitally authenticated by <U><A HREF="http://www.gnupg.org">GnuPG</A></U>.
</TD>
</TR>
</TABLE>
<BR>
<BR>
<BR>
<BR>
<BR>
</TD>
</TR>
</TABLE>
<PRE>
<FONT COLOR="#000000">_______________________________________________</FONT>
<FONT COLOR="#000000">Kde-perl mailing list</FONT>
<FONT COLOR="#000000"><A HREF="mailto:Kde-perl@kde.org">Kde-perl@kde.org</A></FONT>
<FONT COLOR="#000000"><A HREF="https://mail.kde.org/mailman/listinfo/kde-perl">https://mail.kde.org/mailman/listinfo/kde-perl</A></FONT>
</PRE>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<U><A HREF="mailto:roy@SiliconTao.com">Roy Souther</A></U><BR>
<U><A HREF="http://www.SiliconTao.com">www.SiliconTao.com</A></U><BR>
Let Open Source help your business move beyond.<BR>
<BR>
For security this message is digitally authenticated by <U><A HREF="http://www.gnupg.org">GnuPG</A></U>.
</TD>
</TR>
</TABLE>
<BR>
<BR>
<BR>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>