~nick-dedekind/ubuntu-system-settings/lp1336715.check.sync

« back to all changes in this revision

Viewing changes to plugins/about/storageabout.cpp

  • Committer: Nick Dedekind
  • Date: 2014-11-04 12:08:12 UTC
  • mfrom: (1153.1.29 ubuntu-system-settings)
  • Revision ID: nick.dedekind@canonical.com-20141104120812-xy1yrfdu4qi99ei4
merged with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
290
290
    return m_homeSize;
291
291
}
292
292
 
293
 
QString StorageAbout::formatSize(quint64 size) const
294
 
{
295
 
    guint64 g_size = size;
296
 
 
297
 
    gchar * formatted_size = g_format_size (g_size);
298
 
    QString q_formatted_size = QString::fromLocal8Bit(formatted_size);
299
 
    g_free (formatted_size);
300
 
 
301
 
    return q_formatted_size;
302
 
}
303
 
 
304
293
void StorageAbout::populateSizes()
305
294
{
306
295
    quint32 *running = new quint32(0);