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] OWWidget: Move 'splitter' to private members #2847

Merged
merged 1 commit into from
Jan 8, 2018

Conversation

ales-erjavec
Copy link
Contributor

Issue

Since gh-2743 Data Sets, Predictions and GO Browser (from Bioinformatics add-on) raise a

-------------------------- AttributeError Exception ---------------------------
Traceback (most recent call last):
  File "/Users/aleserjavec/workspace/orange3/Orange/widgets/widget.py", line 575, in showEvent
    self.splitter.setControlAreaVisible(self.controlAreaVisible)
AttributeError: 'QSplitter' object has no attribute 'setControlAreaVisible'
-------------------------------------------------------------------------------

Because they assign self.splitter = ...

Description of changes

Rename OWWidget.splitter to OWWidget.__splitter

Includes
  • Code changes
  • Tests
  • Documentation

@ales-erjavec ales-erjavec added this to the 3.9 milestone Jan 3, 2018
'splitter' is to generic name that can be (and is) used by subclasses
that now (since biolabgh-2743) raise an "AttributeError: 'QSplitter' object
has no attribute 'setControlAreaVisible'" in `OWWidget.showEvent`
@codecov-io
Copy link

codecov-io commented Jan 8, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@acb7dd1). Click here to learn what that means.
The diff coverage is 100%.

@@            Coverage Diff            @@
##             master    #2847   +/-   ##
=========================================
  Coverage          ?   81.91%           
=========================================
  Files             ?      326           
  Lines             ?    56000           
  Branches          ?        0           
=========================================
  Hits              ?    45872           
  Misses            ?    10128           
  Partials          ?        0

@janezd janezd merged commit 08b10bd into biolab:master Jan 8, 2018
@ales-erjavec ales-erjavec deleted the fixes/widget-splitter-name branch January 17, 2018 08:18
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