The short answer seems NO. Maybe not what you are looking for, but maybe you can live with this:
class MyClass : public QObject { Q_OBJECT public: MyClass(); private: Q_SIGNAL void someSignal(); public: Q_SLOT void someSlot(); };
(This is ugly, but it seems that you cannot have a cake and eat it;)
Just what interests me: is it worth building a plugin for automatic formatting? Are we really using CTRL-A CTRL-F? If yes, then yes, it can be a pain. But usually, if you are working on header files by declaring a new method (signal or slot), you should not ruin the previous fixed indent. Perhaps you have some reasons that justify this?
Derick schoonbee
source share