void NemoThemeFont::setWeight(int weight)
{
    if (m_weight != weight) {
        m_weight = weight;
        emit weightChanged();
    }
}
void NemoThemeFont::setWeightDefault()
{
    if (m_weight != 25) {
        m_weight = 25;
        emit weightChanged();
    }
}
Exemplo n.º 3
0
void Player::setWeight(int weight)
{
	if(weight == this->weight())
		return;
	setValue(PlayerProperties::WeightAttribute,QVariant::fromValue<int>(weight));
	emit weightChanged(weight);
}
Exemplo n.º 4
0
void Task::setWeight(double weight)
{
  if ( m_weigth != weight ) {
    m_weigth = weight;
    emit weightChanged();
  }
}
Exemplo n.º 5
0
synapse* qtAnn::addSynapse(neuron* post, neuron* pre)
{
    qtSynapse * s = new qtSynapse(post, pre);
    ann::addSynapse(s);
    id2synapse[s->getId()] = s;
    connect(s,    SIGNAL(latexLabelChanged(idtype, QString)),
            this, SIGNAL(synapseLatexLabelChanged(idtype, QString)));
    connect(s,    SIGNAL(nameChanged(idtype, QString)),
            this, SIGNAL(synapseNameChanged(idtype, QString)));
    connect(s,    SIGNAL(pathAngleChanged(idtype, qreal)),
            this, SIGNAL(synapseAngleChanged(idtype, qreal)));
    connect(s,    SIGNAL(pathOffsetChanged(idtype, qreal)),
            this, SIGNAL(synapseOffsetChanged(idtype, qreal)));
    connect(s,    SIGNAL(pathSelfReversedChanged(idtype, bool)),
            this, SIGNAL(synapseMirroredChanged(idtype, bool)));
    connect(s,    SIGNAL(selectionChanged(idtype, bool)),
            this, SIGNAL(synapseSelectionChanged(idtype, bool)));
    connect(s,    SIGNAL(weightChanged(idtype, qreal)),
            this, SIGNAL(synapseWeightChanged(idtype, qreal)));
    connect(s,    SIGNAL(synapseRemoved(idtype)),
            this, SIGNAL(synapseRemoved(idtype)));

    connect(s,    SIGNAL(selectionChanged(idtype, bool)),
            this, SLOT  (onSynapseSelectionChanged(idtype, bool)));
    emit synapseAdded(s->getId());
    return s;
}
void UnitsSettings::setWeight(int value)
{
	QSettings s;
	s.beginGroup(group);
	s.setValue("weight", value);
	prefs.units.weight = (units::WEIGHT) value;
	emit weightChanged(value);
}
Exemplo n.º 7
0
void User::setWeight(double weight) {

    if(myWeight != weight) {
        myWeight = weight;
        updateWeight(weight);
        calculateBMI();
        calculateBMR();
        emit weightChanged();
    }
}
Exemplo n.º 8
0
void MenuPageHandler::setWeight(int w){
    if ( total_weight != w ) {
        total_weight = w;
        emit weightChanged();
    }
}
Exemplo n.º 9
0
void FoodItem::setWeight(int weight) {
    if (weight == _weight)
        return;
    _weight = weight;
    emit weightChanged();
}