mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 23:12:21 -04:00
stop forcing XP mode on windows
IIRC we were doing it to work around an issue in an older qt
This commit is contained in:
parent
a44dc7f174
commit
c382a83395
1 changed files with 1 additions and 8 deletions
|
@ -33,9 +33,6 @@ class AnkiQt(QMainWindow):
|
||||||
self.state = "startup"
|
self.state = "startup"
|
||||||
aqt.mw = self
|
aqt.mw = self
|
||||||
self.app = app
|
self.app = app
|
||||||
if isWin:
|
|
||||||
self._xpstyle = QStyleFactory.create("WindowsXP")
|
|
||||||
self.app.setStyle(self._xpstyle)
|
|
||||||
self.pm = profileManager
|
self.pm = profileManager
|
||||||
# running 2.0 for the first time?
|
# running 2.0 for the first time?
|
||||||
if self.pm.meta['firstRun']:
|
if self.pm.meta['firstRun']:
|
||||||
|
@ -44,10 +41,6 @@ class AnkiQt(QMainWindow):
|
||||||
self.pm.meta['firstRun'] = False
|
self.pm.meta['firstRun'] = False
|
||||||
self.pm.save()
|
self.pm.save()
|
||||||
# init rest of app
|
# init rest of app
|
||||||
if qtmajor == 4 and qtminor < 8:
|
|
||||||
# can't get modifiers immediately on qt4.7, so no safe mode there
|
|
||||||
self.safeMode = False
|
|
||||||
else:
|
|
||||||
self.safeMode = self.app.queryKeyboardModifiers() & Qt.ShiftModifier
|
self.safeMode = self.app.queryKeyboardModifiers() & Qt.ShiftModifier
|
||||||
try:
|
try:
|
||||||
self.setupUI()
|
self.setupUI()
|
||||||
|
|
Loading…
Reference in a new issue