force xp theme on windows

This commit is contained in:
Damien Elmes 2012-11-29 03:29:57 +09:00
parent 91c6f927e4
commit a955304a1f

View file

@ -26,6 +26,9 @@ 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']: