mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 00:12:25 -04:00
movable headers
This commit is contained in:
parent
d23b50dffe
commit
f1059f21ee
1 changed files with 2 additions and 0 deletions
|
@ -105,6 +105,7 @@ class DeckModel(QAbstractTableModel):
|
||||||
self.browser.mw.progress.finish()
|
self.browser.mw.progress.finish()
|
||||||
self.reset()
|
self.reset()
|
||||||
|
|
||||||
|
# fixme: merge into reset(), fix titlebar flicker
|
||||||
def refresh(self):
|
def refresh(self):
|
||||||
self.cardObjs = {}
|
self.cardObjs = {}
|
||||||
self.emit(SIGNAL("layoutChanged()"))
|
self.emit(SIGNAL("layoutChanged()"))
|
||||||
|
@ -435,6 +436,7 @@ class Browser(QMainWindow):
|
||||||
restoreHeader(hh, "editor")
|
restoreHeader(hh, "editor")
|
||||||
hh.setHighlightSections(False)
|
hh.setHighlightSections(False)
|
||||||
hh.setMinimumSectionSize(50)
|
hh.setMinimumSectionSize(50)
|
||||||
|
hh.setMovable(True)
|
||||||
self.setColumnSizes()
|
self.setColumnSizes()
|
||||||
hh.setContextMenuPolicy(Qt.CustomContextMenu)
|
hh.setContextMenuPolicy(Qt.CustomContextMenu)
|
||||||
hh.connect(hh, SIGNAL("customContextMenuRequested(QPoint)"),
|
hh.connect(hh, SIGNAL("customContextMenuRequested(QPoint)"),
|
||||||
|
|
Loading…
Reference in a new issue