Skip to content

Commit 9135fc0

Browse files
committed
[Plugins] Fix compilation regarding qt code now activated (#5623)
* Fix compilation, changing namespace by removing GUI * Fix namespaces in image
1 parent 7dc5b1b commit 9135fc0

53 files changed

Lines changed: 60 additions & 163 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

applications/plugins/SofaCUDA/sofa/gpu/gui/CudaDataWidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,4 @@ Creator<DataWidgetFactory, TableDataWidget< sofa::gpu::cuda::CudaVector<Vec3d> >
7676
Creator<DataWidgetFactory, TableDataWidget< sofa::gpu::cuda::CudaVector<Vec4d> > > DWClass_cudaVectorVec4d("default", true);
7777

7878

79-
} // namespace sofa::gui::qt
79+
} // namespace sofa::qt

applications/plugins/SofaCUDA/sofa/gpu/gui/CudaDataWidget.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ class vector_data_trait < sofa::gpu::cuda::CudaVector<T> >
5959
};
6060

6161

62-
} // namespace sofa::gui::qt
62+
} // namespace sofa::qt

applications/plugins/SofaMatrix/extensions/Qt/src/SofaMatrix/Qt/BaseMatrixImageViewerWidget.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
******************************************************************************/
2222
#include <SofaMatrix/Qt/BaseMatrixImageViewerWidget.h>
2323

24-
namespace sofa::gui::qt
24+
namespace sofa::qt
2525
{
2626

2727
// Add the widget in the DataWidgetFactory with the key 'matrixbitmap', so that a Data< type::BaseMatrixProxy > can call setWidget("matrixbitmap")
@@ -172,4 +172,4 @@ void BaseMatrixImageViewerWidget::readFromData()
172172
dirty = false;
173173
counter = baseData->getCounter();
174174
}
175-
} // namespace sofa::gui::qt
175+
} // namespace sofa::qt

applications/plugins/SofaMatrix/extensions/Qt/src/SofaMatrix/Qt/BaseMatrixImageViewerWidget.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
#include <SofaMatrix/Qt/config.h>
2424

2525
#include <QGraphicsView>
26-
#include <sofa/gui/qt/SimpleDataWidget.h>
26+
#include <sofa/qt/SimpleDataWidget.h>
2727

2828
#include <SofaMatrix/Qt/BaseMatrixImageProxy.h>
2929

30-
namespace sofa::gui::qt
30+
namespace sofa::qt
3131
{
3232

3333
/// A QGraphicsScene showing a QImage
@@ -106,4 +106,4 @@ class BaseMatrixImageViewerWidget : public SimpleDataWidget<type::BaseMatrixImag
106106
void readFromData() override;
107107
};
108108

109-
} // namespace sofa::gui::qt
109+
} // namespace sofa::qt

applications/plugins/image/image_gui/src/image_gui/HistogramWidget.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@
2929
namespace sofa
3030
{
3131

32-
namespace gui
33-
{
34-
3532
namespace qt
3633
{
3734

@@ -66,7 +63,6 @@ helper::Creator<DataWidgetFactory, HistogramDataWidget< Histogram<bool> > > D
6663
#endif
6764

6865
} // qt
69-
} // gui
7066
} // sofa
7167

7268

applications/plugins/image/image_gui/src/image_gui/HistogramWidget.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
#define SOFA_IMAGE_HISTOGRAMWIDGET_H
2424

2525
#include <image_gui/config.h>
26-
#include <sofa/gui/qt/DataWidget.h>
27-
#include <sofa/gui/qt/SimpleDataWidget.h>
26+
#include <sofa/qt/DataWidget.h>
27+
#include <sofa/qt/SimpleDataWidget.h>
2828

2929
#include <QLabel>
3030
#include <QImage>
@@ -42,8 +42,6 @@
4242

4343
namespace sofa
4444
{
45-
namespace gui
46-
{
4745
namespace qt
4846
{
4947

@@ -386,6 +384,4 @@ class SOFA_IMAGE_GUI_API HistogramDataWidget : public SimpleDataWidget<T, histog
386384

387385
}
388386

389-
}
390-
391387
#endif // SOFA_IMAGE_HISTOGRAMWIDGET_H

applications/plugins/image/image_gui/src/image_gui/ImagePlaneWidget.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@
2929
namespace sofa
3030
{
3131

32-
namespace gui
33-
{
34-
3532
namespace qt
3633
{
3734

@@ -80,7 +77,6 @@ helper::Creator<DataWidgetFactory, ImagePlaneDataWidget< ImagePlane<bool> > > D
8077
#endif
8178

8279
} // qt
83-
} // gui
8480
} // sofa
8581

8682

applications/plugins/image/image_gui/src/image_gui/ImagePlaneWidget.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
#define SOFA_IMAGE_IMAGEPLANEWIDGET_H
2424

2525
#include <image_gui/config.h>
26-
#include <sofa/gui/qt/DataWidget.h>
27-
#include <sofa/gui/qt/SimpleDataWidget.h>
26+
#include <sofa/qt/DataWidget.h>
27+
#include <sofa/qt/SimpleDataWidget.h>
2828

2929
#include <image/ImageTypes.h>
3030
#include <image/ImageViewer.h>
@@ -54,8 +54,6 @@
5454

5555
namespace sofa
5656
{
57-
namespace gui
58-
{
5957
namespace qt
6058
{
6159

@@ -807,6 +805,4 @@ class SOFA_IMAGE_GUI_API ImagePlaneDataWidget : public SimpleDataWidget<T, Timag
807805

808806
}
809807

810-
}
811-
812808
#endif // SOFA_IMAGE_IMAGEPLANEWIDGET_H

applications/plugins/image/image_gui/src/image_gui/ImageTransformWidget.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@
2929
namespace sofa
3030
{
3131

32-
namespace gui
33-
{
34-
3532
namespace qt
3633
{
3734

@@ -202,7 +199,6 @@ void ImageLPTransformWidget<TransformType>::writeToData()
202199
}
203200

204201
} // qt
205-
} // gui
206202
} // sofa
207203

208204

applications/plugins/image/image_gui/src/image_gui/ImageTransformWidget.h

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
#define SOFA_IMAGE_IMAGETRANSFORMWIDGET_H
2424

2525
#include <image_gui/config.h>
26-
#include <sofa/gui/qt/DataWidget.h>
27-
#include <sofa/gui/qt/SimpleDataWidget.h>
28-
#include <sofa/gui/qt/WDoubleLineEdit.h>
26+
#include <sofa/qt/DataWidget.h>
27+
#include <sofa/qt/SimpleDataWidget.h>
28+
#include <sofa/qt/WDoubleLineEdit.h>
2929

3030
#include <QTextEdit>
3131
#include <QGroupBox>
@@ -46,8 +46,6 @@
4646

4747
namespace sofa
4848
{
49-
namespace gui
50-
{
5149
namespace qt
5250
{
5351

@@ -92,6 +90,4 @@ public :
9290

9391
}
9492

95-
}
96-
9793
#endif // SOFA_IMAGE_IMAGETRANSFORMWIDGET_H

0 commit comments

Comments
 (0)