Commit fbce6c93 authored by Boris Cazic's avatar Boris Cazic
Browse files

Update autocell.cpp

parent 65dfed17
......@@ -2,6 +2,7 @@
#include "reseau_cellule_etats.h"
#include "autosql.h"
#include "Automate.h"
#include "parametragemodele.h"
#include <QApplication>
#include <QPushButton>
......@@ -51,9 +52,12 @@ AutoCell::AutoCell(QWidget* parent):QWidget(parent)
lab_model_choice = new QLabel("Choisir un modèle dans la liste ou \nen paramétrer un nouveau :", win_model_choice);
button_add_model = new QPushButton("Ajouter un modèle");
button_add_model->setToolTip("Configurer un nouveau modèle");
button_add_model->setStyleSheet("background-color : rgb(251, 252, 252 )");
button_add_model->setFixedWidth(140);
connect(button_add_model, SIGNAL(clicked()), this, SLOT(defNouveauModele());
liste = new QComboBox(win_model_choice);
liste->setPlaceholderText("--- select ---");
......@@ -291,6 +295,11 @@ void AutoCell::RAZ(){
check_load_grid->setCheckState(Qt::Unchecked);
;}
void AutoCell::defNouveauModele() {
NouveauModele* nouveaumodele = new NouveauModele;
nouveaumodele->show();
}
void AutoCell::modifierCellule(const QModelIndex& index) {
unsigned int i = index.row();
unsigned int j = index.column();
......
Supports Markdown
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