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

Widget for editing the editor widget properties for properties of a QtTreePropertyBrowser.

#include <Workspace/Widgets/Designer/PropertyBrowser/widgeteditordialog.h>

Inherits QDialog.

Public Member Functions

 WidgetEditorDialog (QtTreePropertyBrowser &propertyBrowser, QWidget *parent=nullptr)
 
 ~WidgetEditorDialog ()
 
void getPropertyToValueMap (QMap< QString, QVariant > &propertyToValueMap)
 
QString getSelectedWidget () const
 
void setPropertyToValueMap (const QMap< QString, QVariant > &propertyToValueMap)
 
void setSelectedWidget (const QString &widgetName)
 

Constructor & Destructor Documentation

◆ WidgetEditorDialog()

WidgetEditorDialog ( QtTreePropertyBrowser propertyBrowser,
QWidget *  parent = nullptr 
)
explicit

◆ ~WidgetEditorDialog()

Member Function Documentation

◆ getPropertyToValueMap()

void getPropertyToValueMap ( QMap< QString, QVariant > &  propertyToValueMap)

propertyToValueMap An output map object which this function populates. The object maps widget properties to property values.

Once this dialog is done, the caller can use this method to retrieve modified property data for the selected widget.

◆ getSelectedWidget()

QString getSelectedWidget ( ) const

◆ setPropertyToValueMap()

void setPropertyToValueMap ( const QMap< QString, QVariant > &  propertyToValueMap)

propertyToValueMap Input map object which the caller uses to populate widget property browser.

When the caller creates this dialog, this function should be used to populate the widget property browser with property data that may have been serialized earlier.

◆ setSelectedWidget()

void setSelectedWidget ( const QString &  widgetName)
Parameters
widgetNameScoped widget name.