summaryrefslogtreecommitdiff
path: root/gr-qtgui/python/qtgui
diff options
context:
space:
mode:
authordevnulling <devnulling@users.noreply.github.com>2020-01-04 13:57:48 -0800
committerMartin Braun <martin.braun@ettus.com>2020-01-04 19:40:59 -0800
commit0096d491cd941335ea97a8f7c8607ea210269e5c (patch)
tree1f9dfb4adb9da1ef3b28bcada14886451c786cf8 /gr-qtgui/python/qtgui
parentc52353d701baa87b346a6a5d91d456ebf574852e (diff)
QT: Add margin around QT widgets
Diffstat (limited to 'gr-qtgui/python/qtgui')
-rwxr-xr-xgr-qtgui/python/qtgui/range.py.cmakein3
1 files changed, 3 insertions, 0 deletions
diff --git a/gr-qtgui/python/qtgui/range.py.cmakein b/gr-qtgui/python/qtgui/range.py.cmakein
index 4b6176a980..e49da506e1 100755
--- a/gr-qtgui/python/qtgui/range.py.cmakein
+++ b/gr-qtgui/python/qtgui/range.py.cmakein
@@ -81,6 +81,7 @@ class RangeWidget(QtWidgets.QWidget):
self.notifyChanged = slot
layout = Qt.QHBoxLayout()
+ layout.setContentsMargins( 0,0,0,0 )
label = Qt.QLabel(label)
layout.addWidget(label)
@@ -211,6 +212,8 @@ class RangeWidget(QtWidgets.QWidget):
# Need another horizontal layout to wrap the other widgets.
layout = Qt.QHBoxLayout()
+ layout.setContentsMargins( 0,0,0,0 )
+ layout.setSpacing(10)
layout.addWidget(self.slider)
layout.addWidget(self.counter)
self.setLayout(layout)