Skip to content

Commit

Permalink
Update developers list
Browse files Browse the repository at this point in the history
  • Loading branch information
ra3xdh committed Oct 30, 2022
1 parent ce15867 commit 29d535c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
23 changes: 12 additions & 11 deletions qucs/dialogs/aboutdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ AboutDialog::AboutDialog(QWidget *parent)
"Vadim Kuznetsov - " + tr("project maintainer, simuator interface and GUI design"),
"Mike Brinson - " + tr("component models, documentation"),
"Tom Russo - " + tr("Xyce integration"),
"Tom Hajjar - " + tr("Testing, examples"),
"Maria Dubinina - " + tr("testing, general bugfixes")
}};
currAuths = {{
Expand All @@ -68,7 +69,7 @@ AboutDialog::AboutDialog(QWidget *parent)
"Felix Salfelder - " + tr("refactoring, modularity"),
"Andrés Martínez Mera - " + tr("RF design tools")
}};

prevDevs = {{
"Michael Margraf - " + tr("founder of the project, GUI programmer"),
"Stefan Jahn - " + tr("Programmer of simulator"),
Expand Down Expand Up @@ -104,7 +105,7 @@ AboutDialog::AboutDialog(QWidget *parent)
tr("Arabic by") + " Chabane Noureddine",
tr("Kazakh by") + " Erbol Keshubaev"
}};

std::shuffle(currAuths.begin(), currAuths.end(), rng);

QLabel *lbl;
Expand All @@ -124,7 +125,7 @@ AboutDialog::AboutDialog(QWidget *parent)

hl->addWidget(iconLabel);
all->addWidget(hbox);

QWidget *vbox = new QWidget();
QVBoxLayout *vl = new QVBoxLayout(vbox);
//vl->setContentsMargins(0,0,0,0);
Expand Down Expand Up @@ -210,12 +211,12 @@ void AboutDialog::currentChangedSlot(int index) {
std::shuffle(trAuths.begin(), trAuths.end(), rng);
setTrText();
}

prevTab = index;
}

void AboutDialog::setAuthorsText() {

QString authorsText;
authorsText = tr("Qucs-S project team:");
authorsText += "<ul>";
Expand All @@ -225,7 +226,7 @@ void AboutDialog::setAuthorsText() {
authorsText += "</ul>";

authorsText += tr("Based on Qucs project developed by:") + "<ul>";

for(QString& tStr : currAuths) {
authorsText += ("<li>" + tStr + "</li>");
}
Expand All @@ -235,8 +236,8 @@ void AboutDialog::setAuthorsText() {
authorsText += ("<li>" + tStr + "</li>");
}
authorsText += "</ul>";
authorsBrowser->setHtml(authorsText);

authorsBrowser->setHtml(authorsText);
}

void AboutDialog::setTrText() {
Expand All @@ -246,14 +247,14 @@ void AboutDialog::setTrText() {
trText += ("<li>" + tStr + "</li>");
}
trText += "</ul>";
trBrowser->setHtml(trText);

trBrowser->setHtml(trText);
}

// event filter to remove the Ctrl-Wheel (text zoom) event
bool AboutDialog::eventFilter(QObject *obj, QEvent *event) {
if ((event->type() == QEvent::Wheel) &&
(QApplication::keyboardModifiers() & Qt::ControlModifier )) {
(QApplication::keyboardModifiers() & Qt::ControlModifier )) {
return true; // eat Ctrl-Wheel event
} else {
// pass the event on to the parent class
Expand Down
2 changes: 1 addition & 1 deletion qucs/dialogs/aboutdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class AboutDialog : public QDialog {
void setAuthorsText(void);
void setTrText(void);

std::array<QString, 4> qucs_sDevs;
std::array<QString, 5> qucs_sDevs;
std::array<QString, 9> currAuths; // current Qucs authors
std::array<QString, 12> prevDevs; // previous Qucs developers
std::array<QString, 18> trAuths; // Qucs translators
Expand Down

0 comments on commit 29d535c

Please sign in to comment.