diff -r fbe5e49462aa -r e64b9ea24cd8 QTfrontend/ui/widget/about.cpp --- a/QTfrontend/ui/widget/about.cpp Thu Dec 13 20:24:50 2018 +0100 +++ b/QTfrontend/ui/widget/about.cpp Thu Dec 13 21:19:17 2018 +0100 @@ -60,19 +60,23 @@ // Open the credits file /* *** FILE FORMAT OF CREDITS FILE *** - The credits file is an RFC-4180-compliant CSV file with 3 columns: - * Task/contribution - * Contributor name - * Contributor e-mail - - The first and last columns are optional. + The credits file is an RFC-4180-compliant CSV file with 4 columns. + The first colum is always 1 letter long and is the row type. + The row type determines the meaning of the other columns. + The following row types are supported: - There are special rows, which are marked by putting a "!__" in the - beginning of the first. The following special rows are supported: - - !__SECTION: Section. Column 1 is the section name - !__SUBSECTION: Subsection. Column 1 is the subsection name - !__MISC: Placeholder for other or unknown authors + * E: Credits entry + * Column 2: Task/contribution + * Column 3: Contributor name + * Column 4: Contributor e-mail + * M: Alternative credits entry that is a placeholder for other or unknown authors + * Columns 2-4: Unused + * S: Section + * Column 2: Section name + * Columns 3-4: Unused + * U: Subsection + * Column 2: Subsection name + * Columns 3-4: Unused */ QFile creditsFile(":/res/credits.csv"); if (!creditsFile.open(QIODevice::ReadOnly)) @@ -82,7 +86,7 @@ } QString creditsString = creditsFile.readAll(); QString out = QString("

" + tr("Credits") + "

\n"); - QStringList cells = QStringList() << QString("") << QString("") << QString(""); + QStringList cells = QStringList() << QString("") << QString("") << QString("") << QString(""); bool firstSection = true; unsigned long int column = 0; unsigned long int charInCell = 0; @@ -94,7 +98,7 @@ for(long long int i = 0; i\n"; - out = out + "

" + name + "

\n