trunk doesn't compile with Qt 4.2.1

2008-05-16 Thread Dov Feldstern
Hi! I'm getting the following error on linux, qt 4.2.1: GuiApplication.cpp: In member function 'QAbstractItemModel* lyx::frontend::GuiApplication::languageModel()': GuiApplication.cpp:479: error: 'class QSortFilterProxyModel' has no member named 'setSortLocaleAware' Thanks! Dov (Sorry if

Re: trunk doesn't compile with Qt 4.2.1

2008-05-16 Thread Pavel Sanda
Dov Feldstern wrote: I'm getting the following error on linux, qt 4.2.1: unfortunatelly 4.3 thing :( some ifdefs will be needed. GuiApplication.cpp: In member function 'QAbstractItemModel* lyx::frontend::GuiApplication::languageModel()': GuiApplication.cpp:479: error: 'class

Re: trunk doesn't compile with Qt 4.2.1

2008-05-16 Thread Abdelrazak Younes
Dov Feldstern wrote: Hi! I'm getting the following error on linux, qt 4.2.1: GuiApplication.cpp: In member function 'QAbstractItemModel* lyx::frontend::GuiApplication::languageModel()': GuiApplication.cpp:479: error: 'class QSortFilterProxyModel' has no member named 'setSortLocaleAware'

trunk doesn't compile with Qt 4.2.1

2008-05-16 Thread Dov Feldstern
Hi! I'm getting the following error on linux, qt 4.2.1: GuiApplication.cpp: In member function 'QAbstractItemModel* lyx::frontend::GuiApplication::languageModel()': GuiApplication.cpp:479: error: 'class QSortFilterProxyModel' has no member named 'setSortLocaleAware' Thanks! Dov (Sorry if

Re: trunk doesn't compile with Qt 4.2.1

2008-05-16 Thread Pavel Sanda
Dov Feldstern wrote: > I'm getting the following error on linux, qt 4.2.1: unfortunatelly 4.3 thing :( some ifdefs will be needed. > GuiApplication.cpp: In member function 'QAbstractItemModel* > lyx::frontend::GuiApplication::languageModel()': > GuiApplication.cpp:479: error: 'class

Re: trunk doesn't compile with Qt 4.2.1

2008-05-16 Thread Abdelrazak Younes
Dov Feldstern wrote: Hi! I'm getting the following error on linux, qt 4.2.1: GuiApplication.cpp: In member function 'QAbstractItemModel* lyx::frontend::GuiApplication::languageModel()': GuiApplication.cpp:479: error: 'class QSortFilterProxyModel' has no member named 'setSortLocaleAware'

Re: [patch] Re: trunk doesn't compile, GuiPrefs, Qt 4.2.1

2007-10-24 Thread Jean-Marc Lasgouttes
Andre Poenitz [EMAIL PROTECTED] writes: So the QBrush constructor can take a char const * as parameter but not a QString? That is braindead! It doesn't. Whatever. The code I removed was like QBrush(black), and it did presumably compile. JMarc

Re: [patch] Re: trunk doesn't compile, GuiPrefs, Qt 4.2.1

2007-10-24 Thread Andre Poenitz
On Wed, Oct 24, 2007 at 12:18:52PM +0200, Jean-Marc Lasgouttes wrote: Andre Poenitz [EMAIL PROTECTED] writes: So the QBrush constructor can take a char const * as parameter but not a QString? That is braindead! It doesn't. Whatever. The code I removed was like QBrush(black), and it

Re: [patch] Re: trunk doesn't compile, GuiPrefs, Qt 4.2.1

2007-10-24 Thread Jean-Marc Lasgouttes
Andre Poenitz [EMAIL PROTECTED] writes: Unlikely. Maybe QColor(black). http://www.lyx.org/trac/changeset/21118 Of course I have to assume that Bo's code worked. It disturbs me a bit that unfounded accusations are now also trickling in from your side. We have this new saying in France:

Re: [patch] Re: trunk doesn't compile, GuiPrefs, Qt 4.2.1

2007-10-24 Thread Jean-Marc Lasgouttes
Andre Poenitz <[EMAIL PROTECTED]> writes: >> So the QBrush constructor can take a char const * as parameter but not >> a QString? That is braindead! > > It doesn't. Whatever. The code I removed was like QBrush("black"), and it did presumably compile. JMarc

Re: [patch] Re: trunk doesn't compile, GuiPrefs, Qt 4.2.1

2007-10-24 Thread Andre Poenitz
On Wed, Oct 24, 2007 at 12:18:52PM +0200, Jean-Marc Lasgouttes wrote: > Andre Poenitz <[EMAIL PROTECTED]> writes: > > >> So the QBrush constructor can take a char const * as parameter but not > >> a QString? That is braindead! > > > > It doesn't. > > Whatever. The code I removed was like

Re: [patch] Re: trunk doesn't compile, GuiPrefs, Qt 4.2.1

2007-10-24 Thread Jean-Marc Lasgouttes
Andre Poenitz <[EMAIL PROTECTED]> writes: > Unlikely. Maybe QColor("black"). http://www.lyx.org/trac/changeset/21118 Of course I have to assume that Bo's code worked. > It disturbs me a bit that unfounded accusations are now also trickling > in from your side. We have this new saying in

Re: [patch] Re: trunk doesn't compile, GuiPrefs, Qt 4.2.1

2007-10-23 Thread Jean-Marc Lasgouttes
Bo Peng [EMAIL PROTECTED] writes: #if QT_VERSION = 0x040200 - item-setForeground(0, QBrush(color)); - item-setForeground(1, QBrush(color)); + item-setForeground(0, QBrush(QColor(color))); + item-setForeground(1, QBrush(QColor(color))); #else

Re: [patch] Re: trunk doesn't compile, GuiPrefs, Qt 4.2.1

2007-10-23 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: Bo Peng [EMAIL PROTECTED] writes: #if QT_VERSION = 0x040200 - item-setForeground(0, QBrush(color)); - item-setForeground(1, QBrush(color)); + item-setForeground(0, QBrush(QColor(color))); + item-setForeground(1, QBrush(QColor(color)));

Re: [patch] Re: trunk doesn't compile, GuiPrefs, Qt 4.2.1

2007-10-23 Thread Jean-Marc Lasgouttes
Abdelrazak Younes [EMAIL PROTECTED] writes: You are probably confused, QBrush doesn't take a QString nor a char *, it needs a QColor. But QColor can take both: QColor ( const QString name ) QColor ( const char * name ) All I know is that the code I removed was like: -#if QT_VERSION =

Re: [patch] Re: trunk doesn't compile, GuiPrefs, Qt 4.2.1

2007-10-23 Thread Andre Poenitz
On Tue, Oct 23, 2007 at 09:22:28AM +0200, Jean-Marc Lasgouttes wrote: Bo Peng [EMAIL PROTECTED] writes: #if QT_VERSION = 0x040200 - item-setForeground(0, QBrush(color)); - item-setForeground(1, QBrush(color)); + item-setForeground(0, QBrush(QColor(color))); +

Re: [patch] Re: trunk doesn't compile, GuiPrefs, Qt 4.2.1

2007-10-23 Thread Jean-Marc Lasgouttes
"Bo Peng" <[EMAIL PROTECTED]> writes: >> #if QT_VERSION >= 0x040200 >> - item->setForeground(0, QBrush(color)); >> - item->setForeground(1, QBrush(color)); >> + item->setForeground(0, QBrush(QColor(color))); >> + item->setForeground(1, QBrush(QColor(color))); >> #else >>

Re: [patch] Re: trunk doesn't compile, GuiPrefs, Qt 4.2.1

2007-10-23 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: "Bo Peng" <[EMAIL PROTECTED]> writes: #if QT_VERSION >= 0x040200 - item->setForeground(0, QBrush(color)); - item->setForeground(1, QBrush(color)); + item->setForeground(0, QBrush(QColor(color))); + item->setForeground(1,

Re: [patch] Re: trunk doesn't compile, GuiPrefs, Qt 4.2.1

2007-10-23 Thread Jean-Marc Lasgouttes
Abdelrazak Younes <[EMAIL PROTECTED]> writes: > You are probably confused, QBrush doesn't take a QString nor a char *, > it needs a QColor. But QColor can take both: > > QColor ( const QString & name ) > QColor ( const char * name ) All I know is that the code I removed was like: -#if QT_VERSION

Re: [patch] Re: trunk doesn't compile, GuiPrefs, Qt 4.2.1

2007-10-23 Thread Andre Poenitz
On Tue, Oct 23, 2007 at 09:22:28AM +0200, Jean-Marc Lasgouttes wrote: > "Bo Peng" <[EMAIL PROTECTED]> writes: > > >> #if QT_VERSION >= 0x040200 > >> - item->setForeground(0, QBrush(color)); > >> - item->setForeground(1, QBrush(color)); > >> + item->setForeground(0,

trunk doesn't compile, GuiPrefs, Qt 4.2.1

2007-10-22 Thread Dov Feldstern
make[6]: Entering directory `/home/dovf/lyx-trunk/src/frontends/qt4' if /bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../../src -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_STL -DQT_NO_KEYWO RDS -I../../../src -I../../../src/frontends -I../../../images

[patch] Re: trunk doesn't compile, GuiPrefs, Qt 4.2.1

2007-10-22 Thread Dov Feldstern
The attached seems to fix it, it would be good if somebody who actually knows Qt could confirm... Dov Feldstern wrote: make[6]: Entering directory `/home/dovf/lyx-trunk/src/frontends/qt4' if /bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../../src

Re: [patch] Re: trunk doesn't compile, GuiPrefs, Qt 4.2.1

2007-10-22 Thread Bo Peng
#if QT_VERSION = 0x040200 - item-setForeground(0, QBrush(color)); - item-setForeground(1, QBrush(color)); + item-setForeground(0, QBrush(QColor(color))); + item-setForeground(1, QBrush(QColor(color))); #else item-setTextColor(0, QColor(color));

Re: [patch] Re: trunk doesn't compile, GuiPrefs, Qt 4.2.1

2007-10-22 Thread Dov Feldstern
Bo Peng wrote: #if QT_VERSION = 0x040200 - item-setForeground(0, QBrush(color)); - item-setForeground(1, QBrush(color)); + item-setForeground(0, QBrush(QColor(color))); + item-setForeground(1, QBrush(QColor(color))); #else item-setTextColor(0, QColor(color));

Re: [patch] Re: trunk doesn't compile, GuiPrefs, Qt 4.2.1

2007-10-22 Thread Andre Poenitz
On Mon, Oct 22, 2007 at 08:23:39PM +0200, Dov Feldstern wrote: The attached seems to fix it, it would be good if somebody who actually knows Qt could confirm... That's fine. If colors have to be hardcoded I'd use Qt::black, Qt::green etc or RGB values, not a string name. Andre'

Re: [patch] Re: trunk doesn't compile, GuiPrefs, Qt 4.2.1

2007-10-22 Thread Bo Peng
On 10/22/07, Andre Poenitz [EMAIL PROTECTED] wrote: On Mon, Oct 22, 2007 at 08:23:39PM +0200, Dov Feldstern wrote: The attached seems to fix it, it would be good if somebody who actually knows Qt could confirm... That's fine. If colors have to be hardcoded I'd use Qt::black, Qt::green etc

trunk doesn't compile, GuiPrefs, Qt 4.2.1

2007-10-22 Thread Dov Feldstern
make[6]: Entering directory `/home/dovf/lyx-trunk/src/frontends/qt4' if /bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../../src -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_STL -DQT_NO_KEYWO RDS -I../../../src -I../../../src/frontends -I../../../images

[patch] Re: trunk doesn't compile, GuiPrefs, Qt 4.2.1

2007-10-22 Thread Dov Feldstern
The attached seems to fix it, it would be good if somebody who actually knows Qt could confirm... Dov Feldstern wrote: make[6]: Entering directory `/home/dovf/lyx-trunk/src/frontends/qt4' if /bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../../../src

Re: [patch] Re: trunk doesn't compile, GuiPrefs, Qt 4.2.1

2007-10-22 Thread Bo Peng
> #if QT_VERSION >= 0x040200 > - item->setForeground(0, QBrush(color)); > - item->setForeground(1, QBrush(color)); > + item->setForeground(0, QBrush(QColor(color))); > + item->setForeground(1, QBrush(QColor(color))); > #else > item->setTextColor(0, QColor(color));

Re: [patch] Re: trunk doesn't compile, GuiPrefs, Qt 4.2.1

2007-10-22 Thread Dov Feldstern
Bo Peng wrote: #if QT_VERSION >= 0x040200 - item->setForeground(0, QBrush(color)); - item->setForeground(1, QBrush(color)); + item->setForeground(0, QBrush(QColor(color))); + item->setForeground(1, QBrush(QColor(color))); #else item->setTextColor(0,

Re: [patch] Re: trunk doesn't compile, GuiPrefs, Qt 4.2.1

2007-10-22 Thread Andre Poenitz
On Mon, Oct 22, 2007 at 08:23:39PM +0200, Dov Feldstern wrote: > The attached seems to fix it, it would be good if somebody who actually > knows Qt could confirm... That's fine. If colors have to be hardcoded I'd use Qt::black, Qt::green etc or RGB values, not a string name. Andre'

Re: [patch] Re: trunk doesn't compile, GuiPrefs, Qt 4.2.1

2007-10-22 Thread Bo Peng
On 10/22/07, Andre Poenitz <[EMAIL PROTECTED]> wrote: > On Mon, Oct 22, 2007 at 08:23:39PM +0200, Dov Feldstern wrote: > > The attached seems to fix it, it would be good if somebody who actually > > knows Qt could confirm... > > That's fine. > > If colors have to be hardcoded I'd use Qt::black,