mirror of
https://github.com/ankitects/anki.git
synced 2025-11-08 21:57:12 -05: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.updateFilterLabel()
|
||||||
self.filterTimer = None
|
self.filterTimer = None
|
||||||
if self.model.cards:
|
if self.model.cards:
|
||||||
#self.form.cardInfoGroup.show()
|
self.form.cardLabel.show()
|
||||||
self.form.fieldsArea.show()
|
self.form.fieldsArea.show()
|
||||||
else:
|
else:
|
||||||
#self.form.cardInfoGroup.hide()
|
self.form.cardLabel.hide()
|
||||||
self.form.fieldsArea.hide()
|
self.form.fieldsArea.hide()
|
||||||
if not self.focusCard():
|
if not self.focusCard():
|
||||||
if self.model.cards:
|
if self.model.cards:
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@ _html = """
|
||||||
}
|
}
|
||||||
.fname { font-size: 14px; vertical-align: middle; padding-right: 5px; }
|
.fname { font-size: 14px; vertical-align: middle; padding-right: 5px; }
|
||||||
img { max-width: 150; max-height: 150; }
|
img { max-width: 150; max-height: 150; }
|
||||||
|
body { margin: 5px; }
|
||||||
</style><script>
|
</style><script>
|
||||||
%s
|
%s
|
||||||
|
|
||||||
|
|
@ -429,6 +430,7 @@ class Editor(object):
|
||||||
def setupTagsAndGroup(self):
|
def setupTagsAndGroup(self):
|
||||||
import aqt.tagedit
|
import aqt.tagedit
|
||||||
g = QGroupBox(self.widget)
|
g = QGroupBox(self.widget)
|
||||||
|
g.setFlat(True)
|
||||||
tb = QGridLayout()
|
tb = QGridLayout()
|
||||||
tb.setSpacing(12)
|
tb.setSpacing(12)
|
||||||
tb.setMargin(6)
|
tb.setMargin(6)
|
||||||
|
|
@ -441,11 +443,11 @@ class Editor(object):
|
||||||
tb.addWidget(self.group, 0, 1)
|
tb.addWidget(self.group, 0, 1)
|
||||||
# tags
|
# tags
|
||||||
l = QLabel(_("Tags"))
|
l = QLabel(_("Tags"))
|
||||||
tb.addWidget(l, 1, 0)
|
tb.addWidget(l, 0, 2)
|
||||||
self.tags = aqt.tagedit.TagEdit(self.widget)
|
self.tags = aqt.tagedit.TagEdit(self.widget)
|
||||||
self.tags.connect(self.tags, SIGNAL("lostFocus"),
|
self.tags.connect(self.tags, SIGNAL("lostFocus"),
|
||||||
self.saveTagsAndGroup)
|
self.saveTagsAndGroup)
|
||||||
tb.addWidget(self.tags, 1, 1)
|
tb.addWidget(self.tags, 0, 3)
|
||||||
g.setLayout(tb)
|
g.setLayout(tb)
|
||||||
self.outerLayout.addWidget(g)
|
self.outerLayout.addWidget(g)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue