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
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
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'
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
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
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'
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
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
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:
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
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
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
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
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)));
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 =
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)));
+
"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
>>
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,
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
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,
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
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
#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));
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));
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'
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
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
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
> #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));
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,
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'
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,
32 matches
Mail list logo