Commit 4b7f4da4 authored by Tiago Sarmento's avatar Tiago Sarmento

tweak

parent 148c7054
......@@ -44,6 +44,12 @@ class SetConfirmPopup(QtWidgets.QDialog):
self.listWidget = QtWidgets.QListWidget()
self.listWidget.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
self.listWidget.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
# self.listWidget.setAlignment(QtCore.Qt.AlignCenter)
self.listWidget.setFixedWidth(NativeUI.screen_width/2)
self.hlayout = QtWidgets.QHBoxLayout()
self.hlayout.addStretch(0)
self.hlayout.addWidget(self.listWidget)
self.hlayout.addStretch(0)
buttonHLayout = QtWidgets.QHBoxLayout()
......@@ -57,7 +63,7 @@ class SetConfirmPopup(QtWidgets.QDialog):
buttonHLayout.addWidget(self.cancelButton)
vlayout = QtWidgets.QVBoxLayout()
vlayout.addWidget(self.listWidget)
vlayout.addLayout(self.hlayout)
vlayout.addLayout(buttonHLayout)
self.setLayout(vlayout)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment