mirror of
https://github.com/naruxde/revpicommander.git
synced 2025-11-08 16:43:53 +01:00
Design things: enable HighDpi, dependency versions, icon text
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
[Desktop Entry]
|
||||
Name=RevPi PLC Commander
|
||||
Comment=Controls the Python PLC program on your Revolution PI
|
||||
Name[de]=RevPi PLC Steuerung
|
||||
Comment[de]=Kontrolliert das Python PLC Programm auf dem Revolution PI
|
||||
Exec=/usr/bin/revpicommander
|
||||
Icon=revpicommander
|
||||
|
||||
@@ -476,8 +476,10 @@ class RevPiCommander(QtWidgets.QMainWindow, Ui_win_revpicommander):
|
||||
if __name__ == "__main__":
|
||||
import sys
|
||||
|
||||
# QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True)
|
||||
# QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_UseHighDpiPixmaps, True)
|
||||
if hasattr(QtCore.Qt, 'AA_EnableHighDpiScaling'):
|
||||
QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True)
|
||||
if hasattr(QtCore.Qt, 'AA_UseHighDpiPixmaps'):
|
||||
QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_UseHighDpiPixmaps, True)
|
||||
|
||||
app = QtWidgets.QApplication(sys.argv)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user