spinetoolbox.widgets.custom_qlineedits

Classes for custom line edits.

authors:
  1. Marin (KTH), P. Savolainen (VTT)
date:

11.10.2018

Module Contents

Classes

PropertyQLineEdit A custom QLineEdit for Project Item Properties.
CustomQLineEdit A custom QLineEdit that accepts file drops and displays the path.
class spinetoolbox.widgets.custom_qlineedits.PropertyQLineEdit[source]

Bases: PySide2.QtWidgets.QLineEdit

A custom QLineEdit for Project Item Properties.

keyPressEvent(self, e)[source]

Overridden to catch and pass on the Undo and Redo commands when this line edit has the focus.

Parameters:e (QKeyEvent) – Event
class spinetoolbox.widgets.custom_qlineedits.CustomQLineEdit[source]

Bases: PySide2.QtWidgets.QLineEdit

A custom QLineEdit that accepts file drops and displays the path.

parent

Parent for line edit widget

Type:QMainWindow
file_dropped[source]
dragEnterEvent(self, event)[source]

Accept a single file drop from the filesystem.

dragMoveEvent(self, event)[source]

Accept event.

dropEvent(self, event)[source]

Emit file_dropped signal with the file for the dropped url.

keyPressEvent(self, e)[source]

Overridden to catch and pass on the Undo and Redo commands when this line edit has the focus.

Parameters:e (QKeyEvent) – Event