|
11 | 11 |
|
12 | 12 | import binaryninjaui
|
13 | 13 | 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) |
26 | 19 | from binaryninja import user_plugin_path, core_version
|
27 | 20 | from binaryninja.plugin import BackgroundTaskThread
|
28 | 21 | from binaryninja.log import (log_error, log_debug, log_alert, log_warn)
|
|
0 commit comments