>>>>> "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:
Jean-Marc> I get the following error when compiling: Angus' fix allowed me to go further, and then I needed the patch below (already committed) to finish. The problem now is that with lyx-qt, I get a crash as soon as I try to create an external inset. The relevant part of the backtrace is #2 0x0831dde2 in lyx::external::Template::Template (this=0xbfffdcd0, [EMAIL PROTECTED]) at ../../../../lyx-devel/src/frontends/controllers/ControlExternal.C:134 #3 0x0824dcd8 in ControlExternal::getTemplate (this=0x852d538, i=-1) at ../../../../lyx-devel/src/frontends/controllers/ControlExternal.C:134 #4 0x0819b1dc in QExternal::updateTemplate (this=0x8558350) at ../../../../lyx-devel/src/frontends/qt2/QExternal.C:379 #5 0x0819af84 in QExternal::update_contents (this=0x8558350) at ../../../../lyx-devel/src/frontends/qt2/QExternal.C:353 Note the id=-1 in #3. Angus? JMarc
Index: ChangeLog =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/qt2/ChangeLog,v retrieving revision 1.625 diff -u -p -r1.625 ChangeLog --- ChangeLog 9 Dec 2003 10:33:55 -0000 1.625 +++ ChangeLog 9 Dec 2003 13:18:11 -0000 @@ -1,3 +1,8 @@ +2003-12-09 Jean-Marc Lasgouttes <[EMAIL PROTECTED]> + + * lengthvalidator.[Ch] (LengthValidator): change the constructor to + take a QWidget* instead of QObject*. + 2003-12-09 Angus Leeming <[EMAIL PROTECTED]> * checkedwidgets.C (setWarningColor): new function that should Index: lengthvalidator.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/qt2/lengthvalidator.C,v retrieving revision 1.1 diff -u -p -r1.1 lengthvalidator.C --- lengthvalidator.C 5 Dec 2003 02:49:22 -0000 1.1 +++ lengthvalidator.C 9 Dec 2003 13:18:11 -0000 @@ -22,7 +22,7 @@ using lyx::support::isStrDbl; using std::string; -LengthValidator::LengthValidator(QObject * parent, const char * name) +LengthValidator::LengthValidator(QWidget * parent, const char * name) : QValidator(parent, name), no_bottom_(true) {} Index: lengthvalidator.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/qt2/lengthvalidator.h,v retrieving revision 1.1 diff -u -p -r1.1 lengthvalidator.h --- lengthvalidator.h 5 Dec 2003 02:49:22 -0000 1.1 +++ lengthvalidator.h 9 Dec 2003 13:18:11 -0000 @@ -20,7 +20,7 @@ class Q_EXPORT LengthValidator : public { Q_OBJECT public: - LengthValidator(QObject * parent, const char *name = 0); + LengthValidator(QWidget * parent, const char *name = 0); QValidator::State validate(QString &, int &) const;