mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-23 12:09:50 +00:00
Merge pull request 'About: remove e-mail addresses of contributors' (#305) from tobtoht/feather:authors_no_emails into master
Reviewed-on: https://git.wownero.com/feather/feather/pulls/305
This commit is contained in:
commit
292f452cfe
4 changed files with 17 additions and 30 deletions
|
@ -1,8 +1,9 @@
|
||||||
Feather <feather_version> (<feather_git_head>)
|
Feather <feather_version> (<feather_git_head>)
|
||||||
|
|
||||||
https://featherwallet.org
|
Website: https://featherwallet.org
|
||||||
|
E-mail: dev@featherwallet.org
|
||||||
|
|
||||||
Created by dsc <dsc@xmr.pm>, tobtoht <thotbot@protonmail.com>, and contributors.
|
Created by dsc, tobtoht, and contributors.
|
||||||
|
|
||||||
Copyright (c) 2020-<current_year>, The Monero Project
|
Copyright (c) 2020-<current_year>, The Monero Project
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
dsc <dsc@xmr.pm>
|
dsc
|
||||||
tobtoht <thotbot@protonmail.com>
|
tobtoht
|
||||||
selsta <selsta@sent.at>
|
selsta
|
||||||
Diego Salazar <rehrar@tuta.io>
|
Diego Salazar
|
||||||
Matt Smith <matt@offtopica.uk>
|
Matt Smith
|
|
@ -26,28 +26,14 @@ AboutDialog::AboutDialog(QWidget *parent)
|
||||||
auto ack_text = Utils::barrayToString(ack);
|
auto ack_text = Utils::barrayToString(ack);
|
||||||
ui->ackText->setText(ack_text);
|
ui->ackText->setText(ack_text);
|
||||||
|
|
||||||
auto sm = QApplication::font();
|
m_model = new QStringListModel(this);
|
||||||
auto font = QApplication::font();
|
|
||||||
sm.setPointSize(sm.pointSize() - 2);
|
QString contributors = Utils::barrayToString(Utils::fileOpenQRC(":assets/contributors.txt"));
|
||||||
this->m_model = new QStandardItemModel(this);
|
QStringList contributor_list = contributors.split("\n");
|
||||||
this->m_model->setHorizontalHeaderItem(0, Utils::qStandardItem("Name", sm));
|
m_model->setStringList(contributor_list);
|
||||||
this->m_model->setHorizontalHeaderItem(1, Utils::qStandardItem("Email", sm));
|
|
||||||
|
ui->authorView->setHeaderHidden(true);
|
||||||
ui->authorView->setModel(this->m_model);
|
ui->authorView->setModel(this->m_model);
|
||||||
|
|
||||||
int i = 0;
|
|
||||||
auto contributors = Utils::barrayToString(Utils::fileOpenQRC(":assets/contributors.txt"));
|
|
||||||
for(const auto &line: contributors.split("\n")){
|
|
||||||
// too lazy for regex #sorry #notsorry
|
|
||||||
auto name = line.left(line.indexOf("<")).trimmed();
|
|
||||||
auto nameItem = Utils::qStandardItem(name, font);
|
|
||||||
auto email = line.mid(line.indexOf("<")+1, line.length()).replace(">", "").trimmed();
|
|
||||||
auto emailItem = Utils::qStandardItem(email, font);
|
|
||||||
|
|
||||||
this->m_model->setItem(i, 0, nameItem);
|
|
||||||
this->m_model->setItem(i, 1, emailItem);
|
|
||||||
i++;
|
|
||||||
}
|
|
||||||
|
|
||||||
ui->authorView->header()->setSectionResizeMode(QHeaderView::Stretch);
|
ui->authorView->header()->setSectionResizeMode(QHeaderView::Stretch);
|
||||||
|
|
||||||
this->adjustSize();
|
this->adjustSize();
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
#define ABOUT_H
|
#define ABOUT_H
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QStandardItemModel>
|
#include <QStringListModel>
|
||||||
#include <QAbstractButton>
|
#include <QAbstractButton>
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
|
@ -21,7 +21,7 @@ public:
|
||||||
~AboutDialog() override;
|
~AboutDialog() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QStandardItemModel *m_model;
|
QStringListModel *m_model;
|
||||||
Ui::AboutDialog *ui;
|
Ui::AboutDialog *ui;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue