Workspace 6.21.5
Public Member Functions | Static Public Member Functions | List of all members
DesignerDragDrop Class Reference

#include <Workspace/Widgets/Designer/designerdragdrop.h>

Inherits QObject.

Public Member Functions

void setFormEditor (QDesignerFormEditorInterface *formEditor)
 

Static Public Member Functions

static DesignerDragDropgetInstance ()
 

Member Function Documentation

◆ getInstance()

DesignerDragDrop & getInstance ( )
static
Returns
The singleton object responsible for managing the drag and drop support for interaction between workspaces and Qt Designer.

◆ setFormEditor()

void setFormEditor ( QDesignerFormEditorInterface *  formEditor)
Parameters
formEditorThe main interface class for Qt Designer. It should never be created explicitly but rather be provided by the Qt code when appropriate. This pointer is stored internally for later use by the singleton to access the rest of the interface widgets.

This function must be called once at some point in the Qt Designer startup phase. This is most easily done within the initialize() function of a custom widget in the same Qt designer plugin. All calls after the first one will have no effect.