mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +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/>.
|
# 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):
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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() ]
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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():
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user