mirror of
https://github.com/ankitects/anki.git
synced 2026-01-07 02:53:54 -05:00
Remove add_close_shortcut method from Utils
This commit is contained in:
parent
4847eaa2ab
commit
815c8a4d08
1 changed files with 0 additions and 9 deletions
|
|
@ -45,7 +45,6 @@ from aqt.qt import (
|
||||||
QFrame,
|
QFrame,
|
||||||
QHeaderView,
|
QHeaderView,
|
||||||
QIcon,
|
QIcon,
|
||||||
QKeySequence,
|
|
||||||
QLabel,
|
QLabel,
|
||||||
QLineEdit,
|
QLineEdit,
|
||||||
QListWidget,
|
QListWidget,
|
||||||
|
|
@ -61,7 +60,6 @@ from aqt.qt import (
|
||||||
QPlainTextEdit,
|
QPlainTextEdit,
|
||||||
QPoint,
|
QPoint,
|
||||||
QPushButton,
|
QPushButton,
|
||||||
QShortcut,
|
|
||||||
QSize,
|
QSize,
|
||||||
QSplitter,
|
QSplitter,
|
||||||
QStandardPaths,
|
QStandardPaths,
|
||||||
|
|
@ -1020,13 +1018,6 @@ def maybeHideClose(bbox: QDialogButtonBox) -> None:
|
||||||
bbox.removeButton(b)
|
bbox.removeButton(b)
|
||||||
|
|
||||||
|
|
||||||
def add_close_shortcut(widg: QWidget) -> None:
|
|
||||||
if not is_mac:
|
|
||||||
return
|
|
||||||
shortcut = QShortcut(QKeySequence("Ctrl+W"), widg)
|
|
||||||
qconnect(shortcut.activated, widg.close)
|
|
||||||
|
|
||||||
|
|
||||||
def downArrow() -> str:
|
def downArrow() -> str:
|
||||||
if is_win:
|
if is_win:
|
||||||
return "▼"
|
return "▼"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue