Skip to content

Commit

Permalink
use __version__ from QtCore instead of qVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
emcek committed Jan 31, 2025
1 parent 5c564fe commit cace11f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/dcspy/qt_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
from packaging import version
from pydantic_core import ValidationError
from PySide6 import __version__ as pyside6_ver
from PySide6.QtCore import QAbstractItemModel, QFile, QIODevice, QMetaObject, QObject, QRunnable, Qt, QThreadPool, Signal, SignalInstance, Slot, qVersion
from PySide6.QtCore import QAbstractItemModel, QFile, QIODevice, QMetaObject, QObject, QRunnable, Qt, QThreadPool, Signal, SignalInstance, Slot
from PySide6.QtCore import __version__ as qt6_ver
from PySide6.QtGui import QAction, QActionGroup, QFont, QIcon, QPixmap, QShowEvent, QStandardItemModel
from PySide6.QtUiTools import QUiLoader
from PySide6.QtWidgets import (QApplication, QButtonGroup, QCheckBox, QComboBox, QCompleter, QDialog, QDockWidget, QFileDialog, QGroupBox, QLabel, QLineEdit,
Expand Down Expand Up @@ -1757,7 +1758,7 @@ def showEvent(self, event: QShowEvent):
text += f'<br><b>Python</b>: {python_implementation()}-{python_version()}'
text += f'<br><b>Config</b>: <a href="file:///{default_yaml.parent}">{default_yaml.name}</a>'
text += f'<br><b>Git</b>: {d.git_ver}'
text += f'<br><b>PySide6</b>: {pyside6_ver} / <b>Qt</b>: {qVersion()}'
text += f'<br><b>PySide6</b>: {pyside6_ver} / <b>Qt</b>: {qt6_ver}'
text += f'<br><b>DCSpy</b>: {d.dcspy_ver}'
text += f'<br><b>DCS-BIOS</b>: <a href="https://github.com/DCS-Skunkworks/dcs-bios/releases">{d.bios_ver}</a> '
if d.sha != 'N/A':
Expand Down

0 comments on commit cace11f

Please sign in to comment.