From cc91017bf133f0ca5cbdcebae7b8b4834bfe05dd Mon Sep 17 00:00:00 2001 From: RumovZ Date: Fri, 11 Feb 2022 01:15:36 +0100 Subject: [PATCH] Remove unused actions from ui files (#1655) * Remove redundant actions in add dialog * Remove unused actions from main and browser --- qt/aqt/forms/addcards.ui | 377 +-------------------------------------- qt/aqt/forms/browser.ui | 5 - qt/aqt/forms/main.ui | 17 +- 3 files changed, 4 insertions(+), 395 deletions(-) diff --git a/qt/aqt/forms/addcards.ui b/qt/aqt/forms/addcards.ui index 81d8ad4b2..50172015e 100644 --- a/qt/aqt/forms/addcards.ui +++ b/qt/aqt/forms/addcards.ui @@ -88,386 +88,13 @@ 0 0 750 - 26 + 22 - - - QT_ACCEL_RESCHEDULE - - - - - qt_accel_select_all - - - Ctrl+Alt+A - - - - - qt_accel_undo - - - Ctrl+Z - - - - - qt_accel_invert_selection - - - Ctrl+Alt+S - - - - - qt_accel_find - - - Ctrl+F - - - - - qt_accel_note - - - Ctrl+Shift+N - - - - - qt_accel_next_card - - - Ctrl+N - - - - - qt_accel_previous_card - - - Ctrl+P - - - - - qt_accel_guide - - - F1 - - - - - browsing_change_note_type2 - - - Ctrl+Shift+M - - - - - qt_accel_select_notes - - - - - qt_accel_find_and_replace - - - Ctrl+Alt+F - - - - - qt_accel_filter - - - Ctrl+Shift+F - - - - - browsing_card_list - - - Ctrl+Shift+L - - - - - qt_accel_find_duplicates - - - - - browsing_reposition - - - Ctrl+Shift+S - - - - - browsing_first_card - - - Home - - - - - browsing_last_card - - - End - - - - - actions_close - - - Ctrl+W - - - - - qt_accel_info - - - Ctrl+Shift+I - - - - - browsing_add_tags2 - - - Ctrl+Shift+A - - - - - browsing_remove_tags - - - Ctrl+Alt+Shift+A - - - - - true - - - browsing_toggle_suspend - - - Ctrl+J - - - - - actions_delete - - - Ctrl+Del - - - - - browsing_add_notes - - - Ctrl+E - - - - - browsing_change_deck2 - - - Ctrl+D - - - - - true - - - actions_flag_red - - - Ctrl+1 - - - - - true - - - actions_flag_orange - - - Ctrl+2 - - - - - true - - - actions_flag_green - - - Ctrl+3 - - - - - true - - - actions_flag_blue - - - Ctrl+4 - - - - - browsing_sidebar - - - Ctrl+Shift+R - - - - - browsing_clear_unused_tags - - - - - browsing_manage_note_types - - - - - true - - - browsing_toggle_mark - - - Ctrl+K - - - - - qt_accel_export_notes - - - Ctrl+Shift+E - - - - - qt_misc_create_filtered_deck - - - Ctrl+G - - - - - qt_accel_set_due_date - - - Ctrl+Shift+D - - - - - qt_accel_forget - - - Ctrl+Alt+N - - - - - browsing_toggle_showing_cards_notes - - - Alt+T - - - - - qt_accel_redo - - - Ctrl+Shift+Z - - - - - true - - - actions_flag_pink - - - Ctrl+5 - - - - - true - - - actions_flag_turquoise - - - Ctrl+6 - - - - - true - - - actions_flag_purple - - - Ctrl+7 - - - - - actionClose - triggered() - Dialog - close() - - - -1 - -1 - - - 374 - 199 - - - - + diff --git a/qt/aqt/forms/browser.ui b/qt/aqt/forms/browser.ui index 818c8246c..07fbd9bb3 100644 --- a/qt/aqt/forms/browser.ui +++ b/qt/aqt/forms/browser.ui @@ -306,11 +306,6 @@ - - - QT_ACCEL_RESCHEDULE - - qt_accel_select_all diff --git a/qt/aqt/forms/main.ui b/qt/aqt/forms/main.ui index cfd2a38ad..caa425933 100644 --- a/qt/aqt/forms/main.ui +++ b/qt/aqt/forms/main.ui @@ -26,7 +26,7 @@ Anki - + :/icons/anki.png:/icons/anki.png @@ -46,7 +46,7 @@ 0 0 667 - 24 + 22 @@ -146,24 +146,11 @@ qt_misc_check_the_files_in_the_media - - - qt_accel_open_addons_folder - - qt_accel_support_anki - - - qt_accel_browse_and_install - - - - - qt_accel_check_database