void LiveRosterItem::setRosterItem(const RosterItem &i) { setJid(i.jid()); setName(i.name()); setGroups(i.groups()); setSubscription(i.subscription()); setAsk(i.ask()); setIsPush(i.isPush()); }
bool TimeSig::setProperty(P_ID propertyId, const QVariant& v) { switch (propertyId) { case P_ID::SHOW_COURTESY: if (generated()) return false; setShowCourtesySig(v.toBool()); break; case P_ID::NUMERATOR_STRING: setNumeratorString(v.toString()); break; case P_ID::DENOMINATOR_STRING: setDenominatorString(v.toString()); break; case P_ID::GROUPS: setGroups(v.value<Groups>()); break; case P_ID::TIMESIG: setSig(v.value<Fraction>()); break; case P_ID::TIMESIG_GLOBAL: setGlobalSig(v.value<Fraction>()); break; case P_ID::TIMESIG_STRETCH: setStretch(v.value<Fraction>()); break; case P_ID::TIMESIG_TYPE: _timeSigType = (TimeSigType)(v.toInt()); break; case P_ID::SCALE: _scale = v.toSizeF(); break; default: if (!Element::setProperty(propertyId, v)) return false; break; } score()->setLayoutAll(); // TODO setGenerated(false); return true; }