API Documentation
Loading...
Searching...
No Matches
DockInit Class Reference

Provides a way to optianally lazily initialize widgets when needed but still pass them to container docks. Useful for adding things to Settings dialogs or other large structures where they may never be initialized. More...

#include <WidgetInit.h>

Collaboration diagram for DockInit:
[legend]

Public Member Functions

 DockInit (QCustomDockWidget *init)
 
 DockInit (std::function< QCustomDockWidget *()> init)
 
virtual QCustomDockWidgetgetDock ()
 
bool isInit () const
 

Protected Attributes

const std::function< QCustomDockWidget *()> m_create_dock
 
QCustomDockWidgetm_dock_item = nullptr
 

Detailed Description

Provides a way to optianally lazily initialize widgets when needed but still pass them to container docks. Useful for adding things to Settings dialogs or other large structures where they may never be initialized.


Constructor & Destructor Documentation

◆ DockInit() [1/2]

DockInit ( std::function< QCustomDockWidget *()> init)
inline

◆ DockInit() [2/2]

DockInit ( QCustomDockWidget * init)
inline

Member Function Documentation

◆ getDock()

virtual QCustomDockWidget * getDock ( )
inlinevirtual

◆ isInit()

bool isInit ( ) const
inline

Member Data Documentation

◆ m_create_dock

const std::function<QCustomDockWidget*()> m_create_dock
protected

◆ m_dock_item

QCustomDockWidget* m_dock_item = nullptr
protected

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