mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
qt wizard: fix scroll area
This commit is contained in:
parent
2239cb9624
commit
e014e3af75
1 changed files with 9 additions and 7 deletions
|
@ -131,20 +131,25 @@ class InstallWizard(QDialog, MessageBoxMixin, BaseWizard):
|
|||
self.next_button.clicked.connect(lambda: self.loop.exit(2))
|
||||
outer_vbox = QVBoxLayout(self)
|
||||
inner_vbox = QVBoxLayout()
|
||||
inner_vbox = QVBoxLayout()
|
||||
inner_vbox.addWidget(self.title)
|
||||
inner_vbox.addWidget(self.main_widget)
|
||||
inner_vbox.addStretch(1)
|
||||
inner_vbox.addWidget(self.please_wait)
|
||||
inner_vbox.addStretch(1)
|
||||
scroll_widget = QWidget()
|
||||
scroll_widget.setLayout(inner_vbox)
|
||||
scroll = QScrollArea()
|
||||
scroll.setWidget(scroll_widget)
|
||||
scroll.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
|
||||
scroll.setWidgetResizable(True)
|
||||
icon_vbox = QVBoxLayout()
|
||||
icon_vbox.addWidget(self.logo)
|
||||
icon_vbox.addStretch(1)
|
||||
hbox = QHBoxLayout()
|
||||
hbox.addLayout(icon_vbox)
|
||||
hbox.addSpacing(5)
|
||||
hbox.addLayout(inner_vbox)
|
||||
hbox.setStretchFactor(inner_vbox, 1)
|
||||
hbox.addWidget(scroll)
|
||||
hbox.setStretchFactor(scroll, 1)
|
||||
outer_vbox.addLayout(hbox)
|
||||
outer_vbox.addLayout(Buttons(self.back_button, self.next_button))
|
||||
self.set_icon(':icons/electrum.png')
|
||||
|
@ -426,12 +431,9 @@ class InstallWizard(QDialog, MessageBoxMixin, BaseWizard):
|
|||
self.confirm(message, title)
|
||||
|
||||
def confirm(self, message, title):
|
||||
area = QScrollArea()
|
||||
label = WWLabel(message)
|
||||
area.setWidget(label)
|
||||
|
||||
vbox = QVBoxLayout()
|
||||
vbox.addWidget(area)
|
||||
vbox.addWidget(label)
|
||||
self.exec_layout(vbox, title)
|
||||
|
||||
@wizard_dialog
|
||||
|
|
Loading…
Add table
Reference in a new issue