PDA

View Full Version : Eclipse Ganymede + Q_OBJECT + CDT 5.0 formatter issue



Lykurg
16th July 2008, 14:28
Hi,

the integrated formatter of the new release is awesome, but unfortunately if I use Q_OBJECT in a header file the formatter gets crazy. Anyone the same Problem? Solutions?

(I use the build-in GNU formatting, and after some formatting-turns I get:

#ifndef STACKADDTEXT_H
#define STACKADDTEXT_H

#include <QtGui>
#include "ui_stackaddtext.h"

class StackAddText : public QWidget
{
Q_OBJECT

public:
StackAddText(QWidget *parent = 0) ;
~ StackAddText();

private:
Ui::StackAddTextClass ui;
};

#endif // STACKADDTEXT_H
Uncommenting Q_OBJECT: all fine!


Thanks,

Lykurg