From 54eaa7a4a883978a308d799e1f108bdce5e9c030 Mon Sep 17 00:00:00 2001 From: Arno Date: Wed, 9 Nov 2016 17:52:08 +0100 Subject: Add display of Origin files Show orgin files as child of archived file in the archive. Sidenote: Adding an origin file in here won't be very useful, since the actual file is elsewhere. That's a job for ShemovCleaner, I guess. --- delegates.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'delegates.cpp') diff --git a/delegates.cpp b/delegates.cpp index db4b6b1..a168790 100644 --- a/delegates.cpp +++ b/delegates.cpp @@ -61,8 +61,10 @@ QWidget *FileTypeDelegate::createEditor(QWidget *parent, const QStyleOptionViewI QString DvdNoDelegate::displayText(const QVariant &value, const QLocale &locale) const{ Q_UNUSED(locale); int no = value.toInt(); - if(no < 0){ + if(no == -1){ return tr("(local)"); + }else if(no == -2){ + return tr("(origin)"); } QString retval = QString(tr("#%1")).arg(QString::number(no)); return retval; -- cgit v1.2.3-70-g09d2