-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WScrollable: Add a scrollable widget type. #3890
Conversation
It would even be safe to add this extension to 2.3 without any risk. @ronso0 What do you think. |
This code has no real benefit to 2.3, since none of the skins use it. We could target 2.3.1 but I don't want to disrupt the release. |
The benefit of squeezing this into 2.3.0 is that users could develop compact skins with stable 2.3 instead of having to use unstable main/2.4 fot that = they could not just develop but also test the skins live with a stable Mixxx install. I'm curious -- I'll build this and test the raspi skin. |
fair! I do think this is safe so I'm ok including it. Yes, it shows scrollbars only when they are needed. We could easily add params to control this behavior even more. |
Or we just use Flickable ;-) Anyway, I have no strong opinion on this, although I think I'd rather use QML if you're building a touch UI. |
we are a loooooong way away from QML. This is a good stop-gap with low risk and high payoff in the interim. |
…crollbars to areas. Not used in any current skins, but tested with my raspi branch. It would be simple to add support for controlling whether horizontal and/or vertical scrollbars are used, but for now I'd like to leave it on auto. (https://martinfowler.com/bliki/Yagni.html).
retargeted at 2.3 |
@ywwg I think you need to rebase, builds are failing. |
skincontext.h moved, fixed. |
@ywwg Can you add a |
I added HorizontalScrollBarPolicy and VerticalScrollBarPolicy to mirror the QT API |
Thanks. The use cases I see for the scrollable (for small screens only):
To have a satisfying UX I think it is required to For 2 we'd probably need to override the resizeEvent() and adjust the Scrollable to the content + scrollbars depending on the scrollbar configuration. Or use sizeAdjustPolicy, idk I stick to my previous argument that we could add this now to 2.3 and allow developing comapct skins until QML skins are ready. |
Yeah I think it's ok to merge with these bugs and iterate to fix the issues as we actually start to use it. It'll all be simple passthroughs from XML to QT. |
Alright, let's go then. Thanks! |
This allows skins to add scrollbars to areas.
Not used in any current skins, but tested with my raspi branch. It would be simple
to add support for controlling whether horizontal and/or vertical scrollbars are used,
but for now I'd like to leave it on auto. (https://martinfowler.com/bliki/Yagni.html).