mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-28 03:21:56 +00:00
Remove wip debugging
This commit is contained in:
parent
ee743717e5
commit
9e9cb4d1e1
|
@ -6,8 +6,6 @@
|
||||||
|
|
||||||
#include "placesitemlistwidget.h"
|
#include "placesitemlistwidget.h"
|
||||||
|
|
||||||
// #include <QDebug>
|
|
||||||
|
|
||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
#include <QGraphicsView>
|
#include <QGraphicsView>
|
||||||
#include <QStyleOption>
|
#include <QStyleOption>
|
||||||
|
@ -53,7 +51,6 @@ void PlacesItemListWidget::updateCapacityBar()
|
||||||
|| m_freeSpaceInfo.lastUpdated.secsTo(QDateTime::currentDateTimeUtc()) > 60
|
|| m_freeSpaceInfo.lastUpdated.secsTo(QDateTime::currentDateTimeUtc()) > 60
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
// qDebug() << "url:" << url;
|
|
||||||
m_freeSpaceInfo.job = KIO::fileSystemFreeSpace(url);
|
m_freeSpaceInfo.job = KIO::fileSystemFreeSpace(url);
|
||||||
connect(
|
connect(
|
||||||
m_freeSpaceInfo.job,
|
m_freeSpaceInfo.job,
|
||||||
|
@ -71,11 +68,6 @@ void PlacesItemListWidget::updateCapacityBar()
|
||||||
m_freeSpaceInfo.used = size - available;
|
m_freeSpaceInfo.used = size - available;
|
||||||
m_freeSpaceInfo.usedRatio = (qreal)m_freeSpaceInfo.used / (qreal)m_freeSpaceInfo.size;
|
m_freeSpaceInfo.usedRatio = (qreal)m_freeSpaceInfo.used / (qreal)m_freeSpaceInfo.size;
|
||||||
m_drawCapacityBar = size > 0;
|
m_drawCapacityBar = size > 0;
|
||||||
// qDebug() << "job.url:" << data().value("url").toUrl();
|
|
||||||
// qDebug() << "job.size:" << m_freeSpaceInfo.size;
|
|
||||||
// qDebug() << "job.used:" << m_freeSpaceInfo.used;
|
|
||||||
// qDebug() << "job.ratio:" << m_freeSpaceInfo.usedRatio;
|
|
||||||
// qDebug() << "job.draw:" << m_drawCapacityBar;
|
|
||||||
|
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue