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

[FIX] gui: Add a push button class adapted for variable width text #1614

Merged
merged 1 commit into from
Sep 30, 2016

Conversation

ales-erjavec
Copy link
Contributor

Use it to fix auto_commit generated layout.

@codecov-io
Copy link

codecov-io commented Sep 30, 2016

Current coverage is 88.66% (diff: 100%)

Merging #1614 into master will not change coverage

@@             master      #1614   diff @@
==========================================
  Files            78         78          
  Lines          8124       8124          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits           7203       7203          
  Misses          921        921          
  Partials          0          0          

Sunburst

Powered by Codecov. Last update 33d82ce...06832aa

QPushButton subclass with an sizeHint method to better support settable
variable width button text.

Use this of class instead of the QPushButton when the button will
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use this -of class

@lanzagar
Copy link
Contributor

"fix auto_commit generated layout" - what is the best way to see the difference? / where were previous problems noticeable?

Use it to ensure `auto_commit` generated layout has stable geometry.
@ales-erjavec
Copy link
Contributor Author

what is the best way to see the difference? / where were previous problems noticeable?

When the auto commit checkbox is toggled the layout would change. Most noticeable on widgets with fixed size constraint like most learners.

@lanzagar
Copy link
Contributor

OK, apparently that was an issue on OSX (looks annoying).
Was already fine on my linux machine, and it remains the same after this fix.
So, 👍 , merging.

@lanzagar lanzagar merged commit 392774d into biolab:master Sep 30, 2016
@lanzagar lanzagar self-assigned this Sep 30, 2016
@ales-erjavec ales-erjavec deleted the variable-text-button branch October 11, 2016 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants