Skip to content

Commit

Permalink
Merge branch 'misc-fixes' into 'jumping'
Browse files Browse the repository at this point in the history
Miscellaneous fixes around About dialog

See merge request tfg-riscv-sim/ripes!8
  • Loading branch information
Silvia González Rodríguez committed Feb 3, 2025
2 parents 967dc28 + 8036bad commit da3ca44
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ moc_*
ui_*
qrc_*

# Contributors list
gen_contributors.html

# Executables & libraries
Ripes
RipesTest
Expand Down
5 changes: 3 additions & 2 deletions resources/text/get_contributors.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
lines = git_output.stdout.splitlines()
names = [line.partition("\t")[-1] for line in lines]

text = ""
text = '<p align="center" style="margin: 0">'
for name in names:
text = text + '<p align="center" style="margin: 0">' + name + "</p>\n"
text = text + name + "<br/>\n"
text = text + "</p>"

file = open("gen_contributors.html", "w")
file.write(text)
Expand Down
4 changes: 2 additions & 2 deletions src/aboutdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ AboutDialog::AboutDialog(QWidget *parent)
const QString url = "https://github.com/mortbopet/Ripes";

QString info = QString();
info.append("<b>" + name + "</b><br/>" + getRipesVersion());
info.append("<br/><br/><a href=\"" + url + "\">" + url + "</a>");
info.append("<p><b>" + name + "</b><br/>" + getRipesVersion() + "</p>");
info.append("<p><a href=\"" + url + "\">" + url + "</a></p>");

m_ui->setupUi(this);
m_ui->infoLabel->setText(info);
Expand Down

0 comments on commit da3ca44

Please sign in to comment.