Revert "Enable HighDPI scaling"
This reverts commit 62bcd24c9a
.
Looks like this causes issues for various people...
This commit is contained in:
parent
976cd5f881
commit
5b70df15fa
@ -34,7 +34,7 @@ import tokenize
|
|||||||
from PyQt5.QtWidgets import QApplication, QWidget
|
from PyQt5.QtWidgets import QApplication, QWidget
|
||||||
from PyQt5.QtGui import QDesktopServices, QPixmap, QIcon, QWindow
|
from PyQt5.QtGui import QDesktopServices, QPixmap, QIcon, QWindow
|
||||||
from PyQt5.QtCore import (pyqtSlot, qInstallMessageHandler, QTimer, QUrl,
|
from PyQt5.QtCore import (pyqtSlot, qInstallMessageHandler, QTimer, QUrl,
|
||||||
QObject, QEvent, Qt, pyqtSignal)
|
QObject, QEvent, pyqtSignal)
|
||||||
try:
|
try:
|
||||||
import hunter
|
import hunter
|
||||||
except ImportError:
|
except ImportError:
|
||||||
@ -70,14 +70,6 @@ def run(args):
|
|||||||
quitter = Quitter(args)
|
quitter = Quitter(args)
|
||||||
objreg.register('quitter', quitter)
|
objreg.register('quitter', quitter)
|
||||||
|
|
||||||
# Enable HighDPI
|
|
||||||
assert QApplication.instance() is None
|
|
||||||
try:
|
|
||||||
QApplication.setAttribute(Qt.AA_EnableHighDpiScaling, True)
|
|
||||||
except AttributeError:
|
|
||||||
# Qt < 5.6
|
|
||||||
pass
|
|
||||||
|
|
||||||
global qApp
|
global qApp
|
||||||
qApp = Application(args)
|
qApp = Application(args)
|
||||||
qApp.setOrganizationName("qutebrowser")
|
qApp.setOrganizationName("qutebrowser")
|
||||||
|
Loading…
Reference in New Issue
Block a user