From: Robert J. <spa...@gm...> - 2011-09-12 17:56:43
|
Hi Orcan, 2011/9/12 Orcan Ogetbil <oge...@gm...>: > Hiyo, > > The horizontal size of the plugins window bothered me for a while. I > always have to expand it horizontally it to access the sliders. I > wanted to get to the heart of the problem. > > The heart of the problem lies in Slider::sizeHint() . This function is > supposed to be const in order for Qt to use it to get the size hint > for the Slider objects. It seems to me that Robert switched this to a > non-const function in an attempt to incorporate the size of the scale > for those sliders that use a scale. Adding the const back breaks the > compilation because of some invalid typecast within Robert's hack. > > Now the question is: Do we really need this hack, or should we revert > this to a const function, so Qt understands the size hint of the > Sliders, and the plugin window has a proper initial size? It seems to > me that no Slider that we have makes use of the scales. The commenting out of the const is definitely my creation, I did that a few places during our move to qt4 just to get it to compile... atleast I left a small trail of bread crumbs ;) If we don't use the scales feature I'm sure it will be okay to fix this up properly. Thanks, Robert > > Cheers, > Orcan > > ------------------------------------------------------------------------------ > Doing More with Less: The Next Generation Virtual Desktop > What are the key obstacles that have prevented many mid-market businesses > from deploying virtual desktops? How do next-generation virtual desktops > provide companies an easier-to-deploy, easier-to-manage and more affordable > virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ > _______________________________________________ > Lmuse-developer mailing list > Lmu...@li... > https://lists.sourceforge.net/lists/listinfo/lmuse-developer > |