Changeset View
Changeset View
Standalone View
Standalone View
krusader/DiskUsage/filelightParts/fileTree.h
Show First 20 Lines • Show All 288 Lines • ▼ Show 20 Line(s) | 232 | public: | |||
---|---|---|---|---|---|
289 | } | 289 | } | ||
290 | inline int intPercent() const { | 290 | inline int intPercent() const { | ||
291 | return m_percent; | 291 | return m_percent; | ||
292 | } | 292 | } | ||
293 | inline const QString percent() const { | 293 | inline const QString percent() const { | ||
294 | if (m_percent < 0) | 294 | if (m_percent < 0) | ||
295 | return "INV"; | 295 | return "INV"; | ||
296 | QString buf; | 296 | QString buf; | ||
297 | buf.sprintf("%d.%02d%%", m_percent / 100, m_percent % 100); | 297 | buf.asprintf("%d.%02d%%", m_percent / 100, m_percent % 100); | ||
298 | return buf; | 298 | return buf; | ||
299 | } | 299 | } | ||
300 | inline void setPercent(int p) { | 300 | inline void setPercent(int p) { | ||
301 | m_percent = p; | 301 | m_percent = p; | ||
302 | } | 302 | } | ||
303 | inline const Directory* parent() const { | 303 | inline const Directory* parent() const { | ||
304 | return m_parent; | 304 | return m_parent; | ||
305 | } | 305 | } | ||
▲ Show 20 Lines • Show All 80 Lines • Show Last 20 Lines |