1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | QString QmlDir::owner() const { return m_owner; } void QmlDir::setOwner(const QString path) { d.setPath(path); if(!d.exists()) { error("The dir that you are trying to see who owns it is not a vaild folder , in other words it does not exsist"); return; } else { QString dOwn = QString("%1").arg(d.owner()); if (m_owner == dOwn){ return; } else { m_owner = dOwn; emit ownerChanged(); } |