Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Apr 2016 19:27:35 +0200
From:      Raphael Kubo da Costa <rakuco@FreeBSD.org>
To:        freebsd-ports@freebsd.org
Subject:   Re: Need some help with c++/qt5 code
Message-ID:  <8637qmbx4o.fsf@FreeBSD.org>
References:  <570F85E3.6060000@ShaneWare.Biz> <CC7B253B-DE3B-4049-96D8-A06DB52A0346@FreeBSD.org> <86inzjdq4w.fsf@FreeBSD.org> <571118B0.3020806@ShaneWare.Biz>

next in thread | previous in thread | raw e-mail | index | archive | help
Shane Ambler <FreeBSD@ShaneWare.Biz> writes:

>> I agree. Maybe using Q_GLOBAL_STATIC helps?
>>
>> - Remove m_table from TPanelFactory.
>> - In pane.cpp, you do something like this:
>>
>>    typedef QMap<QString, TPanelFactory *> PanelMapType;
>>    Q_GLOBAL_STATIC(PanelMapType, s_panelMap);
>>
>>    you then need to replace uses of m_table with s_panelMap and use
>>    s_panelMap->operation() instead of m_table.operation().
>
> Thanks that does the trick.

I'm glad it worked :-) It's a good candidate for upstreaming if you're
working with them.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8637qmbx4o.fsf>