This class allows to drag one or more items which correspond to a Command object. More...
#include <Widgets.h>
Signals | |
void | emitSelectionChanged (const QString &) |
Emits this signal if selection has changed. More... | |
Public Member Functions | |
CommandIconView (QWidget *parent=nullptr) | |
Constructs an empty command view with parent parent. More... | |
virtual | ~CommandIconView () |
Destroys the icon view and deletes all items. More... | |
Protected Slots | |
void | onSelectionChanged (QListWidgetItem *item, QListWidgetItem *) |
This slot is called when a new item becomes current. More... | |
Protected Member Functions | |
void | startDrag (Qt::DropActions supportedActions) |
Stores the name of the selected commands for drag and drop. More... | |
This class allows to drag one or more items which correspond to a Command object.
The dragged items can be dropped onto the Gui::PythonConsole.
CommandIconView::CommandIconView | ( | QWidget * | parent = nullptr | ) |
Constructs an empty command view with parent parent.
References draftgeoutils.intersections::connect(), and onSelectionChanged().
|
virtual |
Destroys the icon view and deletes all items.
|
signal |
Emits this signal if selection has changed.
Referenced by onSelectionChanged().
|
protectedslot |
This slot is called when a new item becomes current.
item is the new current item (or 0 if no item is now current). This slot emits the emitSelectionChanged() signal for its part.
References emitSelectionChanged().
Referenced by CommandIconView().
|
protected |
Stores the name of the selected commands for drag and drop.