Skip to content
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

Clean up handling of layout padding #101

Open
cdyk opened this issue May 1, 2014 · 0 comments
Open

Clean up handling of layout padding #101

cdyk opened this issue May 1, 2014 · 0 comments

Comments

@cdyk
Copy link
Contributor

cdyk commented May 1, 2014

Tinia jobs often have a lot of nested layouts. At least in the QTcontroller, these layouts defaults to 11px padding each, leaving GUI's with a lot of blank space.

Adding foobar_layout->setContentsMargins( 0, 0, 0, 0 ) removes a lot of this space, however, some space is usually desirable. So the GUI needs to flag that it wants some space here or there or the layout is just to organize stuff.

One approach is to have no margins at all, and force the job to add 'spacer widgets' to create padding where desired.

Another approach is to add a flag on the layout element as to whether or not this layout should pad its contents.

However, it needs to work cleanly with the Dojo-based GUI builder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant