John,

I take it that these become redundant too when I apply you qt2 patch to alter 
lyxfunc.C, minibuffer.C:

for i in Color.h Color.C DropDown.h DropDown.C Tooltips.h Tooltips.C 
xformsGImage.C xformsGImage.h xforms_helpers.h xforms_helpers.C; do \
        ln -sf "../../../../../devel/src/frontends/xforms/$i" . ; \

I have had to make a number of small changes to the source to get the code to 
compile. Currently, I'm stuck in qfont_metrics.C

cxx: Error: ../../../../devel/src/frontends/qt2/qfont_metrics.C, line 116: 
#1251
          call of an object of a class type without appropriate operator() or
          conversion functions to pointer-to-function type
        QFontMetrics const & metrics(metrics(f));
-------------------------------------^

I'm not sure what to do here as the code makes no sense...

void rectText(string const & str, LyXFont const & f,
        int & w,
        int & ascent, 
        int & descent)
{
        QFontMetrics const & metrics(metrics(f));
 
        w = width(str, f);
        ascent = metrics.ascent();
        descent = metrics.descent();
}

Angus

Reply via email to