Migrate to PySide6

This commit is contained in:
Raffson
2023-10-08 00:40:18 +02:00
parent 93b83f2bc8
commit c4be00d11b
114 changed files with 220 additions and 227 deletions

View File

@@ -2,9 +2,9 @@ from __future__ import annotations
from pathlib import Path
from PySide2.QtCore import Qt
from PySide2.QtGui import QIcon, QPixmap
from PySide2.QtWidgets import (
from PySide6.QtCore import Qt
from PySide6.QtGui import QIcon, QPixmap
from PySide6.QtWidgets import (
QDialog,
QGridLayout,
QLabel,
@@ -90,7 +90,7 @@ class QUnitInfoWindow(QDialog):
# Build the topmost details grid.
self.details_grid = QFrame()
self.details_grid_layout = QGridLayout()
self.details_grid_layout.setMargin(0)
self.details_grid_layout.setContentsMargins(0, 0, 0, 0)
self.name_box = QLabel(
f"<b>Name:</b> {unit_type.manufacturer} {unit_type.display_name}"