Skip to content

Commit

Permalink
Add AlignmentFlag alias
Browse files Browse the repository at this point in the history
  • Loading branch information
landonepps committed Aug 17, 2023
1 parent 0c6e239 commit 3624650
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions morph/readability_settings_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
from PyQt6 import QtCore, QtGui, QtWidgets
except:
from PyQt5 import QtCore, QtGui, QtWidgets
QtCore.Qt.AlignmentFlag.AlignLeading = QtCore.Qt.AlignLeading
QtCore.Qt.AlignmentFlag.AlignTrailing = QtCore.Qt.AlignTrailing


class Ui_ReadabilitySettingsDialog(object):
Expand Down
2 changes: 2 additions & 0 deletions morph/readability_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
from PyQt6 import QtCore, QtGui, QtWidgets
except:
from PyQt5 import QtCore, QtGui, QtWidgets
QtCore.Qt.AlignmentFlag.AlignLeading = QtCore.Qt.AlignLeading
QtCore.Qt.AlignmentFlag.AlignTrailing = QtCore.Qt.AlignTrailing


class Ui_ReadabilityDialog(object):
Expand Down
2 changes: 2 additions & 0 deletions scripts/build_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ def build_ui(in_file, out_file):
from PyQt6 import {imports}
except:
from PyQt5 import {imports}
QtCore.Qt.AlignmentFlag.AlignLeading = QtCore.Qt.AlignLeading
QtCore.Qt.AlignmentFlag.AlignTrailing = QtCore.Qt.AlignTrailing
""")
else:
sources.write(line)
Expand Down

0 comments on commit 3624650

Please sign in to comment.