This topic is half a year old, but can someone please give comments? Do you 
think it is useful?

Imo it would be only a few lines of code and would help us to build new UI 
widget way faster (and cleaner).

> Hey,
> 
> We have many widgets that don't just take a parent. Thus, they can not be
> used in Qt Designer (AFAIK). I propose the following changes to remove
> additional parameters from constructors:
> 
> * The knob class has an int describing its style. Since there are only 4
> types (and mostly only one type used), I suggest adding 5 specialisation
> classes to knob.h. * The led_checkbox class takes a text argument before
> the parent. Would it not be possible to call setText in a retranslate
> function later? (Retranslations are better style anyway, imo) * The
> lcd_spinbox is usually only used with 1,2 or 3 digits. Make 3
> specialisations. * For more widgets, I'd suggest to try similar techniques.
> 
> Anyone against these changes in these core widget's headers?
> 
> Thanks for reply and a nice weekend,
> Johannes


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
LMMS-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lmms-devel

Reply via email to