diff options
author | Arno <arno@disconnect.de> | 2016-11-09 17:52:08 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2016-11-09 17:52:08 +0100 |
commit | 54eaa7a4a883978a308d799e1f108bdce5e9c030 (patch) | |
tree | eef8ab6f1a7d56930f908c79d3861bcd88c32aa2 /delegates.cpp | |
parent | aea54efd00c1cbd0f66bcda83e9c7a196d3c317b (diff) | |
download | SheMov-54eaa7a4a883978a308d799e1f108bdce5e9c030.tar.gz SheMov-54eaa7a4a883978a308d799e1f108bdce5e9c030.tar.bz2 SheMov-54eaa7a4a883978a308d799e1f108bdce5e9c030.zip |
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.
Diffstat (limited to 'delegates.cpp')
-rw-r--r-- | delegates.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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; |