- added an icon and title text for the Toggle Units QMessageBox

This commit is contained in:
Marius Stanciu
2019-03-21 02:02:34 +02:00
parent 99c2ceaaed
commit 9a2279708e
2 changed files with 4 additions and 1 deletions

View File

@@ -3263,9 +3263,11 @@ class App(QtCore.QObject):
# Changing project units. Warn user.
msgbox = QtWidgets.QMessageBox()
msgbox.setWindowTitle("Toggle Units")
msgbox.setWindowIcon(QtGui.QIcon('share/toggle_units32.png'))
msgbox.setText("<B>Change project units ...</B>")
msgbox.setInformativeText("Changing the units of the project causes all geometrical "
"properties of all objects to be scaled accordingly. Continue?")
"properties of all objects to be scaled accordingly.\nContinue?")
msgbox.setStandardButtons(QtWidgets.QMessageBox.Cancel | QtWidgets.QMessageBox.Ok)
msgbox.setDefaultButton(QtWidgets.QMessageBox.Ok)