|
From: cfalcon <cf...@ce...> - 2015-07-06 07:35:51
|
The sign label (align right) does not follow the value label
(center) when the qwhell is expanded.
Fix it, adding a vertical alignment to the sign label.
---
lib/taurus/qt/qtgui/input/qwheel.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/taurus/qt/qtgui/input/qwheel.py b/lib/taurus/qt/qtgui/input/qwheel.py
index b7481c9..04e8892 100644
--- a/lib/taurus/qt/qtgui/input/qwheel.py
+++ b/lib/taurus/qt/qtgui/input/qwheel.py
@@ -259,7 +259,7 @@ class QWheelEdit(Qt.QFrame):
signLabel = _DigitLabel('+')
signLabel.setFocusPolicy(Qt.Qt.NoFocus)
- signLabel.setAlignment(Qt.Qt.AlignRight)
+ signLabel.setAlignment(Qt.Qt.AlignRight | Qt.Qt.AlignVCenter)
self._digitLabels.append(signLabel)
l.addWidget(signLabel, 1, 0)
l.setRowMinimumHeight(1, signLabel.minimumSizeHint().height())
--
2.4.0
|