jefdongus / insert-symbols-anki-addon

Anki add-on to insert Unicode symbols into cards.
https://ankiweb.net/shared/info/2040501954
24 stars 10 forks source link

Anki 2.1.50 warns about deprecated calls #33

Closed gregorias closed 2 years ago

gregorias commented 2 years ago

When running Anki 2.1.50, I get the following warnings for this add-on

addons21/2040501954/Ui_SymbolWindow.py:54:'QSizePolicy.Expanding' will stop working. Please use 'QSizePolicy.Policy.Expanding' instead.
addons21/2040501954/Ui_SymbolWindow.py:54:'QSizePolicy.Expanding' will stop working. Please use 'QSizePolicy.Policy.Expanding' instead.
addons21/2040501954/Ui_SymbolWindow.py:59:'Qt.WheelFocus' will stop working. Please use 'Qt.FocusPolicy.WheelFocus' instead.
addons21/2040501954/Ui_SymbolWindow.py:60:'QFrame.Plain' will stop working. Please use 'QFrame.Shadow.Plain' instead.
addons21/2040501954/Ui_SymbolWindow.py:62:'Qt.ScrollBarAlwaysOff' will stop working. Please use 'Qt.ScrollBarPolicy.ScrollBarAlwaysOff' instead.
addons21/2040501954/Ui_SymbolWindow.py:63:'QAbstractItemView.NoEditTriggers' will stop working. Please use 'QAbstractItemView.EditTrigger.NoEditTriggers' instead.
addons21/2040501954/Ui_SymbolWindow.py:68:'QAbstractItemView.SingleSelection' will stop working. Please use 'QAbstractItemView.SelectionMode.SingleSelection' instead.
addons21/2040501954/Ui_SymbolWindow.py:69:'QAbstractItemView.SelectRows' will stop working. Please use 'QAbstractItemView.SelectionBehavior.SelectRows' instead.
addons21/2040501954/Ui_SymbolWindow.py:70:'Qt.ElideRight' will stop working. Please use 'Qt.TextElideMode.ElideRight' instead.
addons21/2040501954/Ui_SymbolWindow.py:97:'QSizePolicy.Fixed' will stop working. Please use 'QSizePolicy.Policy.Fixed' instead.
addons21/2040501954/Ui_SymbolWindow.py:97:'QSizePolicy.Fixed' will stop working. Please use 'QSizePolicy.Policy.Fixed' instead.
addons21/2040501954/Ui_SymbolWindow.py:108:'QSizePolicy.Minimum' will stop working. Please use 'QSizePolicy.Policy.Minimum' instead.
addons21/2040501954/Ui_SymbolWindow.py:108:'QSizePolicy.Expanding' will stop working. Please use 'QSizePolicy.Policy.Expanding' instead.
addons21/2040501954/Ui_SymbolWindow.py:113:'QLayout.SetDefaultConstraint' will stop working. Please use 'QLayout.SizeConstraint.SetDefaultConstraint' instead.
addons21/2040501954/Ui_SymbolWindow.py:122:'QSizePolicy.Expanding' will stop working. Please use 'QSizePolicy.Policy.Expanding' instead.
addons21/2040501954/Ui_SymbolWindow.py:122:'QSizePolicy.Minimum' will stop working. Please use 'QSizePolicy.Policy.Minimum' instead.
addons21/2040501954/Ui_SymbolWindow.py:128:'QSizePolicy.Minimum' will stop working. Please use 'QSizePolicy.Policy.Minimum' instead.
addons21/2040501954/Ui_SymbolWindow.py:128:'QSizePolicy.Fixed' will stop working. Please use 'QSizePolicy.Policy.Fixed' instead.
addons21/2040501954/symbol_window.py:66:'QHeaderView.Stretch' will stop working. Please use 'QHeaderView.ResizeMode.Stretch' instead.
addons21/2040501954/symbol_window.py:67:'QHeaderView.Stretch' will stop working. Please use 'QHeaderView.ResizeMode.Stretch' instead.

Should this plugin update the calls as suggested?

jefdongus commented 2 years ago

Should be fixed now I think.