File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed
Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1717.. _GoogleGroup: http://groups.google.fr/group/guidata_guiqwt
1818"""
1919
20- __version__ = "2.0.0 "
20+ __version__ = "2.0.1 "
2121
2222# TODO: Add Python module hash utilities (for dependencies checking)
2323# TODO: Investigate the qthelpers test failure (see after if __name__=='__main__')
Original file line number Diff line number Diff line change @@ -277,6 +277,7 @@ def __init__(self, parent):
277277 layout = QHBoxLayout ()
278278 row_nb = 14
279279 cindex = 0
280+ col_layout = QVBoxLayout ()
280281 for child in dir (QStyle ):
281282 if child .startswith ("SP_" ):
282283 if cindex == 0 :
@@ -307,7 +308,4 @@ def show_std_icons():
307308
308309
309310if __name__ == "__main__" :
310- from guidata .utils import pairs
311-
312- print (list (pairs (list (range (5 )))))
313311 show_std_icons ()
Original file line number Diff line number Diff line change @@ -70,8 +70,8 @@ def sizeHint(self):
7070 hint = QLabel .sizeHint (self )
7171 width , height = hint .width (), hint .height ()
7272 angle = self .angle * pi / 180
73- rotated_width = abs (width * cos (angle )) + abs (height * sin (angle ))
74- rotated_height = abs (width * sin (angle )) + abs (height * cos (angle ))
73+ rotated_width = int ( abs (width * cos (angle )) + abs (height * sin (angle ) ))
74+ rotated_height = int ( abs (width * sin (angle )) + abs (height * cos (angle ) ))
7575 return QSize (rotated_width , rotated_height )
7676
7777 def minimumSizeHint (self ):
You can’t perform that action at this time.
0 commit comments