<div dir="ltr"><br><br><div class="gmail_quote">2008/9/1 Marcel Wiesweg <span dir="ltr"><<a href="mailto:marcel.wiesweg@gmx.de">marcel.wiesweg@gmx.de</a>></span><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 found out that some DBus communication from ioslave to main app is a bit<br>
broken (for db change notification). Debugging that, I have come to a point<br>
where I want to persuade moc to put the Digikam namespace in front of signal<br>
parameters. Easiest is to put it there in code as well, but does anyone know<br>
if this is legal C++ (or if it will be rejected by strict compilers on other<br>
platforms?):<br>
<br>
namespace Digikam<br>
{<br>
<br>
class MyClass : public QObject<br>
{<br>
Q_OBJECT<br>
signal:<br>
        void mySignal(const Digikam::MyDigikamObject &);<br>
        // I mean the extra "Digikam::" in the previous line<br>
};<br>
<br>
}<br>
<br>
Thanks<br>
Marcel<br></blockquote></div><br>Marcel,<br><br>Using namespace X into a code wrapped with X namespace will generate an error if the right option from gcc is enable, else it will be fine. I don't know other compilers...<br>
<br>But in your case, this will not be a compiler problem, but a Qt moc pre-compiler issue. unforget than signal and slots are formated to standard C++ by moc before to be played by GCC. So, i think it will fine for us.<br>
<br>Best<br><br>Gilles<br></div>