Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 426
Registered: ‎04-10-2011
My Device: Z30
Accepted Solution

Momentics 2.1b: code formatter for Qt foreach not working

Anyone else having problems with the new Momentics IDE 2.1 Beta code formatters?

Basically they work but they cannot format Qt foreach statements anymore – indentation isn't applies anymore:

 

void SomeClass::someMethod(constQList<QSqlRecord>& records)

{

    // indentation correct

    foreach (QSqlRecord record, records){ // newline missing

    QString id = record.value("id").toString(); // no additional indentation

} // incorrectly removes one indentation level Smiley Sad

}

-----------------------------------------------------------------------------
Check out my apps in the BlackBerry World
Visit my developer blog alopix.net
BBM Channel: C0047B612
Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Momentics 2.1b: code formatter for Qt foreach not working

Thanks for reporting, I trust you have submitted a report to DIT by Momentics bug reporting system? 


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
Highlighted
Developer
Posts: 426
Registered: ‎04-10-2011
My Device: Z30

Re: Momentics 2.1b: code formatter for Qt foreach not working

I have but was hoping that it's just a config problem Smiley Wink

-----------------------------------------------------------------------------
Check out my apps in the BlackBerry World
Visit my developer blog alopix.net
BBM Channel: C0047B612