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=0) | |
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... | |
Detailed Description
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.
- See also
- CommandViewItem, Command
Constructor & Destructor Documentation
◆ CommandIconView()
CommandIconView::CommandIconView | ( | QWidget * | parent = 0 | ) |
Constructs an empty command view with parent parent.
References onSelectionChanged().
◆ ~CommandIconView()
|
virtual |
Destroys the icon view and deletes all items.
Member Function Documentation
◆ emitSelectionChanged
|
signal |
Emits this signal if selection has changed.
Referenced by onSelectionChanged().
◆ 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().
◆ startDrag()
|
protected |
Stores the name of the selected commands for drag and drop.
The documentation for this class was generated from the following files:
- src/Gui/Widgets.h
- src/Gui/Widgets.cpp