File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -724,13 +724,6 @@ def _init_toolbar(self):
724724 labelAction = self .addWidget (self .locLabel )
725725 labelAction .setVisible (True )
726726
727- # Esthetic adjustments - we need to set these explicitly in PyQt5
728- # otherwise the layout looks different - but we don't want to set it if
729- # not using HiDPI icons otherwise they look worse than before.
730- if is_pyqt5 () and self .canvas ._dpi_ratio > 1 :
731- self .setIconSize (QtCore .QSize (24 , 24 ))
732- self .layout ().setSpacing (12 )
733-
734727 @cbook .deprecated ("3.1" )
735728 @property
736729 def buttons (self ):
@@ -741,15 +734,6 @@ def buttons(self):
741734 def adj_window (self ):
742735 return None
743736
744- def sizeHint (self ):
745- size = super ().sizeHint ()
746- if is_pyqt5 () and self .canvas ._dpi_ratio > 1 :
747- # For some reason, self.setMinimumHeight doesn't seem to carry over
748- # to the actual sizeHint, so override it instead in order to make
749- # the aesthetic adjustments noted above.
750- size .setHeight (max (48 , size .height ()))
751- return size
752-
753737 def edit_parameters (self ):
754738 axes = self .canvas .figure .get_axes ()
755739 if not axes :
You can’t perform that action at this time.
0 commit comments