<br><br><div class="gmail_quote">On Sun, Sep 20, 2009 at 8:32 PM, Fernando Vilas <span dir="ltr">&lt;<a href="mailto:fvilas@iname.com">fvilas@iname.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
        I just committed the first pass at a port to KDE4 of the QIF module.  The only<br>
deprecated call warnings remaining are for qApp-&gt;mainWidget().  Has anyone<br>
resolved this one yet?<br>
<br>
        I considered getting the list from QApplication::topLevelWidgets() and just<br>
using the first value returned, but I didn&#39;t find anything that promised the<br>
order of the results.<br>
<br>
        Some other projects store the main widget in a static variable (we do too),<br>
for later reference.  The trouble is that this causes undefined references when<br>
building libconverter.  I can try to fix those, but I didn&#39;t want to introduce<br>
dependencies if I could avoid it.<br>
<br>
Thoughts?<br>
<font color="#888888"><br></font></blockquote></div><br>You could call topLevelWidgets and check the type for KXmlGuiWindow of whatever the type is for the main widget now. I think we can assume we will only have one of those per session.<br>