Skip to content

Commit

Permalink
cleanup QCodeEditor imports
Browse files Browse the repository at this point in the history
  • Loading branch information
psifertex committed Apr 17, 2023
1 parent 6233626 commit 111bdb8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions QCodeEditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@
import binaryninjaui
from binaryninja import log_warn, bncompleter
if "qt_major_version" in binaryninjaui.__dict__ and binaryninjaui.qt_major_version == 6:
from PySide6.QtCore import Qt, QRect, QRegularExpression
from PySide6.QtWidgets import QWidget, QTextEdit, QPlainTextEdit
from PySide6.QtGui import (QPainter, QFont, QSyntaxHighlighter, QTextFormat, QTextCharFormat, QColor, QTextCursor)
from PySide6.QtCore import Qt, QRect
from PySide6.QtWidgets import QWidget, QPlainTextEdit
from PySide6.QtGui import (QPainter, QFont, QSyntaxHighlighter, QTextCharFormat, QTextCursor)
else:
from PySide2.QtCore import Qt, QRect, QRegularExpression
from PySide2.QtWidgets import QWidget, QTextEdit, QPlainTextEdit
from PySide2.QtGui import (QPainter, QFont, QSyntaxHighlighter, QTextFormat, QTextCharFormat, QColor, QTextCursor)
from PySide2.QtCore import Qt, QRect
from PySide2.QtWidgets import QWidget, QPlainTextEdit
from PySide2.QtGui import (QPainter, QFont, QSyntaxHighlighter, QTextCharFormat, QTextCursor)
from binaryninjaui import (getMonospaceFont, getThemeColor, ThemeColor)
try:
from pygments import highlight, token
from pygments import highlight
from pygments.lexers import *
from pygments.formatter import Formatter

Expand Down

0 comments on commit 111bdb8

Please sign in to comment.