add

#include <QMouseEvent>


to iconpalette.cpp

?

-----Original Message-----
From: Bennett Helm [mailto:[EMAIL PROTECTED]
Sent: Wed 6/13/07 14:44
To: Leuven, E.
Cc: Bo Peng; LyX-Devel Mechanics
Subject: Re: tear-off math panels
 
On Jun 13, 2007, at 8:39 AM, Leuven, E. wrote:

> > i would like the menu to close after clicking on a symbol when it  
> is not
> > torn off
> >
> > when the menu is torn off i'd like it close only when clicking on  
> the
> > close button
>
> perhaps some more can try the attached?
>
> it work flawlessly for me

Won't compile for me:

/bin/sh ../../../libtool --tag=CXX   --mode=compile g++ - 
DHAVE_CONFIG_H -I. -I../../../src  -DQT_CLEAN_NAMESPACE - 
DQT_GENUINE_STR -DQT_NO_STL -DQT_NO_KEYWORDS -Winvalid-pch -- 
include=./pch.h -I../../../src -I../../../src/frontends -I../../../ 
images -I/Users/bennett/lyx/qt-4.3-install/include -I/Users/bennett/ 
lyx/qt-4.3-install/include/QtCore -I/Users/bennett/lyx/qt-4.3-install/ 
include/QtGui   -I../../../boost -I../../../src/frontends/controllers  
-Wextra -Wall    -g -Os -MT IconPalette.lo -MD -MP -MF .deps/ 
IconPalette.Tpo -c -o IconPalette.lo IconPalette.cpp
g++ -DHAVE_CONFIG_H -I. -I../../../src -DQT_CLEAN_NAMESPACE - 
DQT_GENUINE_STR -DQT_NO_STL -DQT_NO_KEYWORDS -Winvalid-pch -- 
include=./pch.h -I../../../src -I../../../src/frontends -I../../../ 
images -I/Users/bennett/lyx/qt-4.3-install/include -I/Users/bennett/ 
lyx/qt-4.3-install/include/QtCore -I/Users/bennett/lyx/qt-4.3-install/ 
include/QtGui -I../../../boost -I../../../src/frontends/controllers - 
Wextra -Wall -g -Os -MT IconPalette.lo -MD -MP -MF .deps/ 
IconPalette.Tpo -c IconPalette.cpp -o IconPalette.o
IconPalette.cpp: In member function 'virtual void  
lyx::frontend::MathButton::mouseReleaseEvent(QMouseEvent*)':
IconPalette.cpp:51: error: invalid use of undefined type 'struct  
QMouseEvent'
/Users/bennett/lyx/qt-4.3-install/include/QtGui/qwidget.h:55: error:  
forward declaration of 'struct QMouseEvent'

Bennett



Reply via email to