Skip to content

Commit

Permalink
fix: move msg box to top left corner [#38]
Browse files Browse the repository at this point in the history
  • Loading branch information
Joonalai authored and LKajan committed Jun 29, 2023
1 parent 38594fc commit 75fa1b4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/pytest_qgis/pytest_qgis.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,10 +390,7 @@ def _configure_qgis_map(
f"It will close automatically in {settings.timeout} seconds."
)
message_box.addButton(QMessageBox.Close)
message_box.move(
message_box.mapToGlobal(qgis_parent.rect().topLeft())
- QtCore.QPoint(message_box.width(), 0)
)
message_box.move(QgsApplication.instance().primaryScreen().geometry().topLeft())
message_box.setWindowModality(QtCore.Qt.NonModal)
message_box.show()

Expand Down

0 comments on commit 75fa1b4

Please sign in to comment.