Skip to content

Commit

Permalink
Add QtWidgets.QFileDialog.Options as alias of QtWidgets.QFileDialog.O…
Browse files Browse the repository at this point in the history
…ption
  • Loading branch information
dalthviz committed Aug 21, 2023
1 parent 255c6b4 commit 545d193
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qtpy/QtWidgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ def _directory_to_dir_(*args, **kwargs):
QMenu.exec_ = lambda *args, **kwargs: possibly_static_exec(QMenu, *args, **kwargs)
QLineEdit.getTextMargins = lambda self: (self.textMargins().left(), self.textMargins().top(), self.textMargins().right(), self.textMargins().bottom())

# Map missing flags definitions
QFileDialog.Options = QFileDialog.Option

# Allow unscoped access for enums inside the QtWidgets module
from .enums_compat import promote_enums
promote_enums(QtWidgets)
Expand Down

0 comments on commit 545d193

Please sign in to comment.