1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 17:52:10 +02:00

Python: Port from Pyside2 to Pyside6

BUG: 477234
FIXED-IN: 24.02.0

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2023-12-07 22:08:37 +01:00
parent bfba0a5d5e
commit 5b31acc7f5
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B
12 changed files with 13 additions and 13 deletions

View File

@ -16,7 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# ============================================================ # ============================================================
import Falkon import Falkon
from PySide2 import QtGui, QtWidgets from PySide6 import QtGui, QtWidgets
class HelloButton(Falkon.AbstractButtonInterface): class HelloButton(Falkon.AbstractButtonInterface):
def __init__(self): def __init__(self):

View File

@ -16,7 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# ============================================================ # ============================================================
import Falkon import Falkon
from PySide2 import QtCore, QtGui, QtWidgets from PySide6 import QtCore, QtGui, QtWidgets
from hellopython import sidebar, button from hellopython import sidebar, button
from hellopython.i18n import i18n from hellopython.i18n import i18n

View File

@ -16,7 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# ============================================================ # ============================================================
import Falkon import Falkon
from PySide2 import QtGui, QtWidgets from PySide6 import QtGui, QtWidgets
from hellopython.i18n import i18n from hellopython.i18n import i18n
class HelloSidebar(Falkon.SideBarInterface): class HelloSidebar(Falkon.SideBarInterface):
@ -24,7 +24,7 @@ class HelloSidebar(Falkon.SideBarInterface):
return i18n("Hello Python Sidebar") return i18n("Hello Python Sidebar")
def createMenuAction(self): def createMenuAction(self):
act = QtWidgets.QAction(i18n("Hello Python Sidebar")) act = QtGui.QAction(i18n("Hello Python Sidebar"))
act.setCheckable(True) act.setCheckable(True)
return act return act

View File

@ -16,7 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# ============================================================ # ============================================================
import gettext import gettext
from PySide2 import QtCore from PySide6 import QtCore
locale = QtCore.QLocale.system() locale = QtCore.QLocale.system()
languages = [ locale.name(), locale.bcp47Name() ] languages = [ locale.name(), locale.bcp47Name() ]

View File

@ -17,7 +17,7 @@
# ============================================================ # ============================================================
import Falkon import Falkon
from PySide2 import QtCore from PySide6 import QtCore
from middleclickloader.mcl_handler import MCL_Handler from middleclickloader.mcl_handler import MCL_Handler

View File

@ -17,7 +17,7 @@
# ============================================================ # ============================================================
import Falkon import Falkon
from PySide2 import QtCore, QtGui, QtWidgets from PySide6 import QtCore, QtGui, QtWidgets
from middleclickloader.mcl_loadmode import MCL_LoadMode from middleclickloader.mcl_loadmode import MCL_LoadMode
from middleclickloader.mcl_settings import MCL_Settings from middleclickloader.mcl_settings import MCL_Settings

View File

@ -17,7 +17,7 @@
# ============================================================ # ============================================================
import os import os
from PySide2 import QtCore, QtWidgets, QtUiTools from PySide6 import QtCore, QtWidgets, QtUiTools
from middleclickloader.i18n import i18n from middleclickloader.i18n import i18n
from middleclickloader.mcl_loadmode import MCL_LoadMode from middleclickloader.mcl_loadmode import MCL_LoadMode

View File

@ -20,7 +20,7 @@ import os
import re import re
import enum import enum
import shlex import shlex
from PySide2 import QtCore, QtGui from PySide6 import QtCore, QtGui
class Action(): class Action():

View File

@ -18,7 +18,7 @@
import Falkon import Falkon
import os import os
import subprocess import subprocess
from PySide2 import QtCore from PySide6 import QtCore
from runaction.action import Action from runaction.action import Action
from runaction.settingsdialog import SettingsDialog from runaction.settingsdialog import SettingsDialog

View File

@ -17,7 +17,7 @@
# ============================================================ # ============================================================
import Falkon import Falkon
import os import os
from PySide2 import QtGui, QtWidgets from PySide6 import QtGui, QtWidgets
from runaction.i18n import i18n from runaction.i18n import i18n

View File

@ -16,7 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# ============================================================ # ============================================================
import Falkon import Falkon
from PySide2 import QtCore from PySide6 import QtCore
from runaction import actionmanager, button from runaction import actionmanager, button

View File

@ -16,7 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# ============================================================ # ============================================================
import os import os
from PySide2 import QtCore, QtWidgets, QtUiTools from PySide6 import QtCore, QtWidgets, QtUiTools
from runaction.i18n import i18n from runaction.i18n import i18n