Skip to content

Commit 7e43b2c

Browse files
committed
qtplasmac: fix tab level
1 parent cddbc6d commit 7e43b2c

1 file changed

Lines changed: 45 additions & 45 deletions

File tree

share/qtvcp/screens/qtplasmac/qtplasmac_handler.py

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -3542,51 +3542,51 @@ def dialog_rfl_type(self):
35423542
return {'cancel': True, 'type': 'end'}
35433543

35443544
def show_cut_critical_dialog(self, rcButtonList):
3545-
checkStyle = 'QCheckBox::indicator { margin-left: 8px; margin-right: 8px; }\n \
3546-
QCheckBox { font-size: 11pt; }'
3547-
ccr = QDialog(self.w)
3548-
ccr.setWindowTitle(_translate('HandlerClass', 'Untoggled Cut Critical Buttons'))
3549-
icon = QApplication.style().standardIcon(QStyle.SP_MessageBoxWarning)
3550-
iconLabel = QLabel()
3551-
iconLabel.setPixmap(icon.pixmap(32, 32))
3552-
msg0 = _translate('HandlerClass', 'The following buttons have not been toggled')
3553-
msg1 = _translate('HandlerClass', 'Select items to be toggled when CONTINUE is clicked')
3554-
lbl0 = QLabel(f'\n{msg0}:\n')
3555-
lbl1 = QLabel('')
3556-
lbl2 = QLabel(f'\n{msg1}\n')
3557-
lbl2.setStyleSheet("padding-left: 1px;")
3558-
buttonBox = QDialogButtonBox(QDialogButtonBox.Ok | QDialogButtonBox.Cancel)
3559-
buttonBox.accepted.connect(ccr.accept)
3560-
buttonBox.rejected.connect(ccr.reject)
3561-
buttonBox.button(QDialogButtonBox.Ok).setText(_translate('HandlerClass', 'CONTINUE'))
3562-
buttonBox.button(QDialogButtonBox.Ok).setIcon(QIcon())
3563-
buttonBox.button(QDialogButtonBox.Ok).setMinimumWidth(120)
3564-
buttonBox.button(QDialogButtonBox.Cancel).setText(_translate('HandlerClass', 'CANCEL'))
3565-
buttonBox.button(QDialogButtonBox.Cancel).setIcon(QIcon())
3566-
hLayout = QHBoxLayout()
3567-
hLayout.addWidget(iconLabel)
3568-
hLayout.addWidget(lbl0)
3569-
hLayout.addStretch()
3570-
vLayout = QVBoxLayout()
3571-
vLayout.addLayout(hLayout)
3572-
checkBoxes = []
3573-
for bText in rcButtonList:
3574-
checkBox = QCheckBox(bText)
3575-
checkBox.setStyleSheet(checkStyle)
3576-
vLayout.addWidget(checkBox)
3577-
checkBoxes.append(checkBox)
3578-
if len(rcButtonList) > 1:
3579-
toggleAll = QCheckBox(_translate('HandlerClass', 'TOGGLE ALL'))
3580-
toggleAll.setStyleSheet(checkStyle)
3581-
vLayout.addWidget(lbl1)
3582-
vLayout.addWidget(toggleAll)
3583-
toggleAll.stateChanged.connect(lambda state: [checkBox.setChecked(state == Qt.Checked) for checkBox in checkBoxes])
3584-
vLayout.addWidget(lbl2)
3585-
vLayout.addWidget(buttonBox)
3586-
ccr.setLayout(vLayout)
3587-
result = ccr.exec_()
3588-
checkList = [checkBox.text() for checkBox in checkBoxes if checkBox.isChecked()]
3589-
return result, checkList
3545+
checkStyle = 'QCheckBox::indicator { margin-left: 8px; margin-right: 8px; }\n \
3546+
QCheckBox { font-size: 11pt; }'
3547+
ccr = QDialog(self.w)
3548+
ccr.setWindowTitle(_translate('HandlerClass', 'Untoggled Cut Critical Buttons'))
3549+
icon = QApplication.style().standardIcon(QStyle.SP_MessageBoxWarning)
3550+
iconLabel = QLabel()
3551+
iconLabel.setPixmap(icon.pixmap(32, 32))
3552+
msg0 = _translate('HandlerClass', 'The following buttons have not been toggled')
3553+
msg1 = _translate('HandlerClass', 'Select items to be toggled when CONTINUE is clicked')
3554+
lbl0 = QLabel(f'\n{msg0}:\n')
3555+
lbl1 = QLabel('')
3556+
lbl2 = QLabel(f'\n{msg1}\n')
3557+
lbl2.setStyleSheet("padding-left: 1px;")
3558+
buttonBox = QDialogButtonBox(QDialogButtonBox.Ok | QDialogButtonBox.Cancel)
3559+
buttonBox.accepted.connect(ccr.accept)
3560+
buttonBox.rejected.connect(ccr.reject)
3561+
buttonBox.button(QDialogButtonBox.Ok).setText(_translate('HandlerClass', 'CONTINUE'))
3562+
buttonBox.button(QDialogButtonBox.Ok).setIcon(QIcon())
3563+
buttonBox.button(QDialogButtonBox.Ok).setMinimumWidth(120)
3564+
buttonBox.button(QDialogButtonBox.Cancel).setText(_translate('HandlerClass', 'CANCEL'))
3565+
buttonBox.button(QDialogButtonBox.Cancel).setIcon(QIcon())
3566+
hLayout = QHBoxLayout()
3567+
hLayout.addWidget(iconLabel)
3568+
hLayout.addWidget(lbl0)
3569+
hLayout.addStretch()
3570+
vLayout = QVBoxLayout()
3571+
vLayout.addLayout(hLayout)
3572+
checkBoxes = []
3573+
for bText in rcButtonList:
3574+
checkBox = QCheckBox(bText)
3575+
checkBox.setStyleSheet(checkStyle)
3576+
vLayout.addWidget(checkBox)
3577+
checkBoxes.append(checkBox)
3578+
if len(rcButtonList) > 1:
3579+
toggleAll = QCheckBox(_translate('HandlerClass', 'TOGGLE ALL'))
3580+
toggleAll.setStyleSheet(checkStyle)
3581+
vLayout.addWidget(lbl1)
3582+
vLayout.addWidget(toggleAll)
3583+
toggleAll.stateChanged.connect(lambda state: [checkBox.setChecked(state == Qt.Checked) for checkBox in checkBoxes])
3584+
vLayout.addWidget(lbl2)
3585+
vLayout.addWidget(buttonBox)
3586+
ccr.setLayout(vLayout)
3587+
result = ccr.exec_()
3588+
checkList = [checkBox.text() for checkBox in checkBoxes if checkBox.isChecked()]
3589+
return result, checkList
35903590

35913591
def invert_pin_state(self, halpin):
35923592
if 'qtplasmac.ext_out_' in halpin:

0 commit comments

Comments
 (0)