- added shortcut key 'J' (jump to location) in Editors and added an icon to the dialog popup window

This commit is contained in:
Marius Stanciu
2019-02-15 00:23:29 +02:00
committed by Marius S
parent fffdd6db97
commit 098de7f030
4 changed files with 28 additions and 4 deletions

View File

@@ -1212,7 +1212,7 @@ class FCDoubleSpinner(QtWidgets.QDoubleSpinBox):
class Dialog_box(QtWidgets.QWidget):
def __init__(self, title=None, label=None):
def __init__(self, title=None, label=None, icon=None):
"""
:param title: string with the window title
@@ -1223,7 +1223,8 @@ class Dialog_box(QtWidgets.QWidget):
self.ok = False
dialog_box = QtWidgets.QInputDialog()
dialog_box.setFixedWidth(270)
dialog_box.setFixedWidth(290)
self.setWindowIcon(icon)
self.location, self.ok = dialog_box.getText(self, title, label)