Pavel Sanda wrote:
hi,
i needed to check some fileformat issues and was not able to compile
lyx 1.3svn anymore. with current versions of gcc 4.1 qt 3 and xforms.
xform won't link anomore, qt wont compile anymore, which is bit sad.
the qt bug is as follows and i was able to make it compile by deletion
of the problematic line at the cost of some crashes i got from time to
time. i don't have idea what is the problem, other use of boost:bind
seem to be alike, but maybe somebody remembering the boost::bind usage
could easily fix that(JMarc?).
So far as I understand, boost::bind is really just a convenience that
keeps you from having to define a new function just to bind one argument
of an existing function. (Think anonymous functions in Perl.) So it's
always a workaround just to define that new function explicitly and
connect to it instead.
rh
Index: frontends/qt2/QContentPane.C
===================================================================
--- frontends/qt2/QContentPane.C (revision 18768)
+++ frontends/qt2/QContentPane.C (working copy)
@@ -89,9 +89,6 @@
: QWidget(parent, "content_pane", WRepaintNoErase),
wa_(parent)
{
- synthetic_mouse_event_.timeout.timeout.connect(
- boost::bind(&QContentPane::generateSyntheticMouseEvent,
- this));
setFocusPolicy(QWidget::WheelFocus);
setFocus();