mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-14 20:33:05 +02:00
Mod doc set style de same
This commit is contained in:
parent
5df6d7f403
commit
ffcdccb469
@ -22,6 +22,10 @@
|
|||||||
#include <QThread>
|
#include <QThread>
|
||||||
#include <QDate>
|
#include <QDate>
|
||||||
|
|
||||||
|
/**
|
||||||
|
@brief AboutQETDialog::AboutQETDialog
|
||||||
|
@param parent
|
||||||
|
*/
|
||||||
AboutQETDialog::AboutQETDialog(QWidget *parent) :
|
AboutQETDialog::AboutQETDialog(QWidget *parent) :
|
||||||
QDialog(parent),
|
QDialog(parent),
|
||||||
ui(new Ui::AboutQETDialog)
|
ui(new Ui::AboutQETDialog)
|
||||||
@ -36,11 +40,17 @@ AboutQETDialog::AboutQETDialog(QWidget *parent) :
|
|||||||
setLicence();
|
setLicence();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
@brief AboutQETDialog::~AboutQETDialog
|
||||||
|
*/
|
||||||
AboutQETDialog::~AboutQETDialog()
|
AboutQETDialog::~AboutQETDialog()
|
||||||
{
|
{
|
||||||
delete ui;
|
delete ui;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
@brief AboutQETDialog::setAbout
|
||||||
|
*/
|
||||||
void AboutQETDialog::setAbout()
|
void AboutQETDialog::setAbout()
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -55,6 +65,9 @@ void AboutQETDialog::setAbout()
|
|||||||
ui->m_about_label->setText(str);
|
ui->m_about_label->setText(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
@brief AboutQETDialog::setAuthors
|
||||||
|
*/
|
||||||
void AboutQETDialog::setAuthors()
|
void AboutQETDialog::setAuthors()
|
||||||
{
|
{
|
||||||
addAuthor(ui->m_author_label, "Benoît Ansieau", "benoit@qelectrotech.org", tr("Idée originale"));
|
addAuthor(ui->m_author_label, "Benoît Ansieau", "benoit@qelectrotech.org", tr("Idée originale"));
|
||||||
@ -66,6 +79,9 @@ void AboutQETDialog::setAuthors()
|
|||||||
addAuthor(ui->m_author_label, "Abhishek Bansal", "abhishek@qelectrotech.org", tr("Développement"));
|
addAuthor(ui->m_author_label, "Abhishek Bansal", "abhishek@qelectrotech.org", tr("Développement"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
@brief AboutQETDialog::setTranslators
|
||||||
|
*/
|
||||||
void AboutQETDialog::setTranslators()
|
void AboutQETDialog::setTranslators()
|
||||||
{
|
{
|
||||||
addAuthor(ui->m_translators_label, "Alfredo Carreto", "electronicos_mx@yahoo.com.mx", tr("Traduction en espagnol"));
|
addAuthor(ui->m_translators_label, "Alfredo Carreto", "electronicos_mx@yahoo.com.mx", tr("Traduction en espagnol"));
|
||||||
@ -94,6 +110,9 @@ void AboutQETDialog::setTranslators()
|
|||||||
addAuthor(ui->m_translators_label, "Gábor Gubányi", "gubanyig@gmail.com", tr("Traduction en hongrois"));
|
addAuthor(ui->m_translators_label, "Gábor Gubányi", "gubanyig@gmail.com", tr("Traduction en hongrois"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
@brief AboutQETDialog::setContributors
|
||||||
|
*/
|
||||||
void AboutQETDialog::setContributors()
|
void AboutQETDialog::setContributors()
|
||||||
{
|
{
|
||||||
addAuthor(ui->m_contrib_label, "Remi Collet", "remi@fedoraproject.org", tr("Paquets Fedora et Red Hat"));
|
addAuthor(ui->m_contrib_label, "Remi Collet", "remi@fedoraproject.org", tr("Paquets Fedora et Red Hat"));
|
||||||
@ -117,6 +136,9 @@ void AboutQETDialog::setContributors()
|
|||||||
addAuthor(ui->m_contrib_label, "Maximilian Federle", "", tr("Paquets Snap"));
|
addAuthor(ui->m_contrib_label, "Maximilian Federle", "", tr("Paquets Snap"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
@brief AboutQETDialog::setVersion
|
||||||
|
*/
|
||||||
void AboutQETDialog::setVersion()
|
void AboutQETDialog::setVersion()
|
||||||
{
|
{
|
||||||
QString str = "<span style=\"font-weight:bold;font-size:16pt;\">QElectroTech V " + QET::displayedVersion + "</span>";
|
QString str = "<span style=\"font-weight:bold;font-size:16pt;\">QElectroTech V " + QET::displayedVersion + "</span>";
|
||||||
@ -149,6 +171,9 @@ void AboutQETDialog::setVersion()
|
|||||||
ui->m_version_label->setText(str + compilation_info);
|
ui->m_version_label->setText(str + compilation_info);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
@brief AboutQETDialog::setLibraries
|
||||||
|
*/
|
||||||
void AboutQETDialog::setLibraries()
|
void AboutQETDialog::setLibraries()
|
||||||
{
|
{
|
||||||
addLibrary(ui->m_libraries_label, "KDE lib", "https://api.kde.org");
|
addLibrary(ui->m_libraries_label, "KDE lib", "https://api.kde.org");
|
||||||
@ -156,19 +181,22 @@ void AboutQETDialog::setLibraries()
|
|||||||
addLibrary(ui->m_libraries_label, "pugixml", "https://pugixml.org");
|
addLibrary(ui->m_libraries_label, "pugixml", "https://pugixml.org");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
@brief AboutQETDialog::setLicence
|
||||||
|
*/
|
||||||
void AboutQETDialog::setLicence()
|
void AboutQETDialog::setLicence()
|
||||||
{
|
{
|
||||||
ui->m_license_text_edit->setPlainText(QET::license());
|
ui->m_license_text_edit->setPlainText(QET::license());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief AboutQETDialog::addAuthor
|
@brief AboutQETDialog::addAuthor
|
||||||
* Adds a person to the list of authors
|
Adds a person to the list of authors
|
||||||
* @param label : QLabel which will add the person
|
@param label : QLabel which will add the person
|
||||||
* @param name : Name of person
|
@param name : Name of person
|
||||||
* @param email : E-mail address of the person
|
@param email : E-mail address of the person
|
||||||
* @param work : Function / work done by the person
|
@param work : Function / work done by the person
|
||||||
*/
|
*/
|
||||||
void AboutQETDialog::addAuthor(QLabel *label, const QString &name, const QString &email, const QString &work)
|
void AboutQETDialog::addAuthor(QLabel *label, const QString &name, const QString &email, const QString &work)
|
||||||
{
|
{
|
||||||
QString new_text = label->text();
|
QString new_text = label->text();
|
||||||
@ -180,6 +208,12 @@ void AboutQETDialog::addAuthor(QLabel *label, const QString &name, const QString
|
|||||||
label->setText(new_text);
|
label->setText(new_text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
@brief AboutQETDialog::addLibrary
|
||||||
|
@param label
|
||||||
|
@param name
|
||||||
|
@param link
|
||||||
|
*/
|
||||||
void AboutQETDialog::addLibrary(QLabel *label, const QString &name, const QString &link)
|
void AboutQETDialog::addLibrary(QLabel *label, const QString &name, const QString &link)
|
||||||
{
|
{
|
||||||
QString new_text = label->text();
|
QString new_text = label->text();
|
||||||
|
@ -26,6 +26,9 @@ namespace Ui {
|
|||||||
class AboutQETDialog;
|
class AboutQETDialog;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
@brief The AboutQETDialog class
|
||||||
|
*/
|
||||||
class AboutQETDialog : public QDialog
|
class AboutQETDialog : public QDialog
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
@ -42,8 +45,13 @@ class AboutQETDialog : public QDialog
|
|||||||
void setVersion();
|
void setVersion();
|
||||||
void setLibraries();
|
void setLibraries();
|
||||||
void setLicence();
|
void setLicence();
|
||||||
void addAuthor(QLabel *label, const QString &name, const QString &email, const QString &work);
|
void addAuthor(QLabel *label,
|
||||||
void addLibrary(QLabel *label, const QString &name, const QString &link);
|
const QString &name,
|
||||||
|
const QString &email,
|
||||||
|
const QString &work);
|
||||||
|
void addLibrary(QLabel *label,
|
||||||
|
const QString &name,
|
||||||
|
const QString &link);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::AboutQETDialog *ui;
|
Ui::AboutQETDialog *ui;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user