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]
|
[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
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user