diff options
author | Christian Tismer <tismer@stackless.com> | 2021-07-03 10:46:33 +0200 |
---|---|---|
committer | Christian Tismer <tismer@stackless.com> | 2021-07-06 18:06:25 +0200 |
commit | 10abd17ffb8826e4aa5861f89642c46c47b641a8 (patch) | |
tree | 25c6c150c1cbbc5cd793b6e6148fcefc2b18a83f /sources/pyside6/doc/tutorials/portingguide/chapter2/bookdelegate.py | |
parent | 57500ee1a277dd36fc650baa1af989a648dec9a7 (diff) |
pathlib: support all cases which are found in the examples
Wherever possible/useful, os.fspath was removed and the
according pathlike modification inserted. This is still
not the awaited end of the conversion, but a good step
forward.
Task-number: PYSIDE-1499
Pick-to: 6.1
Change-Id: I0a22ddeec06ada05dc4a97ed104d06f5f1bbf472
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside6/doc/tutorials/portingguide/chapter2/bookdelegate.py')
-rw-r--r-- | sources/pyside6/doc/tutorials/portingguide/chapter2/bookdelegate.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside6/doc/tutorials/portingguide/chapter2/bookdelegate.py b/sources/pyside6/doc/tutorials/portingguide/chapter2/bookdelegate.py index bebb40f50..31acc901b 100644 --- a/sources/pyside6/doc/tutorials/portingguide/chapter2/bookdelegate.py +++ b/sources/pyside6/doc/tutorials/portingguide/chapter2/bookdelegate.py @@ -55,7 +55,7 @@ class BookDelegate(QSqlRelationalDelegate): def __init__(self, parent=None): QSqlRelationalDelegate.__init__(self, parent) star_png = Path(__file__).parent / "images" / "star.png" - self.star = QPixmap(os.fspath(star_png)) + self.star = QPixmap(star_png) def paint(self, painter, option, index): """ Paint the items in the table. |