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 1d56871
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions morph/readability_settings_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from PyQt6 import QtCore, QtGui, QtWidgets
except:
from PyQt5 import QtCore, QtGui, QtWidgets
PyQt5.QtCore.Qt.AlignmentFlag = PyQt5.QtCore.Qt


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


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

0 comments on commit 1d56871

Please sign in to comment.