Trolltech Home | Qt4-preview-feedback Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt4-preview-feedback Archive, November 2007
Qt Eclipse Integration: syntax highlighting with Q_SIGNALS and Q_SLOTS


Message 1 in thread

Hi,

I discovered that for some files, I don't get proper syntax
highlighting (and Eclipse outline) if I use Q_SIGNALS or Q_SLOTS.

So I created a small example.

I have QtCore in the include path.

In the first case, slot() ist not highlighted and the whole Object
does not show up in the Eclipse outline (but the include was resolved,
it shows up in the outline).

===================================
#include <QObject>

class Object {
public Q_SLOTS:
  void slot();
};
===================================

In the following case, everything works as expected.

===================================
#include "qobject.h"

class Object {
public Q_SLOTS:
  void slot();
};
===================================

The funny thing is the content of QtCore/QObject, namely:

===================================
#include "qobject.h"
===================================

Might there be something wrong with my Eclipse settings?
Or is this a bug in the eclipse indexer (or whatever is responsible
for generating the outline)?
Or can the Qt Eclipse Integration do sth. to resolve the problem?

Thanks in advance for any hints.

Regards, Niko

To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx


Message 2 in thread

That's quite literal isn't it & even if the Eclipse indexer could
Outline QObject the content '#include "qobject.h"' leads to another
level of indirection:

#include "../../src/corelib/kernel/qobject.h"

I'd like to see this fixed too!

But what really hurts me is 'project run configurations' these get
corrupted all the time, anyone know why or when this will get looked at?


Regards,
DaveR 

-----Original Message-----
From: Niko Paltzer [mailto:nikopp@xxxxxxxxx] 
Sent: 28 November 2007 13:27
To: Qt4-preview-feedback
Subject: Qt Eclipse Integration: syntax highlighting with Q_SIGNALS and
Q_SLOTS

Hi,

I discovered that for some files, I don't get proper syntax highlighting
(and Eclipse outline) if I use Q_SIGNALS or Q_SLOTS.

So I created a small example.

I have QtCore in the include path.

In the first case, slot() ist not highlighted and the whole Object does
not show up in the Eclipse outline (but the include was resolved, it
shows up in the outline).

===================================
#include <QObject>

class Object {
public Q_SLOTS:
  void slot();
};
===================================

In the following case, everything works as expected.

===================================
#include "qobject.h"

class Object {
public Q_SLOTS:
  void slot();
};
===================================

The funny thing is the content of QtCore/QObject, namely:

===================================
#include "qobject.h"
===================================

Might there be something wrong with my Eclipse settings?
Or is this a bug in the eclipse indexer (or whatever is responsible for
generating the outline)?
Or can the Qt Eclipse Integration do sth. to resolve the problem?

Thanks in advance for any hints.

Regards, Niko

To unsubscribe - send "unsubscribe" in the subject to
qt4-preview-feedback-request@xxxxxxxxxxxxx



 Scanned for viruses by BlackSpider MailControl


Please refer to www.anite.com for individual Anite company details. The contents of this e-mail and any attachments are for the intended recipient only. If you are not the intended recipient, you are not authorised to and must not disclose, copy, distribute, or retain this message or any part of it. It may contain information which is confidential and/or covered by legal professional or other privilege. Contracts cannot be concluded with us nor legal service effected by email.  

Anite plc
Registered in England No.1798114
Registered Office: 353 Buckingham Avenue Slough Berks SL1 4PF United Kingdom
VAT Registration No. GB 787 418187

Scanned for viruses by BlackSpider MailControl.

To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx