Skip to content

Commit 44d33c3

Browse files
committed
Minor fixes
1 parent 4799bbf commit 44d33c3

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

guidata/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
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__')

guidata/qthelpers.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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

309310
if __name__ == "__main__":
310-
from guidata.utils import pairs
311-
312-
print(list(pairs(list(range(5)))))
313311
show_std_icons()

guidata/qtwidgets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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):

0 commit comments

Comments
 (0)