From b0f7dda102019ff8560afaeb9b7309fe650fcc0c Mon Sep 17 00:00:00 2001 From: KIU Shueng Chuan Date: Sun, 10 Jan 2021 12:58:33 +0800 Subject: [PATCH] QFont.setWeight(75) is redundant QFont.setBold(True) calls QFont.setWeight(QFont.Weight.Bold) in Qt 5, QFont.Weight.Bold == 75 in Qt 6, QFont.Weight.Bold == 700 in PySide6, QFont.setWeight() no longer accepts an integer value. --- examples/exampleLoaderTemplate.ui | 1 - pyqtgraph/flowchart/FlowchartCtrlTemplate.ui | 1 - pyqtgraph/flowchart/FlowchartTemplate.ui | 1 - pyqtgraph/imageview/ImageViewTemplate.ui | 3 --- 4 files changed, 6 deletions(-) diff --git a/examples/exampleLoaderTemplate.ui b/examples/exampleLoaderTemplate.ui index a4d65e89..67ff5d5e 100644 --- a/examples/exampleLoaderTemplate.ui +++ b/examples/exampleLoaderTemplate.ui @@ -115,7 +115,6 @@ - 75 true diff --git a/pyqtgraph/flowchart/FlowchartCtrlTemplate.ui b/pyqtgraph/flowchart/FlowchartCtrlTemplate.ui index 6a9a203a..5198f920 100644 --- a/pyqtgraph/flowchart/FlowchartCtrlTemplate.ui +++ b/pyqtgraph/flowchart/FlowchartCtrlTemplate.ui @@ -89,7 +89,6 @@ - 75 true diff --git a/pyqtgraph/flowchart/FlowchartTemplate.ui b/pyqtgraph/flowchart/FlowchartTemplate.ui index 22934b91..8b4ef814 100644 --- a/pyqtgraph/flowchart/FlowchartTemplate.ui +++ b/pyqtgraph/flowchart/FlowchartTemplate.ui @@ -40,7 +40,6 @@ - 75 true diff --git a/pyqtgraph/imageview/ImageViewTemplate.ui b/pyqtgraph/imageview/ImageViewTemplate.ui index ece77864..9c2bd9c5 100644 --- a/pyqtgraph/imageview/ImageViewTemplate.ui +++ b/pyqtgraph/imageview/ImageViewTemplate.ui @@ -116,7 +116,6 @@ - 75 true @@ -129,7 +128,6 @@ - 75 true @@ -142,7 +140,6 @@ - 75 true