I have the following two problems with formatting C++ code for Qt:
1. When trying to type "public slots:", the space character causes SlickEdit to automatically enter a colon instead, so the line becomes "public:slots:" and I have to go back and manually change the colon to a space. I was able to change this behavior in an older version of SE, but I can't figure out a solution in SE v17.0.3.
2. When I use the beautify function, lines like "public slots:" or "signals:" get indented rather than being put in column 1 like the standard access specifiers. And sometimes the function prototypes under them get indented an extra level. See the example below. What's causing this, and how can I get the beautifier to not indent the special Qt lines like the standard C++ access specifiers are not indented?
class Example : public QObject
{
Q_OBJECT;
public:
explicit Example( QObject * parent = 0 );
virtual ~Example();
public slots:
void someSlot();
signals:
void someSignal();
protected:
virtual void doSomething();
};
I want it look like this:
class Example : public QObject
{
Q_OBJECT;
public:
explicit Example( QObject * parent = 0 );
virtual ~Example();
public slots:
void someSlot();
signals:
void someSignal();
protected:
virtual void doSomething();
};