Merge lp:~a1s/qbrz/fix-argument-types into lp:qbrz
Status: | Merged |
---|---|
Approved by: | Robert Ladyman |
Approved revision: | 1643 |
Merged at revision: | 1647 |
Proposed branch: | lp:~a1s/qbrz/fix-argument-types |
Merge into: | lp:qbrz |
Diff against target: |
163 lines (+19/-19) 6 files modified
lib/annotate.py (+6/-6) lib/config.py (+3/-3) lib/decorators.py (+2/-2) lib/diffview.py (+6/-6) lib/logwidget.py (+1/-1) lib/revtreeview.py (+1/-1) |
To merge this branch: | bzr merge lp:~a1s/qbrz/fix-argument-types |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jelmer Vernooij | Approve | ||
Review via email:
|
Commit message
Fix passing arguments of invalid type.
Description of the change
Current QBrz passes float arguments to some methods that accept only int. For example:
Traceback (most recent call last):
File "/usr/lib/
r = f(*args, **kargs)
File "/usr/lib/
self.
File "/usr/lib/
diff.
File "/usr/lib/
window = DiffWindow(
File "/usr/lib/
self.diffview = SidebySideDiffV
File "/usr/lib/
self.view = _SidebySideDiff
File "/usr/lib/
titleFont.
TypeError: setPointSize(self, int): argument 1 has unexpected type 'float'
This change converts such arguments to integers for QTimer and QRect, and uses pointSizeF (which is float) instead of pointSize (integer) for QFont objects.