![]() |
Blamite Game Engine - Keystone
00390.07.02.23.1947.blamite
A library that enables the use of Qt in Blamite's editing tools.
|
A basic interface class which can be used for drag and drop behaviors. More...
#include <drag_container.h>
Public Member Functions | |
void | GenerateDropZones (bool clear_existing=true) |
Generates drop zones for the given drag list. More... | |
void | AddContentWidget (QWidget *widget) |
Adds a content item to the drag list. More... | |
std::vector< QWidget * > | GetContentWidgets () |
Retrieves a list of all content widgets within the drag list. More... | |
Public Attributes | |
QBoxLayout * | drag_layout = nullptr |
The layout container that holds all drag and drop widgets. More... | |
A basic interface class which can be used for drag and drop behaviors.
void drag_list::AddContentWidget | ( | QWidget * | widget | ) |
Adds a content item to the drag list.
widget | - Pointer to the widget to add. |
void drag_list::GenerateDropZones | ( | bool | clear_existing = true | ) |
Generates drop zones for the given drag list.
clear_existing | - Whether or not to clear all existing drop zones by default. Defaults to true . Typically, this should always be set to true - as duplicate drop zones will exist otherwise. |
std::vector< QWidget * > drag_list::GetContentWidgets | ( | ) |
Retrieves a list of all content widgets within the drag list.
This will generate a list of all widgets that exist within the list - excluding any drop zones.
QBoxLayout* drag_list::drag_layout = nullptr |
The layout container that holds all drag and drop widgets.