Skip to content

Commit b4793e7

Browse files
committed
remove pyside2 imports
1 parent bcbb50f commit b4793e7

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

__init__.py

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,11 @@
1111

1212
import binaryninjaui
1313
from binaryninjaui import (getMonospaceFont, UIAction, UIActionHandler, Menu, UIContext)
14-
if "qt_major_version" in binaryninjaui.__dict__ and binaryninjaui.qt_major_version == 6:
15-
from PySide6.QtWidgets import (QLineEdit, QPushButton, QApplication, QWidget,
16-
QVBoxLayout, QHBoxLayout, QDialog, QFileSystemModel, QTreeView, QLabel, QSplitter,
17-
QInputDialog, QMessageBox, QHeaderView, QKeySequenceEdit, QCheckBox)
18-
from PySide6.QtCore import (QDir, Qt, QFileInfo, QItemSelectionModel, QSettings, QUrl)
19-
from PySide6.QtGui import (QFontMetrics, QDesktopServices, QKeySequence, QIcon)
20-
else:
21-
from PySide2.QtWidgets import (QLineEdit, QPushButton, QApplication, QWidget,
22-
QVBoxLayout, QHBoxLayout, QDialog, QFileSystemModel, QTreeView, QLabel, QSplitter,
23-
QInputDialog, QMessageBox, QHeaderView, QKeySequenceEdit, QCheckBox)
24-
from PySide2.QtCore import (QDir, Qt, QFileInfo, QItemSelectionModel, QSettings, QUrl)
25-
from PySide2.QtGui import (QFontMetrics, QDesktopServices, QKeySequence, QIcon)
14+
from PySide6.QtWidgets import (QLineEdit, QPushButton, QApplication, QWidget,
15+
QVBoxLayout, QHBoxLayout, QDialog, QFileSystemModel, QTreeView, QLabel, QSplitter,
16+
QInputDialog, QMessageBox, QHeaderView, QKeySequenceEdit, QCheckBox)
17+
from PySide6.QtCore import (QDir, Qt, QFileInfo, QItemSelectionModel, QSettings, QUrl)
18+
from PySide6.QtGui import (QFontMetrics, QDesktopServices, QKeySequence, QIcon, QColor)
2619
from binaryninja import user_plugin_path, core_version
2720
from binaryninja.plugin import BackgroundTaskThread
2821
from binaryninja.log import (log_error, log_debug, log_alert, log_warn)

0 commit comments

Comments
 (0)