mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Align pilots in create-flight dialog
This commit is contained in:
parent
431492fa77
commit
db73a3aa27
@ -14,6 +14,7 @@ from PySide6.QtWidgets import (
|
|||||||
QPushButton,
|
QPushButton,
|
||||||
QDialog,
|
QDialog,
|
||||||
QWidget,
|
QWidget,
|
||||||
|
QSizePolicy,
|
||||||
)
|
)
|
||||||
|
|
||||||
from game import Game
|
from game import Game
|
||||||
@ -115,6 +116,9 @@ class PilotControls(QHBoxLayout):
|
|||||||
self.pilots_changed = pilots_changed
|
self.pilots_changed = pilots_changed
|
||||||
|
|
||||||
self.selector = PilotSelector(squadron, roster, idx)
|
self.selector = PilotSelector(squadron, roster, idx)
|
||||||
|
self.selector.setSizePolicy(
|
||||||
|
QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Fixed
|
||||||
|
)
|
||||||
self.selector.currentIndexChanged.connect(self.on_pilot_changed)
|
self.selector.currentIndexChanged.connect(self.on_pilot_changed)
|
||||||
self.addWidget(self.selector)
|
self.addWidget(self.selector)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user