mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 20:40:29 +08:00
Fixed index/property order
This commit is contained in:
@@ -353,10 +353,10 @@ namespace BlackMisc
|
|||||||
CStatusMessage save() { return m_page.setValue(m_element, {}, 0, true, true); }
|
CStatusMessage save() { return m_page.setValue(m_element, {}, 0, true, true); }
|
||||||
|
|
||||||
//! Write a property of the value. Must be called from the thread in which the owner lives.
|
//! Write a property of the value. Must be called from the thread in which the owner lives.
|
||||||
CStatusMessage setProperty(const CPropertyIndex &index, const CVariant &value, qint64 timestamp = 0) { auto v = get(); v.setPropertyByIndex(value, index); return set(v, timestamp); }
|
CStatusMessage setProperty(const CPropertyIndex &index, const CVariant &value, qint64 timestamp = 0) { auto v = get(); v.setPropertyByIndex(index, value); return set(v, timestamp); }
|
||||||
|
|
||||||
//! Write a property and save in the same step. Must be called from the thread in which the owner lives.
|
//! Write a property and save in the same step. Must be called from the thread in which the owner lives.
|
||||||
CStatusMessage setAndSaveProperty(const CPropertyIndex &index, const CVariant &value, qint64 timestamp = 0) { auto v = get(); v.setPropertyByIndex(value, index); return setAndSave(v, timestamp); }
|
CStatusMessage setAndSaveProperty(const CPropertyIndex &index, const CVariant &value, qint64 timestamp = 0) { auto v = get(); v.setPropertyByIndex(index, value); return setAndSave(v, timestamp); }
|
||||||
|
|
||||||
//! Is current thread the owner thread, so CCached::set is safe
|
//! Is current thread the owner thread, so CCached::set is safe
|
||||||
bool isOwnerThread() const { return QThread::currentThread() == m_page.thread(); }
|
bool isOwnerThread() const { return QThread::currentThread() == m_page.thread(); }
|
||||||
|
|||||||
Reference in New Issue
Block a user