Need some help with c++/qt5 code
Raphael Kubo da Costa
rakuco at FreeBSD.org
Fri Apr 15 17:27:52 UTC 2016
Shane Ambler <FreeBSD at 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.
More information about the freebsd-ports
mailing list