void TextField::setLabel(const QString &label) { Q_D(TextField); d->labelString = label; setShowLabel(true); }
/** * ControlDisplayProperties constructor. This sets default values and * constructs the object *. * * * @param displayName The filename (fully expanded) of the object. * @param parent Qt parent object (this is destroyed when parent is destroyed) */ ControlDisplayProperties::ControlDisplayProperties(QString displayName, QObject *parent) : DisplayProperties(displayName, parent) { m_propertiesUsed = None; m_propertyValues = new QMap<int, QVariant>; // set all of the defaults to prevent unwanted change signals from // being emitted later. setShowLabel(false); setSelected(false); setValue(Color, QVariant::fromValue(randomColor())); }