1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 09:42: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/>.
# ============================================================
import Falkon
from PySide2 import QtGui, QtWidgets
from PySide6 import QtGui, QtWidgets
class HelloButton(Falkon.AbstractButtonInterface):
def __init__(self):

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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