mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
remove options button
This commit is contained in:
parent
d1b565e734
commit
7577e83c87
2 changed files with 1 additions and 15 deletions
|
@ -1122,6 +1122,7 @@ To upgrade an old deck, download Anki 0.9.8.7."""))
|
||||||
if self.deck and not self.deck.syncName:
|
if self.deck and not self.deck.syncName:
|
||||||
if interactive:
|
if interactive:
|
||||||
self.onDeckProperties()
|
self.onDeckProperties()
|
||||||
|
self.deckProperties.dialog.qtabwidget.setCurrentIndex(1)
|
||||||
return
|
return
|
||||||
if self.deck is None and self.deckPath is None:
|
if self.deck is None and self.deckPath is None:
|
||||||
# qt on linux incorrectly accepts shortcuts for disabled actions
|
# qt on linux incorrectly accepts shortcuts for disabled actions
|
||||||
|
|
|
@ -102,17 +102,6 @@ class StatusView(object):
|
||||||
self.plastiqueStyle = QStyleFactory.create("plastique")
|
self.plastiqueStyle = QStyleFactory.create("plastique")
|
||||||
self.progressBar.setStyle(self.plastiqueStyle)
|
self.progressBar.setStyle(self.plastiqueStyle)
|
||||||
self.retentionBar.setStyle(self.plastiqueStyle)
|
self.retentionBar.setStyle(self.plastiqueStyle)
|
||||||
self.optionsButton = QPushButton()
|
|
||||||
self.optionsButton.setIcon(QIcon(":/icons/configure.png"))
|
|
||||||
self.optionsButton.setFixedSize(20, 20)
|
|
||||||
self.optionsButton.setFocusPolicy(Qt.NoFocus)
|
|
||||||
self.optionsButton.setToolTip(_(
|
|
||||||
"Click this button to customize\n"
|
|
||||||
"the way Anki shows you cards."))
|
|
||||||
self.main.connect(self.optionsButton,
|
|
||||||
SIGNAL("clicked()"),
|
|
||||||
self.onConfigure)
|
|
||||||
self.addWidget(self.optionsButton)
|
|
||||||
self.redraw()
|
self.redraw()
|
||||||
|
|
||||||
def addWidget(self, w, stretch=0, perm=True):
|
def addWidget(self, w, stretch=0, perm=True):
|
||||||
|
@ -250,7 +239,3 @@ You should aim to answer each question within<br>
|
||||||
self.timer.setText('01:00')
|
self.timer.setText('01:00')
|
||||||
return
|
return
|
||||||
self.timer.setText("00:00")
|
self.timer.setText("00:00")
|
||||||
|
|
||||||
def onConfigure(self):
|
|
||||||
self.main.deckProperties = ui.deckproperties.DeckProperties(self.main)
|
|
||||||
self.main.deckProperties.dialog.qtabwidget.setCurrentIndex(1)
|
|
||||||
|
|
Loading…
Reference in a new issue