Compare commits
2 Commits
712df39383
...
09a0daad66
| Author | SHA256 | Date | |
|---|---|---|---|
| 09a0daad66 | |||
| 5b031e9d8d |
@@ -175,7 +175,7 @@ Item
|
|||||||
|
|
||||||
Text
|
Text
|
||||||
{
|
{
|
||||||
text: model.display === null? "": model.display
|
text: (model.display === null || model.display === undefined)? "": model.display
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: parent.height
|
height: parent.height
|
||||||
|
|||||||
@@ -70,7 +70,8 @@ class EmployeeModel(QAbstractTableModel):
|
|||||||
if applicant_col == 2 and self.__everyone:
|
if applicant_col == 2 and self.__everyone:
|
||||||
tr = 'Ja' if tr == 1 else 'Nein'
|
tr = 'Ja' if tr == 1 else 'Nein'
|
||||||
else:
|
else:
|
||||||
tr = re.sub("Keine Angabe ","", tr)
|
if tr:
|
||||||
|
tr = re.sub("Keine Angabe ","", tr)
|
||||||
#print(f"Data: {tr}")
|
#print(f"Data: {tr}")
|
||||||
# return row[index.column() + 2]
|
# return row[index.column() + 2]
|
||||||
return tr
|
return tr
|
||||||
|
|||||||
2
main.py
2
main.py
@@ -121,10 +121,10 @@ if __name__ == "__main__":
|
|||||||
else:
|
else:
|
||||||
initializeProgram()
|
initializeProgram()
|
||||||
|
|
||||||
|
engine.rootContext().setContextProperty("config", config)
|
||||||
engine.rootContext().setContextProperty("sys_printers", printers)
|
engine.rootContext().setContextProperty("sys_printers", printers)
|
||||||
engine.rootContext().setContextProperty("bad_config", bad_config) # print(f"Fehler: {i}")
|
engine.rootContext().setContextProperty("bad_config", bad_config) # print(f"Fehler: {i}")
|
||||||
engine.rootContext().setContextProperty("db_con", db_con)
|
engine.rootContext().setContextProperty("db_con", db_con)
|
||||||
engine.rootContext().setContextProperty("config", config)
|
|
||||||
engine.rootContext().setContextProperty("systray", tray)
|
engine.rootContext().setContextProperty("systray", tray)
|
||||||
|
|
||||||
engine.load(qml_file)
|
engine.load(qml_file)
|
||||||
|
|||||||
Reference in New Issue
Block a user