Skip to content

[FIX] OWWidget: Move 'splitter' to private members#2847

Merged
janezd merged 1 commit intobiolab:masterfrom
ales-erjavec:fixes/widget-splitter-name
Jan 8, 2018
Merged

[FIX] OWWidget: Move 'splitter' to private members#2847
janezd merged 1 commit intobiolab:masterfrom
ales-erjavec:fixes/widget-splitter-name

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`
@ales-erjavec ales-erjavec force-pushed the fixes/widget-splitter-name branch from 508ee59 to d3bbba5 Compare January 8, 2018 10:42
@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