mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
put groups and tags on one line instead
This commit is contained in:
parent
82be9a432e
commit
1fda0a9bad
2 changed files with 6 additions and 4 deletions
|
@ -352,10 +352,10 @@ class Browser(QMainWindow):
|
|||
self.updateFilterLabel()
|
||||
self.filterTimer = None
|
||||
if self.model.cards:
|
||||
#self.form.cardInfoGroup.show()
|
||||
self.form.cardLabel.show()
|
||||
self.form.fieldsArea.show()
|
||||
else:
|
||||
#self.form.cardInfoGroup.hide()
|
||||
self.form.cardLabel.hide()
|
||||
self.form.fieldsArea.hide()
|
||||
if not self.focusCard():
|
||||
if self.model.cards:
|
||||
|
|
|
@ -31,6 +31,7 @@ _html = """
|
|||
}
|
||||
.fname { font-size: 14px; vertical-align: middle; padding-right: 5px; }
|
||||
img { max-width: 150; max-height: 150; }
|
||||
body { margin: 5px; }
|
||||
</style><script>
|
||||
%s
|
||||
|
||||
|
@ -429,6 +430,7 @@ class Editor(object):
|
|||
def setupTagsAndGroup(self):
|
||||
import aqt.tagedit
|
||||
g = QGroupBox(self.widget)
|
||||
g.setFlat(True)
|
||||
tb = QGridLayout()
|
||||
tb.setSpacing(12)
|
||||
tb.setMargin(6)
|
||||
|
@ -441,11 +443,11 @@ class Editor(object):
|
|||
tb.addWidget(self.group, 0, 1)
|
||||
# tags
|
||||
l = QLabel(_("Tags"))
|
||||
tb.addWidget(l, 1, 0)
|
||||
tb.addWidget(l, 0, 2)
|
||||
self.tags = aqt.tagedit.TagEdit(self.widget)
|
||||
self.tags.connect(self.tags, SIGNAL("lostFocus"),
|
||||
self.saveTagsAndGroup)
|
||||
tb.addWidget(self.tags, 1, 1)
|
||||
tb.addWidget(self.tags, 0, 3)
|
||||
g.setLayout(tb)
|
||||
self.outerLayout.addWidget(g)
|
||||
|
||||
|
|
Loading…
Reference in a new issue