Design things: enable HighDpi, dependency versions, icon text

This commit is contained in:
2021-11-19 10:33:13 +01:00
parent ea9a13e18c
commit 0164498a87
3 changed files with 5 additions and 4 deletions

View File

@@ -1,7 +1,6 @@
[Desktop Entry] [Desktop Entry]
Name=RevPi PLC Commander Name=RevPi PLC Commander
Comment=Controls the Python PLC program on your Revolution PI 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 Comment[de]=Kontrolliert das Python PLC Programm auf dem Revolution PI
Exec=/usr/bin/revpicommander Exec=/usr/bin/revpicommander
Icon=revpicommander Icon=revpicommander

View File

@@ -476,8 +476,10 @@ class RevPiCommander(QtWidgets.QMainWindow, Ui_win_revpicommander):
if __name__ == "__main__": if __name__ == "__main__":
import sys import sys
# QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True) if hasattr(QtCore.Qt, 'AA_EnableHighDpiScaling'):
# QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_UseHighDpiPixmaps, True) 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) app = QtWidgets.QApplication(sys.argv)

View File

@@ -1,6 +1,6 @@
[DEFAULT] [DEFAULT]
Debian-Version=1 Debian-Version=1
Depends3=python3-pyqt5, python3-revpimodio2, python3-zeroconf Depends3=python3-pyqt5, python3-revpimodio2 (>= 2.5.0), python3-zeroconf (>= 0.24.4)
Section=universe/x11 Section=universe/x11
Suite=stable Suite=stable
X-Python3-Version: >=3.4 X-Python3-Version: >=3.4