Add tab "annex project" to about qelectrotech dialog

The goal is to list annex project of QElectroTech.
This commit is contained in:
joshua 2021-08-20 17:31:37 +02:00
parent d1974349e0
commit 5288cd8c8b
3 changed files with 91 additions and 4 deletions

View File

@ -38,6 +38,7 @@ AboutQETDialog::AboutQETDialog(QWidget *parent) :
setTranslators();
setContributors();
setVersion();
setAnnexProject();
setLibraries();
setLicence();
setLoginfo();
@ -155,6 +156,11 @@ void AboutQETDialog::setVersion()
ui->m_version_label->setText(str + MachineInfo::instance()->compilation_info());
}
void AboutQETDialog::setAnnexProject()
{
addLibrary(ui->m_annex_project_label, tr("redimensionneur d'éléments", "Element scaler"), "https://github.com/plc-user/QET_ElementScaler");
}
/**
@brief AboutQETDialog::setLibraries
*/

View File

@ -44,6 +44,7 @@ class AboutQETDialog : public QDialog
void setTranslators();
void setContributors();
void setVersion();
void setAnnexProject();
void setLibraries();
void setLicence();
void setLoginfo();

View File

@ -79,7 +79,7 @@
<x>0</x>
<y>0</y>
<width>676</width>
<height>423</height>
<height>420</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_2">
@ -159,7 +159,7 @@
<x>0</x>
<y>0</y>
<width>676</width>
<height>423</height>
<height>420</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_3">
@ -242,7 +242,7 @@
<x>0</x>
<y>0</y>
<width>676</width>
<height>423</height>
<height>420</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_4">
@ -343,6 +343,86 @@
</item>
</layout>
</widget>
<widget class="QWidget" name="m_annex_project_tab">
<attribute name="title">
<string>Projet annexe</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_6">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QScrollArea" name="scrollArea_5">
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget" name="scrollAreaWidgetContents_5">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>676</width>
<height>420</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_7">
<item>
<spacer name="horizontalSpacer_11">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="m_annex_project_label">
<property name="text">
<string/>
</property>
<property name="textFormat">
<enum>Qt::RichText</enum>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_12">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="tab_7">
<attribute name="title">
<string>Bibliothèques</string>
@ -374,7 +454,7 @@
<x>0</x>
<y>0</y>
<width>676</width>
<height>423</height>
<height>420</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_5">