Elaztek Developer Hub
Blamite Game Engine - Keystone  00390.07.02.23.1947.blamite
A library that enables the use of Qt in Blamite's editing tools.
drag_list Class Reference

A basic interface class which can be used for drag and drop behaviors. More...

#include <drag_container.h>

+ Inheritance diagram for drag_list:

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...
 

Detailed Description

A basic interface class which can be used for drag and drop behaviors.

Member Function Documentation

◆ AddContentWidget()

void drag_list::AddContentWidget ( QWidget *  widget)

Adds a content item to the drag list.

Parameters
widget- Pointer to the widget to add.
+ Here is the caller graph for this function:

◆ GenerateDropZones()

void drag_list::GenerateDropZones ( bool  clear_existing = true)

Generates drop zones for the given drag list.

Parameters
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.
+ Here is the caller graph for this function:

◆ GetContentWidgets()

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.

Returns
A list of widgets within the drag list, excluding drop zones.
+ Here is the caller graph for this function:

Member Data Documentation

◆ drag_layout

QBoxLayout* drag_list::drag_layout = nullptr

The layout container that holds all drag and drop widgets.


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