void QQmlWebChannelAttached::setId(const QString &id) { if (id != m_id) { m_id = id; emit idChanged(id); } }
void CommentaryObject::setId(unsigned long id) { if (m_id != id) { m_id = id; emit idChanged(); } }
void Room::setID(const QString &newId) { if (newId != m_id) { m_id = newId; emit idChanged(newId); } }
void WorldData::setId(int id) { if(m_id != id){ m_id = id; emit idChanged(); } }
void TaskObject::setId(unsigned long id) { if (m_id != id) { m_id = id; emit idChanged(); } }
void CurrDisplay::set(const double newValue, const int newId, const QDate& newDate, const bool isBase) { bool emitId = false; bool emitDate = false; if (newId != id()) { emitId = true; _localId = newId; } if (newDate != _effective) { emitDate = true; _effective = newDate; } if (isBase) setBaseValue(newValue); else setLocalValue(newValue); if (emitId) emit idChanged(newId); if (emitDate) emit effectiveChanged(newDate); }
void Phrase::setId(const QString &id) { if (id != m_id) { m_id = id; emit idChanged(); } }
void UserStatusUpdate::SetId(quint64 id) { if (m_Id != id) { m_Id = id; emit idChanged(); } }
void Customer::setId(int id) { if (id != mId) { mId = id; emit idChanged(id); } }
void UserProfile::setId(int id) { if (m_id != id) { m_id = id; emit idChanged(); } }
void Task::setID(const int &id) { if(_id != id) { _id = id; emit idChanged(_id); } }
void Milestone::setID(const int &id) { if(_id != id) { _id = id; emit idChanged(_id); } }
void CurrCluster::setId(int curr_id) { if (_currency->id() != curr_id) { _currency->setId(curr_id); emit idChanged(curr_id); } }
void DeviceItem::setId(int id) { if (m_id == id) return; m_id = id; emit idChanged(id); }
void Task::setId(int id) { m_hasId = true; if ( m_id != id ) { m_id = id; emit idChanged(); } }
void Unit::setId(const QString &id) { if (id != m_id) { m_id = id; emit idChanged(); emit modified(); } }
QString CDoodSessionListItem::setId(const QString &data) { if(mId == data) { return data; } mId = data; emit idChanged(); return mId; }
void Theme::setId(const QString& newValue) { if(newValue != d->id) { d->id = newValue; const QString themeQmlPath = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QString("kritasketch/themes/%1/theme.qml").arg(d->id)); d->basePath = QFileInfo(themeQmlPath).dir().absolutePath(); emit idChanged(); } }
QString CDoodUserDataManage::setId(const QString &data) { if(mId == data) { return data; } mId = data; emit idChanged(); return mId; }
void GraphItem::setId(const QString &itemId) { if(itemId != _id) { emit idChanged(_id, itemId); _id = itemId; } update(); }
QString CDoodGroupItem::setId(const QString &data) { if(mId == data) { return data; } mId = data; emit idChanged(); return mId; }
void Theme::setId(const QString& newValue) { if(newValue != d->id) { d->id = newValue; const QString qmlFileSubPath = QStringLiteral("calligragemini/themes/") + d->id + QStringLiteral("/theme.qml"); const QString qmlFileFullPath = QStandardPaths::locate(QStandardPaths::GenericDataLocation, qmlFileSubPath); d->basePath = QFileInfo(qmlFileFullPath).dir().absolutePath(); emit idChanged(); } }
AbstractXmlItemObject * FoldersModel::newItem() { Folder *newItem = new Folder(this); connect(newItem, SIGNAL(idChanged()), this, SLOT(itemDataChanged())); connect(newItem, SIGNAL(additionalDataChanged()), this, SLOT(itemDataChanged())); connect(newItem, SIGNAL(nameChanged()), this, SLOT(itemDataChanged())); newItem->filesModel()->setItemAdditionalData(m_fileAdditionalData); return newItem; }
AbstractXmlItemObject * FilesModel::newItem() { File *newItem = new File(this); connect(newItem, SIGNAL(idChanged()), this, SLOT(itemDataChanged())); connect(newItem, SIGNAL(additionalDataChanged()), this, SLOT(itemDataChanged())); connect(newItem, SIGNAL(pathChanged()), this, SLOT(itemDataChanged())); connect(newItem, SIGNAL(nameChanged()), this, SLOT(itemDataChanged())); return newItem; }
AbstractXmlItemObject * UsersModel::newItem() { User *newItem = new User(this); connect(newItem, SIGNAL(idChanged()), this, SLOT(itemDataChanged())); connect(newItem, SIGNAL(additionalDataChanged()), this, SLOT(itemDataChanged())); connect(newItem, SIGNAL(profileChanged()), this, SLOT(itemDataChanged())); connect(newItem, SIGNAL(onlineChanged()), this, SLOT(itemDataChanged())); connect(newItem, SIGNAL(friendshipAcceptedChanged()), this, SLOT(itemDataChanged())); return newItem; }
void KexiDBImageBox::setData(const KexiBLOBBuffer::Handle& handle) { if (m_insideSetData) //avoid recursion return; m_insideSetData = true; m_data = handle; m_currentScaledPixmap = QPixmap(); // clear cache emit idChanged(handle.id()); m_insideSetData = false; update(); }
void EntryBase::load(int id) { if (id <= 0) return; _id = id; emit idChanged(); _request = new ApiRequest(QString("v1/entries/%1.json").arg(_id), ApiRequest::NoOptions); Q_TEST(connect(_request, SIGNAL(success(QJsonObject)), this, SLOT(_initBase(QJsonObject)))); Q_TEST(connect(_request, SIGNAL(destroyed(QObject*)), this, SLOT(_maybeError()))); _initRequest(); }
void CurrDisplay::setId(int curr_id) { // ToDo - set _localScale when the currency id changes if (_localId != curr_id) { _localId = curr_id; if (_localControl) sValueLocalChanged(_valueLocal); else sValueBaseChanged(_valueBase); sReformat(); emit idChanged(curr_id); } }
void AlarmObject::saveReply(QDBusPendingCallWatcher *w) { QDBusPendingReply<uint> reply = *w; w->deleteLater(); if (reply.isError()) { qWarning() << "org.nemomobile.alarms: Cannot sync alarm to timed:" << reply.error(); return; } m_cookie = reply.value(); emit idChanged(); emit saved(); }
void AlarmObject::deleteAlarm() { if (!m_cookie) { emit deleted(); return; } QDBusPendingCall re = TimedInterface::instance()->cancel_async(m_cookie); QDBusPendingCallWatcher *w = new QDBusPendingCallWatcher(re, this); connect(w, SIGNAL(finished(QDBusPendingCallWatcher*)), SLOT(deleteReply(QDBusPendingCallWatcher*))); emit deleted(); m_cookie = 0; emit idChanged(); }