1- # Form implementation generated from reading ui file '. /settings_dialog.ui'
1+ # Form implementation generated from reading ui file 'ankimorphs/ui /settings_dialog.ui'
22#
33# Created by: PyQt6 UI code generator 6.4.2
44#
@@ -193,6 +193,12 @@ def setupUi(self, SettingsDialog):
193193 self .verticalLayout_18 .setObjectName ("verticalLayout_18" )
194194 self .verticalLayout_17 = QtWidgets .QVBoxLayout ()
195195 self .verticalLayout_17 .setObjectName ("verticalLayout_17" )
196+ self .verticalLayout_21 = QtWidgets .QVBoxLayout ()
197+ self .verticalLayout_21 .setObjectName ("verticalLayout_21" )
198+ self .recalc_on_sync_input = QtWidgets .QCheckBox (parent = self .recalc_tab )
199+ self .recalc_on_sync_input .setObjectName ("recalc_on_sync_input" )
200+ self .verticalLayout_21 .addWidget (self .recalc_on_sync_input )
201+ self .verticalLayout_17 .addLayout (self .verticalLayout_21 )
196202 self .horizontalLayout_6 = QtWidgets .QHBoxLayout ()
197203 self .horizontalLayout_6 .setContentsMargins (- 1 , 10 , - 1 , - 1 )
198204 self .horizontalLayout_6 .setObjectName ("horizontalLayout_6" )
@@ -208,9 +214,6 @@ def setupUi(self, SettingsDialog):
208214 spacerItem8 = QtWidgets .QSpacerItem (40 , 20 , QtWidgets .QSizePolicy .Policy .Expanding , QtWidgets .QSizePolicy .Policy .Minimum )
209215 self .horizontalLayout_6 .addItem (spacerItem8 )
210216 self .verticalLayout_17 .addLayout (self .horizontalLayout_6 )
211- self .recalc_on_sync = QtWidgets .QCheckBox (parent = self .recalc_tab )
212- self .recalc_on_sync .setObjectName ("recalc_on_sync" )
213- self .verticalLayout_17 .addWidget (self .recalc_on_sync )
214217 self .verticalLayout_14 = QtWidgets .QVBoxLayout ()
215218 self .verticalLayout_14 .setContentsMargins (- 1 , 10 , - 1 , - 1 )
216219 self .verticalLayout_14 .setObjectName ("verticalLayout_14" )
@@ -372,9 +375,9 @@ def retranslateUi(self, SettingsDialog):
372375 self .skip_show_num_of_skipped_cards_input .setText (_translate ("SettingsDialog" , "Show \" skipped x cards\" notifications" ))
373376 self .restore_skip_defaults_button .setText (_translate ("SettingsDialog" , "Restore Default Skip Settings" ))
374377 self .tabWidget .setTabText (self .tabWidget .indexOf (self .skip_tab ), _translate ("SettingsDialog" , "Skip" ))
378+ self .recalc_on_sync_input .setText (_translate ("SettingsDialog" , "Recalc on sync" ))
375379 self .label_16 .setText (_translate ("SettingsDialog" , "Min. interval for known morphs:" ))
376380 self .label_17 .setText (_translate ("SettingsDialog" , "days" ))
377- self .recalc_on_sync .setText (_translate ("SettingsDialog" , "Recalc on sync" ))
378381 self .label_5 .setText (_translate ("SettingsDialog" , "Prioritize morphs based on:" ))
379382 self .recalc_prioritize_collection_input .setText (_translate ("SettingsDialog" , "Frequency in card collection" ))
380383 self .restore_recalc_defaults_button .setText (_translate ("SettingsDialog" , "Restore Default Recalc Settings" ))
@@ -392,13 +395,3 @@ def retranslateUi(self, SettingsDialog):
392395 self .ankimorphs_version_label .setText (_translate ("SettingsDialog" , "AnkiMorphs version: x" ))
393396 self .cancel_button .setText (_translate ("SettingsDialog" , "Cancel" ))
394397 self .save_button .setText (_translate ("SettingsDialog" , "Save" ))
395-
396-
397- if __name__ == "__main__" :
398- import sys
399- app = QtWidgets .QApplication (sys .argv )
400- SettingsDialog = QtWidgets .QDialog ()
401- ui = Ui_SettingsDialog ()
402- ui .setupUi (SettingsDialog )
403- SettingsDialog .show ()
404- sys .exit (app .exec ())
0 commit comments