LIDL Soundboard  1.9.0
A simple soundboard, yet better than EXP Soundboard forsenE
CustomListWidget Class Reference

The CustomListWidget class : inherits QListWidget. More...

#include <CustomListWidget.h>

Inheritance diagram for CustomListWidget:
Inheritance graph
Collaboration diagram for CustomListWidget:
Collaboration graph

Signals

void fileDragged (QString)
 fileDragged Signal to send when a file is dragged onto the view. More...
 

Public Member Functions

 CustomListWidget (QWidget *parent=nullptr)
 CustomListWidget Default constructor. More...
 
void dragEnterEvent (QDragEnterEvent *event)
 dragEnterEvent To deal with drag and drop events. More...
 
void dropEvent (QDropEvent *e)
 dropEvent If a dragEnterEvent was accepted, it will end in the dropEvent when release. More...
 

Detailed Description

The CustomListWidget class : inherits QListWidget.

Constructor & Destructor Documentation

◆ CustomListWidget()

CustomListWidget::CustomListWidget ( QWidget *  parent = nullptr)
explicit

CustomListWidget Default constructor.

Parameters
parentAs usual, the parent.

Member Function Documentation

◆ dragEnterEvent()

void CustomListWidget::dragEnterEvent ( QDragEnterEvent *  event)

dragEnterEvent To deal with drag and drop events.

We check the event to know if its MIME type are accepted, it it is, we allow the event to continue to dropEvent.

Parameters
eventThe variable containing the event.

References LIDL::Controller::SettingsController::GetInstance().

Here is the call graph for this function:

◆ dropEvent()

void CustomListWidget::dropEvent ( QDropEvent *  e)

dropEvent If a dragEnterEvent was accepted, it will end in the dropEvent when release.

Parameters
eThe variable containing the event.

References fileDragged().

◆ fileDragged

void CustomListWidget::fileDragged ( QString  )
signal

fileDragged Signal to send when a file is dragged onto the view.

It is intercepted in wrapperproperties.cpp, it will add the file to the wrapper being edited.

Referenced by dropEvent(), and WrapperProperties::WrapperProperties().

Here is the caller graph for this function:

The documentation for this class was generated from the following files: