[Qt-creator] Visualization idea

Jason H jhihn at gmx.com
Mon Oct 23 16:36:28 CEST 2017


Given an expression like:
if ((a && b==c) || (d && (e==f)))

On mouse-over break it apart so we can read it easier:
+----------------------------------+
| if (            ||              )|
|     (a && b==c)    (d &&       ) |
|	                   (e==f)  |
+----------------------------------+						 
Here, I'm showing a popup, but I could also envision if the line itself expanded into 3, asif it were wrapped:

// comment A
if ((a && b==c) || (d && (e==f)))
// comment B


becomes:

// comment A
if (            ||              )
    (a && b==c)    (d &&       )
                         (e==f)  
//comment B

This does create an issue on how to edit it, but I think you could have some kind f deferred or active parsing. 

I'm interested in this and other novel visualization ideas where we diverge further from the code the compiler wants and the representation the developer wants to see. 



More information about the Qt-creator mailing list