mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Migrate to PySide6
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user