From 48607c59ab3a689022619ce04c66cbfe856d77c9 Mon Sep 17 00:00:00 2001 From: Juraj Oravec Date: Sat, 7 Dec 2024 15:43:56 +0100 Subject: [PATCH] Port to PySide6 Signed-off-by: Juraj Oravec --- .gitignore | 1 + toolbartools/Config.py | 2 +- toolbartools/Separator.py | 2 +- toolbartools/Spacer.py | 3 +-- toolbartools/__init__.py | 2 +- toolbartools/i18n.py | 2 +- toolbartools/metadata.desktop | 4 ++-- toolbartools/settingsDialog.py | 3 +-- 8 files changed, 9 insertions(+), 10 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bee8a64 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +__pycache__ diff --git a/toolbartools/Config.py b/toolbartools/Config.py index 667a87f..a2aa825 100644 --- a/toolbartools/Config.py +++ b/toolbartools/Config.py @@ -15,7 +15,7 @@ # along with this program. If not, see . import os -from PySide2.QtCore import Signal, QObject, QSettings +from PySide6.QtCore import Signal, QObject, QSettings class Config(QObject): diff --git a/toolbartools/Separator.py b/toolbartools/Separator.py index d796441..3120bc3 100644 --- a/toolbartools/Separator.py +++ b/toolbartools/Separator.py @@ -14,7 +14,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -from PySide2 import QtCore, QtGui, QtWidgets +from PySide6 import QtGui, QtWidgets class Separator(QtWidgets.QWidget): diff --git a/toolbartools/Spacer.py b/toolbartools/Spacer.py index a6b0dcf..e3c3756 100644 --- a/toolbartools/Spacer.py +++ b/toolbartools/Spacer.py @@ -14,7 +14,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -from PySide2 import QtWidgets +from PySide6 import QtWidgets class Spacer(QtWidgets.QWidget): @@ -49,4 +49,3 @@ class Spacer(QtWidgets.QWidget): return "Spacer " + str(self.number) return "Spacer 1" - diff --git a/toolbartools/__init__.py b/toolbartools/__init__.py index 2a34929..b06e71d 100644 --- a/toolbartools/__init__.py +++ b/toolbartools/__init__.py @@ -16,7 +16,7 @@ import Falkon import os -from PySide2 import QtCore +from PySide6 import QtCore from toolbartools.Config import Config from toolbartools.Spacer import Spacer from toolbartools.Separator import Separator diff --git a/toolbartools/i18n.py b/toolbartools/i18n.py index 3db8440..48ab1d5 100644 --- a/toolbartools/i18n.py +++ b/toolbartools/i18n.py @@ -18,7 +18,7 @@ # ============================================================ import gettext import os -from PySide2 import QtCore +from PySide6 import QtCore locale = QtCore.QLocale.system() languages = [ diff --git a/toolbartools/metadata.desktop b/toolbartools/metadata.desktop index c14f595..f87b816 100644 --- a/toolbartools/metadata.desktop +++ b/toolbartools/metadata.desktop @@ -6,6 +6,6 @@ Type=Service X-Falkon-Type=Extension/Python X-Falkon-Author=Juraj Oravec -X-Falkon-Email=sgd.orava@gmail.com -X-Falkon-Version=1.0.0 +X-Falkon-Email=jurajoravec@mailo.com +X-Falkon-Version=1.1.0 X-Falkon-Settings=true diff --git a/toolbartools/settingsDialog.py b/toolbartools/settingsDialog.py index 2760f49..8a43b65 100644 --- a/toolbartools/settingsDialog.py +++ b/toolbartools/settingsDialog.py @@ -16,9 +16,8 @@ # along with this program. If not, see . # ============================================================ -import Falkon import os -from PySide2 import QtCore, QtWidgets, QtUiTools +from PySide6 import QtCore, QtWidgets, QtUiTools from toolbartools.i18n import i18n