Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Qt flags enum recognition

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
lac Posted - Jun 19 2014 : 03:53:07 AM
Qt has many enums that are declared like this:

enum SomeFlag {
Flag1 = 0x01,
Flag2 = 0x02,
//...
};
Q_DECLARE_FLAGS(SomeFlags, SomeFlag);

Q_DECLARE_FLAGS declares a wrapper type SomeFlags of type QFlags<SomeFlag>.

I know it's a very special case, but it would be really nice if VAX would recognize this pattern and provide auto-completion for enum values in places that accept a QFlags<Enum>. It already has a constructor which accepts the actual enum.

1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jun 26 2014 : 8:57:19 PM
Which version of Qt are you using, and which classes, or code, are you seeing this with? Qt is a large library, so it would be useful to know where to look.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000