mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
Revert "use a new header key on qt5 to fix drawing bug"
This reverts commit e063123218
.
This commit is contained in:
parent
44031b065c
commit
f9d93fa888
1 changed files with 2 additions and 7 deletions
|
@ -373,11 +373,6 @@ class Browser(QMainWindow):
|
||||||
self.onSearch()
|
self.onSearch()
|
||||||
self.show()
|
self.show()
|
||||||
|
|
||||||
def _headerKey(self):
|
|
||||||
if qtmajor >= 5:
|
|
||||||
return "editor2"
|
|
||||||
return "editor"
|
|
||||||
|
|
||||||
def setupToolbar(self):
|
def setupToolbar(self):
|
||||||
self.toolbarWeb = AnkiWebView()
|
self.toolbarWeb = AnkiWebView()
|
||||||
self.toolbarWeb.setFixedHeight(32 + self.mw.fontHeightDelta)
|
self.toolbarWeb.setFixedHeight(32 + self.mw.fontHeightDelta)
|
||||||
|
@ -463,7 +458,7 @@ class Browser(QMainWindow):
|
||||||
self.editor.setNote(None)
|
self.editor.setNote(None)
|
||||||
saveGeom(self, "editor")
|
saveGeom(self, "editor")
|
||||||
saveState(self, "editor")
|
saveState(self, "editor")
|
||||||
saveHeader(self.form.tableView.horizontalHeader(), self._headerKey())
|
saveHeader(self.form.tableView.horizontalHeader(), "editor")
|
||||||
self.col.conf['activeCols'] = self.model.activeCols
|
self.col.conf['activeCols'] = self.model.activeCols
|
||||||
self.col.setMod()
|
self.col.setMod()
|
||||||
self.hide()
|
self.hide()
|
||||||
|
@ -629,7 +624,7 @@ class Browser(QMainWindow):
|
||||||
if not isWin:
|
if not isWin:
|
||||||
vh.hide()
|
vh.hide()
|
||||||
hh.show()
|
hh.show()
|
||||||
restoreHeader(hh, self._headerKey())
|
restoreHeader(hh, "editor")
|
||||||
hh.setHighlightSections(False)
|
hh.setHighlightSections(False)
|
||||||
hh.setMinimumSectionSize(50)
|
hh.setMinimumSectionSize(50)
|
||||||
hh.setMovable(True)
|
hh.setMovable(True)
|
||||||
|
|
Loading…
Reference in a new issue