add windowtitle

This commit is contained in:
WorldTeacher
2024-07-04 10:42:14 +02:00
parent 93bed5c4b8
commit b92d47876d
3 changed files with 4 additions and 4 deletions

View File

@@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
<string>Einstellungen</string>
</property>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="geometry">

View File

@@ -11,8 +11,9 @@ from PyQt6 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
# Dialog.setObjectName("Dialog")
Dialog.resize(743, 576)
self.buttonBox = QtWidgets.QDialogButtonBox(parent=Dialog)
self.buttonBox.setGeometry(QtCore.QRect(120, 540, 621, 32))
self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)

View File

@@ -30,7 +30,6 @@ class Settings(QtWidgets.QDialog, _settings):
def __init__(self, user):
super().__init__()
self.setupUi(self)
self.setWindowIcon(Icon("settings").icon)
self.password.setEchoMode(QtWidgets.QLineEdit.EchoMode.Password)
self.editSignature.setAcceptRichText(True)
self.editSignature.setFocusPolicy(QtCore.Qt.FocusPolicy.StrongFocus)
@@ -40,6 +39,7 @@ class Settings(QtWidgets.QDialog, _settings):
self.font_size.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus)
self.fontComboBox.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus)
self.setWindowIcon(Icon("settings").icon)
self.setWindowTitle("Einstellungen")
self.font_size.setCurrentText("9")
# add button to toggle password visibility
if user == "admin":
@@ -57,7 +57,6 @@ class Settings(QtWidgets.QDialog, _settings):
self.fontComboBox.currentFontChanged.connect(self.setCurrentFont)
self.debug.clicked.connect(self.debug_mode)
self.toggle_password()
self.retranslateUi(self)
self.load_config()
self.buttonBox.accepted.connect(self.save)