Hello Jeremy, thank you for your contribution. I am uploading a new release of Pampi to Debian, with release number 1.4+dfsg-1
@pascal.peter: please, when you will commit new code to your repository, tag it with somthing greater or equal to v1.4 (for example, v2.0, v1.5, v1.4.1 and so on), it will make easier for me to track upstream changes when you author them. @all: I have introduced further changes in source files, to comply with Qt6. The latest release in Debian contains changes proposed by Jeremy Bícha, and some changes I did on top of them. I attach hereby patches about them. Best regards, Georges. Jeremy Bícha a écrit : > Source: pampi > Version: 1.3+dfsg1-5 > Severity: serious > Tags: patch > X-Debbugs-CC: [email protected] > Control: forwarded -1 https://gitlab.com/edleh/pampi/-/merge_requests/4 > > Please consider applying the attached patch. > > python3-pyqt5.qtwebengine and qtwebengine-opensource-src (Qt 5) are > being removed from Testing. It is necessary to fix this bug to get > pampi back into Testing. > > Thank you, > Jeremy Bícha
Index: pampi/pampi/libs/utils.py
===================================================================
--- pampi.orig/pampi/libs/utils.py
+++ pampi/pampi/libs/utils.py
@@ -154,14 +154,14 @@ def loadStyle():
global STYLE
style = QtWidgets.QApplication.style()
STYLE = {
- 'PM_ToolBarIconSize': style.pixelMetric(QtWidgets.QStyle.PM_ToolBarIconSize),
- 'PM_LargeIconSize': style.pixelMetric(QtWidgets.QStyle.PM_LargeIconSize),
- #'PM_SmallIconSize': style.pixelMetric(QtWidgets.QStyle.PM_SmallIconSize),
- #'PM_IconViewIconSize': style.pixelMetric(QtWidgets.QStyle.PM_IconViewIconSize),
- #'PM_ListViewIconSize': style.pixelMetric(QtWidgets.QStyle.PM_ListViewIconSize),
- #'PM_TabBarIconSize': style.pixelMetric(QtWidgets.QStyle.PM_TabBarIconSize),
- #'PM_MessageBoxIconSize': style.pixelMetric(QtWidgets.QStyle.PM_MessageBoxIconSize),
- #'PM_ButtonIconSize': style.pixelMetric(QtWidgets.QStyle.PM_ButtonIconSize),
+ 'PM_ToolBarIconSize': style.pixelMetric(QtWidgets.QStyle.PixelMetric.PM_ToolBarIconSize),
+ 'PM_LargeIconSize': style.pixelMetric(QtWidgets.QStyle.PixelMetric.PM_LargeIconSize),
+ #'PM_SmallIconSize': style.pixelMetric(QtWidgets.QStyle.PixelMetric.PM_SmallIconSize),
+ #'PM_IconViewIconSize': style.pixelMetric(QtWidgets.QStyle.PixelMetric.PM_IconViewIconSize),
+ #'PM_ListViewIconSize': style.pixelMetric(QtWidgets.QStyle.PixelMetric.PM_ListViewIconSize),
+ #'PM_TabBarIconSize': style.pixelMetric(QtWidgets.QStyle.PixelMetric.PM_TabBarIconSize),
+ #'PM_MessageBoxIconSize': style.pixelMetric(QtWidgets.QStyle.PixelMetric.PM_MessageBoxIconSize),
+ #'PM_ButtonIconSize': style.pixelMetric(QtWidgets.QStyle.PixelMetric.PM_ButtonIconSize),
}
Index: pampi/pampi/libs/utils_filesdirs.py
===================================================================
--- pampi.orig/pampi/libs/utils_filesdirs.py
+++ pampi/pampi/libs/utils_filesdirs.py
@@ -303,7 +303,7 @@ def readTextFile(fileName):
inFile = QtCore.QFile(fileName)
if inFile.open(QtCore.QIODeviceBase.OpenModeFlag.ReadOnly | QtCore.QIODeviceBase.OpenModeFlag.Text):
stream = QtCore.QTextStream(inFile)
- stream.setCodec('UTF-8')
+ stream.setEncoding(QtCore.QStringConverter.Encoding.Utf8)
result = stream.readAll()
inFile.close()
return result
Index: pampi/pampi/libs/Makefile
===================================================================
--- pampi.orig/pampi/libs/Makefile
+++ pampi/pampi/libs/Makefile
@@ -1,5 +1,5 @@
-UIFILES = $(shell ls *.ui)
-RCFILES = $(shell ls *.rc)
+UIFILES = $(wildcard *.ui)
+RCFILES = $(wildcard *.rc)
PyUIFILES = $(patsubst %.ui, ui_%.py, $(UIFILES))
PyRCFILES = $(patsubst %.rc, rc_%.py, $(RCFILES))
@@ -12,7 +12,7 @@ ui_%.py : %.ui
rc_%.py : %.rc
rcc -g python $< -o $@
- sed -i 's/from PySide6/from PyQt6/' $@
+ sed -i 's/from PySide./from PyQt6/' $@
clean:
rm -f *~
Index: pampi/pampi/libs/plugins/Makefile
===================================================================
--- pampi.orig/pampi/libs/plugins/Makefile
+++ pampi/pampi/libs/plugins/Makefile
@@ -1,5 +1,5 @@
-UIFILES = $(shell ls *.ui)
-RCFILES = $(shell ls *.rc)
+UIFILES = $(wildcard *.ui)
+RCFILES = $(wildcard *.rc)
PyUIFILES = $(patsubst %.ui, ui_%.py, $(UIFILES))
PyRCFILES = $(patsubst %.rc, %_rc.py, $(RCFILES))
@@ -12,7 +12,7 @@ ui_%.py : %.ui
%_rc.py : %.rc
rcc -g python $< -o $@
- sed -i 's/from PySide6/from PyQt6/' $@
+ sed -i 's/from PySide./from PyQt6/' $@
clean:
rm -f *~
signature.asc
Description: PGP signature

