1
0
Fork 0
mirror of synced 2024-06-22 04:20:25 +12:00

Ui: Delete QtCore.QMetaObject.connectSlotsByName from UI python files

Since pyuic5 doesn't handle `connectSlotByName=False` in ui files
use sed in `misc/ui2py.sh` to remove those lines

Signed-off-by: loathingKernel <142770+loathingKernel@users.noreply.github.com>
This commit is contained in:
loathingKernel 2023-01-15 02:17:13 +02:00
parent 8004230e19
commit d3bee28443
35 changed files with 2 additions and 35 deletions

View file

@ -14,6 +14,7 @@ changed="$(git diff --name-only HEAD | grep '\.ui')"
for ui in $changed; do
echo "Generating python file for ${ui}"
pyuic5 "${ui}" -x -o "${ui%.ui}.py"
sed '/QtCore.QMetaObject.connectSlotsByName/d' -i "${ui%.ui}.py"
done
cd "$cwd" || exit

View file

@ -101,7 +101,6 @@ class Ui_InstallDialog(object):
self.install_dialog_layout.setLayout(9, QtWidgets.QFormLayout.SpanningRole, self.button_layout)
self.retranslateUi(InstallDialog)
QtCore.QMetaObject.connectSlotsByName(InstallDialog)
def retranslateUi(self, InstallDialog):
_translate = QtCore.QCoreApplication.translate

View file

@ -110,7 +110,6 @@ class Ui_InstallDialogAdvanced(object):
self.install_dialog_advanced_layout.setWidget(6, QtWidgets.QFormLayout.FieldRole, self.download_only_check)
self.retranslateUi(InstallDialogAdvanced)
QtCore.QMetaObject.connectSlotsByName(InstallDialogAdvanced)
def retranslateUi(self, InstallDialogAdvanced):
_translate = QtCore.QCoreApplication.translate

View file

@ -33,7 +33,6 @@ class Ui_LaunchDialog(object):
self.launch_dialog_layout.addWidget(self.progress_bar)
self.retranslateUi(LaunchDialog)
QtCore.QMetaObject.connectSlotsByName(LaunchDialog)
def retranslateUi(self, LaunchDialog):
_translate = QtCore.QCoreApplication.translate

View file

@ -67,7 +67,6 @@ class Ui_BrowserLogin(object):
self.browser_layout.addWidget(self.status_label, 3, 0, 1, 2)
self.retranslateUi(BrowserLogin)
QtCore.QMetaObject.connectSlotsByName(BrowserLogin)
def retranslateUi(self, BrowserLogin):
_translate = QtCore.QCoreApplication.translate

View file

@ -60,7 +60,6 @@ class Ui_ImportLogin(object):
self.import_layout.addItem(spacerItem, 3, 0, 1, 3)
self.retranslateUi(ImportLogin)
QtCore.QMetaObject.connectSlotsByName(ImportLogin)
def retranslateUi(self, ImportLogin):
_translate = QtCore.QCoreApplication.translate

View file

@ -60,7 +60,6 @@ class Ui_LandingPage(object):
self.landing_layout.setRowStretch(2, 1)
self.retranslateUi(LandingPage)
QtCore.QMetaObject.connectSlotsByName(LandingPage)
def retranslateUi(self, LandingPage):
_translate = QtCore.QCoreApplication.translate

View file

@ -43,7 +43,6 @@ class Ui_LoginDialog(object):
self.login_layout.addLayout(self.button_layout)
self.retranslateUi(LoginDialog)
QtCore.QMetaObject.connectSlotsByName(LoginDialog)
def retranslateUi(self, LoginDialog):
_translate = QtCore.QCoreApplication.translate

View file

@ -84,7 +84,6 @@ class Ui_SyncSaveDialog(object):
self.verticalLayout.addLayout(self.horizontalLayout_2)
self.retranslateUi(SyncSaveDialog)
QtCore.QMetaObject.connectSlotsByName(SyncSaveDialog)
def retranslateUi(self, SyncSaveDialog):
_translate = QtCore.QCoreApplication.translate

View file

@ -45,7 +45,6 @@ class Ui_ConsoleEnv(object):
self.retranslateUi(ConsoleEnv)
self.buttons.accepted.connect(ConsoleEnv.accept) # type: ignore
self.buttons.rejected.connect(ConsoleEnv.reject) # type: ignore
QtCore.QMetaObject.connectSlotsByName(ConsoleEnv)
def retranslateUi(self, ConsoleEnv):
_translate = QtCore.QCoreApplication.translate

View file

@ -2,7 +2,7 @@
# Form implementation generated from reading ui file 'rare/ui/components/tabs/downloads/downloads_tab.ui'
#
# Created by: PyQt5 UI code generator 5.15.6
# Created by: PyQt5 UI code generator 5.15.7
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
@ -164,7 +164,6 @@ class Ui_DownloadsTab(object):
self.downloads_tab_layout.addWidget(self.queue_scroll)
self.retranslateUi(DownloadsTab)
QtCore.QMetaObject.connectSlotsByName(DownloadsTab)
def retranslateUi(self, DownloadsTab):
_translate = QtCore.QCoreApplication.translate

View file

@ -90,7 +90,6 @@ class Ui_GameDlc(object):
self.game_dlc_layout.addItem(spacerItem)
self.retranslateUi(GameDlc)
QtCore.QMetaObject.connectSlotsByName(GameDlc)
def retranslateUi(self, GameDlc):
_translate = QtCore.QCoreApplication.translate

View file

@ -102,7 +102,6 @@ class Ui_GameDlcWidget(object):
self.dlc_layout.setStretch(1, 1)
self.retranslateUi(GameDlcWidget)
QtCore.QMetaObject.connectSlotsByName(GameDlcWidget)
def retranslateUi(self, GameDlcWidget):
_translate = QtCore.QCoreApplication.translate

View file

@ -224,7 +224,6 @@ class Ui_GameInfo(object):
self.retranslateUi(GameInfo)
self.game_actions_stack.setCurrentIndex(0)
self.verify_widget.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(GameInfo)
def retranslateUi(self, GameInfo):
_translate = QtCore.QCoreApplication.translate

View file

@ -92,7 +92,6 @@ class Ui_GameSettings(object):
self.game_settings_layout.addWidget(self.linux_settings_widget)
self.retranslateUi(GameSettings)
QtCore.QMetaObject.connectSlotsByName(GameSettings)
def retranslateUi(self, GameSettings):
_translate = QtCore.QCoreApplication.translate

View file

@ -47,7 +47,6 @@ class Ui_EGLSyncGroup(object):
self.egl_sync_layout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.egl_sync_check_label)
self.retranslateUi(EGLSyncGroup)
QtCore.QMetaObject.connectSlotsByName(EGLSyncGroup)
def retranslateUi(self, EGLSyncGroup):
_translate = QtCore.QCoreApplication.translate

View file

@ -52,7 +52,6 @@ class Ui_EGLSyncListGroup(object):
self.egl_sync_list_layout.addWidget(self.buttons_widget)
self.retranslateUi(EGLSyncListGroup)
QtCore.QMetaObject.connectSlotsByName(EGLSyncListGroup)
def retranslateUi(self, EGLSyncListGroup):
_translate = QtCore.QCoreApplication.translate

View file

@ -127,7 +127,6 @@ class Ui_EosWidget(object):
self.retranslateUi(EosWidget)
self.overlay_stack.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(EosWidget)
def retranslateUi(self, EosWidget):
_translate = QtCore.QCoreApplication.translate

View file

@ -63,7 +63,6 @@ class Ui_ImportGroup(object):
self.import_layout.setLayout(4, QtWidgets.QFormLayout.FieldRole, self.button_info_layout)
self.retranslateUi(ImportGroup)
QtCore.QMetaObject.connectSlotsByName(ImportGroup)
def retranslateUi(self, ImportGroup):
_translate = QtCore.QCoreApplication.translate

View file

@ -84,7 +84,6 @@ class Ui_About(object):
self.about_layout.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.license)
self.retranslateUi(About)
QtCore.QMetaObject.connectSlotsByName(About)
def retranslateUi(self, About):
_translate = QtCore.QCoreApplication.translate

View file

@ -145,7 +145,6 @@ class Ui_LegendarySettings(object):
self.legendary_layout.addLayout(self.right_layout)
self.retranslateUi(LegendarySettings)
QtCore.QMetaObject.connectSlotsByName(LegendarySettings)
def retranslateUi(self, LegendarySettings):
_translate = QtCore.QCoreApplication.translate

View file

@ -44,7 +44,6 @@ class Ui_LinuxSettings(object):
self.linux_layout.addItem(spacerItem)
self.retranslateUi(LinuxSettings)
QtCore.QMetaObject.connectSlotsByName(LinuxSettings)
def retranslateUi(self, LinuxSettings):
_translate = QtCore.QCoreApplication.translate

View file

@ -39,7 +39,6 @@ class Ui_ProtonSettings(object):
self.proton_settings_layout.setLayout(1, QtWidgets.QFormLayout.FieldRole, self.prefix_layout)
self.retranslateUi(ProtonSettings)
QtCore.QMetaObject.connectSlotsByName(ProtonSettings)
def retranslateUi(self, ProtonSettings):
_translate = QtCore.QCoreApplication.translate

View file

@ -143,7 +143,6 @@ class Ui_RareSettings(object):
self.rare_layout.addLayout(self.right_layout)
self.retranslateUi(RareSettings)
QtCore.QMetaObject.connectSlotsByName(RareSettings)
def retranslateUi(self, RareSettings):
_translate = QtCore.QCoreApplication.translate

View file

@ -67,7 +67,6 @@ class Ui_DxvkSettings(object):
self.dxvk_layout.addWidget(self.show_dxvk, 0, 1, 1, 2)
self.retranslateUi(DxvkSettings)
QtCore.QMetaObject.connectSlotsByName(DxvkSettings)
def retranslateUi(self, DxvkSettings):
_translate = QtCore.QCoreApplication.translate

View file

@ -42,7 +42,6 @@ class Ui_EnvVars(object):
self.verticalLayout.addWidget(self.env_vars_table)
self.retranslateUi(EnvVars)
QtCore.QMetaObject.connectSlotsByName(EnvVars)
def retranslateUi(self, EnvVars):
_translate = QtCore.QCoreApplication.translate

View file

@ -54,7 +54,6 @@ class Ui_OverlaySettings(object):
self.dxvk_layout.addWidget(self.gb_options, 2, 0, 1, 3)
self.retranslateUi(OverlaySettings)
QtCore.QMetaObject.connectSlotsByName(OverlaySettings)
def retranslateUi(self, OverlaySettings):
_translate = QtCore.QCoreApplication.translate

View file

@ -43,7 +43,6 @@ class Ui_RPCSettings(object):
self.layout.addWidget(self.show_time, 3, 0, 1, 2)
self.retranslateUi(RPCSettings)
QtCore.QMetaObject.connectSlotsByName(RPCSettings)
def retranslateUi(self, RPCSettings):
_translate = QtCore.QCoreApplication.translate

View file

@ -42,7 +42,6 @@ class Ui_WrapperSettings(object):
self.retranslateUi(WrapperSettings)
self.widget_stack.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(WrapperSettings)
def retranslateUi(self, WrapperSettings):
_translate = QtCore.QCoreApplication.translate

View file

@ -107,7 +107,6 @@ class Ui_browse_games(object):
self.retranslateUi(browse_games)
self.stack.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(browse_games)
def retranslateUi(self, browse_games):
_translate = QtCore.QCoreApplication.translate

View file

@ -102,7 +102,6 @@ class Ui_shop_info(object):
self.retranslateUi(shop_info)
self.image_stack.setCurrentIndex(-1)
QtCore.QMetaObject.connectSlotsByName(shop_info)
def retranslateUi(self, shop_info):
_translate = QtCore.QCoreApplication.translate

View file

@ -140,7 +140,6 @@ class Ui_ShopWidget(object):
self.verticalLayout_7.addLayout(self.horizontalLayout_2)
self.retranslateUi(ShopWidget)
QtCore.QMetaObject.connectSlotsByName(ShopWidget)
def retranslateUi(self, ShopWidget):
_translate = QtCore.QCoreApplication.translate

View file

@ -89,7 +89,6 @@ class Ui_Wishlist(object):
Wishlist.addWidget(self.page)
self.retranslateUi(Wishlist)
QtCore.QMetaObject.connectSlotsByName(Wishlist)
def retranslateUi(self, Wishlist):
_translate = QtCore.QCoreApplication.translate

View file

@ -72,7 +72,6 @@ class Ui_WishlistWidget(object):
self.horizontalLayout.addWidget(self.delete_button)
self.retranslateUi(WishlistWidget)
QtCore.QMetaObject.connectSlotsByName(WishlistWidget)
def retranslateUi(self, WishlistWidget):
pass

View file

@ -28,7 +28,6 @@ class Ui_PathEdit(object):
self.layout_pathedit.addWidget(self.path_select)
self.retranslateUi(PathEdit)
QtCore.QMetaObject.connectSlotsByName(PathEdit)
def retranslateUi(self, PathEdit):
_translate = QtCore.QCoreApplication.translate