This patch is supposed to fix the disappearing menus problem on
Qt/Mac. Bennett, could you tell me whether it helps you? I am not even
sure that it compiles for qt/mac, actually :)

It should be very transparent for qt/x11.

I guess I should use some scoped_ptr instead of handling my own
pointer, though.

JMarc

<qtmenus.diff>

Compilation bombs; here's the last bit of the output:

Making all in frontends
Making all in controllers
make[4]: Nothing to be done for `all'.
Making all in qt2
Making all in ui
Making all in .
make[6]: Nothing to be done for `all-am'.
Making all in moc
make[6]: Nothing to be done for `all'.
Making all in moc
make[5]: Nothing to be done for `all'.
source='QLMenubar.C' object='QLMenubar.lo' libtool=yes \
depfile='.deps/QLMenubar.Plo' tmpdepfile='.deps/QLMenubar.TPlo' \
depmode=gcc3 /bin/sh ../../../config/depcomp \
/bin/sh ../../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../../src -I../../../src/ -I../../../src/frontends/ -I../../../images -I/Users/bennett/lyx/qt-mac-free-3.3.2/include -I../../../boost -I../../../src/frontends/controllers -I/Applications/LyX-140.app/Contents/Resources/include -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_TRANSLATION -g -O -fno-exceptions -W -Wall -c -o QLMenubar.lo `test -f 'QLMenubar.C' || echo './'`QLMenubar.C
g++ -DHAVE_CONFIG_H -I. -I. -I../../../src -I../../../src/ -I../../../src/frontends/ -I../../../images -I/Users/bennett/lyx/qt-mac-free-3.3.2/include -I../../../boost -I../../../src/frontends/controllers -I/Applications/LyX-140.app/Contents/Resources/include -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_TRANSLATION -g -O -fno-exceptions -W -Wall -c QLMenubar.C -MT QLMenubar.lo -MD -MP -MF .deps/QLMenubar.TPlo
In file included from ../../../boost/boost/type_traits/is_arithmetic.hpp:13,
from ../../../boost/boost/type_traits/is_scalar.hpp:12,
from ../../../boost/boost/type_traits/is_pod.hpp:14,
from ../../../boost/boost/type_traits/has_trivial_assign.hpp:14,
from ../../../boost/boost/type_traits/has_nothrow_assign.hpp:12,
from ../../../boost/boost/type_traits.hpp:19,
from ../../../boost/boost/signals/trackable.hpp:13,
from ../../../src/frontends/LyXView.h:19,
from QtView.h:19,
from QLMenubar.C:15:
../../../boost/boost/type_traits/is_float.hpp:21: warning: use of `long double'
type; its size may change in a future release
../../../boost/boost/type_traits/is_float.hpp:21: warning: (Long double usage
is reported only once for each file.
../../../boost/boost/type_traits/is_float.hpp:21: warning: To disable this
warning, use -Wno-long-double.)
QLMenubar.C: In constructor `lyx::frontend::QLMenubar::QLMenubar(LyXView*,
const MenuBackend&)':
QLMenubar.C:35: error: parse error before `(' token
QLMenubar.C: At global scope:
QLMenubar.C:60: error: definition of implicitly-declared `virtual
lyx::frontend::QLMenubar::~QLMenubar()'
make[5]: *** [QLMenubar.lo] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1




Reply via email to