mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-01-09 11:50:16 +00:00
GUI: display playlist size instead of file size in file view for playlists
This commit is contained in:
parent
dbde57f570
commit
a7719a3f48
@ -1,6 +1,7 @@
|
||||
#include "common/common_pch.h"
|
||||
|
||||
#include "common/sorting.h"
|
||||
#include "common/strings/formatting.h"
|
||||
#include "mkvtoolnix-gui/merge_widget/source_file_model.h"
|
||||
#include "mkvtoolnix-gui/merge_widget/track_model.h"
|
||||
#include "mkvtoolnix-gui/util/util.h"
|
||||
@ -58,8 +59,8 @@ SourceFileModel::createRow(SourceFile *sourceFile)
|
||||
|
||||
items << new QStandardItem{info.fileName()};
|
||||
items << new QStandardItem{sourceFile->isAdditionalPart() ? QY("(additional part)") : sourceFile->m_container};
|
||||
items << new QStandardItem{QString::number(info.size())};
|
||||
items << new QStandardItem{info.filePath()};
|
||||
items << new QStandardItem{to_qs(format_file_size(sourceFile->isPlaylist() ? sourceFile->m_playlistSize : info.size()))};
|
||||
|
||||
items[0]->setData(QVariant::fromValue(sourceFile), Util::SourceFileRole);
|
||||
items[0]->setIcon( sourceFile->isAdditionalPart() ? m_additionalPartIcon
|
||||
|
Loading…
Reference in New Issue
Block a user