Stellarium  HEAD
Public Member Functions
ColorButton Class Reference

Public Member Functions

 ColorButton (QWidget *parent=nullptr)
 
void setup (const QString &propertyName, const QString &iniName, const QString &moduleName="")
 Prepare this button so that it can work properly with the StelProperty and config entry it represents. More...
 

Member Function Documentation

◆ setup()

void ColorButton::setup ( const QString &  propertyName,
const QString &  iniName,
const QString &  moduleName = "" 
)

Prepare this button so that it can work properly with the StelProperty and config entry it represents.

Parameters
propertyNamea StelProperty name which must represent a color (coded as Vec3f)
iniNamethe associated entry for config.ini, in the form group/name. Usually "color/some_feature_name_color".
moduleNameif the iniName is for a module (plugin)-specific ini file, add the module name here. The module needs an implementation of getSettings()
Warning
If the action with propName is invalid/unregistered, or cannot be converted to the required datatype, the application will crash