spinetoolbox.widgets.custom_qlineedit

Classes for custom line edits.

author:
  1. Marin (KTH)
date:

11.10.2018

Module Contents

class spinetoolbox.widgets.custom_qlineedit.CustomQLineEdit[source]

Bases: PySide2.QtWidgets.QLineEdit

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

parent

Parent for line edit widget (DataStoreWidget)

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.