Now formatted in 6 columns. Looks rather nice. Stripped http:// tags in donors text file to improve automatic formatting.
This commit is contained in:
+3
-3
@@ -95,8 +95,8 @@ Heinrich Illig
|
|||||||
Michael Collins
|
Michael Collins
|
||||||
Michael Manning
|
Michael Manning
|
||||||
Craig Lorentz
|
Craig Lorentz
|
||||||
Jonathan Modellismo - http://jonathan.it
|
Jonathan Modellismo - jonathan.it
|
||||||
Aviomotive - http://www.aviomotive.com
|
Aviomotive - www.aviomotive.com
|
||||||
André Lasseret
|
André Lasseret
|
||||||
Felipe Alexandre de Oliveira
|
Felipe Alexandre de Oliveira
|
||||||
Brian Harris
|
Brian Harris
|
||||||
@@ -126,7 +126,7 @@ Larisa Filocamo
|
|||||||
Alex Calderhead
|
Alex Calderhead
|
||||||
Hartmut Sahm
|
Hartmut Sahm
|
||||||
Åke Brodin
|
Åke Brodin
|
||||||
Aloft Hobbies - http://www.alofthobbies.com
|
Aloft Hobbies - www.alofthobbies.com
|
||||||
Ted Moss
|
Ted Moss
|
||||||
Filippos Tigarakis
|
Filippos Tigarakis
|
||||||
Chewytm
|
Chewytm
|
||||||
|
|||||||
@@ -9,26 +9,38 @@ contributorsDialog::contributorsDialog(QWidget *parent, int contest, QString rnu
|
|||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
switch (contest) {
|
switch (contest) {
|
||||||
case 0: {
|
case 0: {
|
||||||
ui->textBrowser->insertHtml(tr("<h3>People who have contributed to this project</h3>"));
|
|
||||||
ui->textBrowser->insertPlainText("\n");
|
|
||||||
QFile file(":/DONATIONS.txt");
|
QFile file(":/DONATIONS.txt");
|
||||||
|
QString htmlString = "<table>";
|
||||||
|
htmlString += "<tr><td colspan=\"6\"><h3>People who have contributed to this project</h3></td></tr><tr>";
|
||||||
if(file.open( QIODevice::ReadOnly | QIODevice::Text ) ) {
|
if(file.open( QIODevice::ReadOnly | QIODevice::Text ) ) {
|
||||||
QString color = "black";
|
int i = 0;
|
||||||
while (!file.atEnd()) {
|
while (!file.atEnd()) {
|
||||||
QByteArray line = file.readLine();
|
QByteArray line = file.readLine();
|
||||||
ui->textBrowser->insertHtml(QString("<font color=\"") + color + QString("\">") + line + QString(",</font>  "));
|
htmlString += QString("<td>") + line + QString("</td>");
|
||||||
if (color == "black")
|
i++;
|
||||||
color = "#505050";
|
if (!(i%6)){
|
||||||
else
|
htmlString += "</tr><tr>";
|
||||||
color = "black";
|
}
|
||||||
}
|
}
|
||||||
|
htmlString += "</tr>";
|
||||||
}
|
}
|
||||||
ui->textBrowser->insertPlainText("\n");
|
|
||||||
ui->textBrowser->insertHtml(tr("<h3>Coders</h3><p></p>"));
|
htmlString += "<tr></tr><tr><td colspan=\"6\"><h3>Coders</h3></td></tr><tr>";
|
||||||
QFile file2(":/CREDITS.txt");
|
QFile file2(":/CREDITS.txt");
|
||||||
if(file2.open( QIODevice::ReadOnly | QIODevice::Text ) ) {
|
if(file2.open( QIODevice::ReadOnly | QIODevice::Text ) ) {
|
||||||
ui->textBrowser->insertPlainText(file2.readAll());
|
int i = 0;
|
||||||
|
while (!file2.atEnd()) {
|
||||||
|
QByteArray line = file2.readLine();
|
||||||
|
htmlString += QString("<td>") + line + QString("</td>");
|
||||||
|
i++;
|
||||||
|
if (!(i%6)){
|
||||||
|
htmlString += "</tr><tr>";
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
htmlString += "</tr></table>";
|
||||||
|
ui->textBrowser->insertHtml(htmlString);
|
||||||
|
|
||||||
ui->textBrowser->insertPlainText("\n\n");
|
ui->textBrowser->insertPlainText("\n\n");
|
||||||
ui->textBrowser->insertPlainText(tr("Honors go to Rafal Tomczak (RadioClone) and Thomas Husterer (th9x) \nof course. Also to Erez Raviv (er9x) and it's fantastic eePe, from which\ncompanion9x was forked out."));
|
ui->textBrowser->insertPlainText(tr("Honors go to Rafal Tomczak (RadioClone) and Thomas Husterer (th9x) \nof course. Also to Erez Raviv (er9x) and it's fantastic eePe, from which\ncompanion9x was forked out."));
|
||||||
ui->textBrowser->insertPlainText("\n\n");
|
ui->textBrowser->insertPlainText("\n\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user