-SpaceInfoObserver::SpaceInfoObserver(const QUrl& url, QObject* parent) :
- QObject(parent),
- m_mountPointObserver(nullptr),
- m_hasData(false),
- m_dataSize(0),
- m_dataAvailable(0)
+SpaceInfoObserver::SpaceInfoObserver(const QUrl &url, QObject *parent)
+ : QObject(parent)
+ , m_mountPointObserver(nullptr)
+ , m_hasData(false)
+ , m_dataSize(0)
+ , m_dataAvailable(0)
if (newObserver != m_mountPointObserver) {
if (m_mountPointObserver) {
disconnect(m_mountPointObserver, &MountPointObserver::spaceInfoChanged, this, &SpaceInfoObserver::spaceInfoChanged);
if (newObserver != m_mountPointObserver) {
if (m_mountPointObserver) {
disconnect(m_mountPointObserver, &MountPointObserver::spaceInfoChanged, this, &SpaceInfoObserver::spaceInfoChanged);
m_mountPointObserver->ref();
connect(m_mountPointObserver, &MountPointObserver::spaceInfoChanged, this, &SpaceInfoObserver::spaceInfoChanged);
m_mountPointObserver->ref();
connect(m_mountPointObserver, &MountPointObserver::spaceInfoChanged, this, &SpaceInfoObserver::spaceInfoChanged);