Skip to content
Snippets Groups Projects
Commit 9e511e63 authored by Olivier Langella's avatar Olivier Langella
Browse files

labeling method shared pointer

parent 38988efc
No related branches found
No related tags found
No related merge requests found
......@@ -50,14 +50,14 @@
</spacer>
</item>
<item>
<widget class="QPushButton" name="ok_button">
<widget class="QPushButton" name="cancel_button">
<property name="text">
<string>Cancel</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="cancel_button">
<widget class="QPushButton" name="ok_button">
<property name="text">
<string>OK</string>
</property>
......@@ -75,7 +75,7 @@
<resources/>
<connections>
<connection>
<sender>ok_button</sender>
<sender>cancel_button</sender>
<signal>clicked()</signal>
<receiver>EditLabelMethodView</receiver>
<slot>reject()</slot>
......@@ -91,7 +91,7 @@
</hints>
</connection>
<connection>
<sender>cancel_button</sender>
<sender>ok_button</sender>
<signal>clicked()</signal>
<receiver>EditLabelMethodView</receiver>
<slot>accept()</slot>
......
......@@ -27,7 +27,6 @@
#include <QFile>
#include <QDomDocument>
#include <QMessageBox>
#include "../../core/labeling/labelingmethod.h"
EditLabelMethods::EditLabelMethods(ProjectWindow *parent):
QDialog(parent),
......@@ -100,8 +99,11 @@ void EditLabelMethods::ItemClicked (QModelIndex index )
ui->ok_button->setDisabled(false);
LabelingMethod method(index.data().toString());
_sp_labeling_method = method.makeLabelingMethodSp();
}
void EditLabelMethods::applyLabelingMethodInProject() {
//_project_sp.get()->setLabelingMethodSp(_sp_labeling_method);
}
......@@ -28,6 +28,7 @@
#include <QDialog>
#include <QStandardItemModel>
#include "../../core/project.h"
#include "../../core/labeling/labelingmethod.h"
class ProjectWindow;
......@@ -55,5 +56,6 @@ private:
ProjectWindow * _project_window;
ProjectSp _project_sp;
QStandardItemModel * _p_label_method_str_li=nullptr;
LabelingMethodSp _sp_labeling_method;
};
#endif // EDITLABELMETHODS_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment