remove setupFonts(), disable syncing
This commit is contained in:
parent
1d75cff5e7
commit
a4cab1d8f2
@ -77,8 +77,8 @@ class DataModel(QAbstractTableModel):
|
||||
row = index.row()
|
||||
c = self.getCard(index)
|
||||
t = c.template()
|
||||
f.setFamily(t.get("bfont", self.browser.mw.fontFamily))
|
||||
f.setPixelSize(t.get("bsize", self.browser.mw.fontHeight))
|
||||
f.setFamily(t.get("bfont", "arial"))
|
||||
f.setPixelSize(t.get("bsize", 12))
|
||||
return f
|
||||
elif role == Qt.TextAlignmentRole:
|
||||
align = Qt.AlignVCenter
|
||||
|
19
aqt/main.py
19
aqt/main.py
@ -66,7 +66,6 @@ class AnkiQt(QMainWindow):
|
||||
self.setupAppMsg()
|
||||
self.setupKeys()
|
||||
self.setupThreads()
|
||||
self.setupFonts()
|
||||
self.setupMainWindow()
|
||||
self.setupSystemSpecific()
|
||||
self.setupStyle()
|
||||
@ -575,6 +574,9 @@ title="%s" %s>%s</button>''' % (
|
||||
if not auto or (self.pm.profile['syncKey'] and
|
||||
self.pm.profile['autoSync'] and
|
||||
not self.safeMode):
|
||||
tooltip("Syncing not yet implemented")
|
||||
return
|
||||
|
||||
from aqt.sync import SyncManager
|
||||
if not self.unloadCollection():
|
||||
return
|
||||
@ -1068,21 +1070,6 @@ will be lost. Continue?"""))
|
||||
# System specific code
|
||||
##########################################################################
|
||||
|
||||
def setupFonts(self):
|
||||
print("fixme: setupFonts()")
|
||||
self.fontHeight = 12
|
||||
self.fontFamily = "arial"
|
||||
self.fontHeightDelta = 0
|
||||
|
||||
return
|
||||
f = QFontInfo(self.font())
|
||||
ws = QWebSettings.globalSettings()
|
||||
self.fontHeight = f.pixelSize()
|
||||
self.fontFamily = f.family()
|
||||
self.fontHeightDelta = max(0, self.fontHeight - 13)
|
||||
ws.setFontFamily(QWebSettings.StandardFont, self.fontFamily)
|
||||
ws.setFontSize(QWebSettings.DefaultFontSize, self.fontHeight)
|
||||
|
||||
def setupSystemSpecific(self):
|
||||
self.hideMenuAccels = False
|
||||
if isMac:
|
||||
|
Loading…
Reference in New Issue
Block a user