mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01: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:
parent
bfba0a5d5e
commit
5b31acc7f5
@ -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):
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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() ]
|
||||
|
@ -17,7 +17,7 @@
|
||||
# ============================================================
|
||||
|
||||
import Falkon
|
||||
from PySide2 import QtCore
|
||||
from PySide6 import QtCore
|
||||
from middleclickloader.mcl_handler import MCL_Handler
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -20,7 +20,7 @@ import os
|
||||
import re
|
||||
import enum
|
||||
import shlex
|
||||
from PySide2 import QtCore, QtGui
|
||||
from PySide6 import QtCore, QtGui
|
||||
|
||||
|
||||
class Action():
|
||||
|
@ -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
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
# ============================================================
|
||||
import Falkon
|
||||
import os
|
||||
from PySide2 import QtGui, QtWidgets
|
||||
from PySide6 import QtGui, QtWidgets
|
||||
from runaction.i18n import i18n
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user