Commit 448c013a authored by Yann Boucher's avatar Yann Boucher
Browse files

Ajout d'un message à propos pour Cellulut et pour Qt

parent 5acb8ed1
Pipeline #78778 passed with stages
in 17 seconds
......@@ -624,6 +624,8 @@ pattern recorded :</string>
<property name="title">
<string>À propos</string>
</property>
<addaction name="action_propos_de_Cellulut"/>
<addaction name="action_propos_de_Qt"/>
</widget>
<addaction name="menuFichier"/>
<addaction name="menuEditer"/>
......@@ -638,6 +640,16 @@ pattern recorded :</string>
<string>Ctrl+Shift+S</string>
</property>
</action>
<action name="action_propos_de_Cellulut">
<property name="text">
<string>À propos de Cellulut</string>
</property>
</action>
<action name="action_propos_de_Qt">
<property name="text">
<string>À propos de Qt</string>
</property>
</action>
</widget>
<customwidgets>
<customwidget>
......
......@@ -33,6 +33,16 @@ MainWindow::MainWindow(QWidget *parent)
connect(ui->grid_view, &GridView::zoom_changed, ui->struct_library, &StructureLibraryView::update_cell_pixel_size);
connect(ui->transition_list, QOverload<int>::of(&QComboBox::currentIndexChanged), this, [this](int)
{ update_transition_settings(); });
connect(ui->action_propos_de_Cellulut, &QAction::triggered, this, [this](bool)
{
QMessageBox::about(this, "À propos de Cellulut",
"Projet de C++ réalisé dans le cadre de l'UV LO21 de l'UTC.\n\n"
"Contributeurs : Anthony Noir, Eugène Pin, Merwane Bouri, Arthur Detree, Yann Boucher");
});
connect(ui->action_propos_de_Qt, &QAction::triggered, this, [this](bool)
{
QMessageBox::aboutQt(this, "À propos de Qt");
});
ui->struct_library->update_cell_pixel_size(ui->grid_view->cell_pixel_size());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment