@@ -17,7 +17,7 public: | |||
|
17 | 17 | /// Initializes the plugin |
|
18 | 18 | virtual void accept(IVisualizationWidget *visitor) = 0; |
|
19 | 19 | virtual void close() = 0; |
|
20 | virtual QString name() = 0; | |
|
20 | virtual QString name() const = 0; | |
|
21 | 21 | }; |
|
22 | 22 | |
|
23 | 23 |
@@ -25,9 +25,9 public: | |||
|
25 | 25 | void addVariable(std::shared_ptr<Variable> variable); |
|
26 | 26 | |
|
27 | 27 | // IVisualizationWidget interface |
|
28 | void accept(IVisualizationWidget *visitor); | |
|
29 | void close(); | |
|
30 | QString name(); | |
|
28 | void accept(IVisualizationWidget *visitor) override; | |
|
29 | void close() override; | |
|
30 | QString name() const; | |
|
31 | 31 | |
|
32 | 32 | private: |
|
33 | 33 | Ui::VisualizationGraphWidget *ui; |
@@ -28,9 +28,9 public: | |||
|
28 | 28 | void removeZone(VisualizationZoneWidget *zone); |
|
29 | 29 | |
|
30 | 30 | // IVisualizationWidget interface |
|
31 | void accept(IVisualizationWidget *visitor); | |
|
32 | void close(); | |
|
33 | QString name(); | |
|
31 | void accept(IVisualizationWidget *visitor) override; | |
|
32 | void close() override; | |
|
33 | QString name() const override; | |
|
34 | 34 | |
|
35 | 35 | private: |
|
36 | 36 | Ui::VisualizationTabWidget *ui; |
@@ -31,9 +31,9 public: | |||
|
31 | 31 | void removeTab(VisualizationTabWidget *tab); |
|
32 | 32 | |
|
33 | 33 | // IVisualizationWidget interface |
|
34 | void accept(IVisualizationWidget *visitor); | |
|
35 | void close(); | |
|
36 | QString name(); | |
|
34 | void accept(IVisualizationWidget *visitor) override; | |
|
35 | void close() override; | |
|
36 | QString name() const; | |
|
37 | 37 | |
|
38 | 38 | private: |
|
39 | 39 | Ui::VisualizationWidget *ui; |
@@ -28,9 +28,9 public: | |||
|
28 | 28 | void removeGraph(VisualizationGraphWidget *graph); |
|
29 | 29 | |
|
30 | 30 | // IVisualizationWidget interface |
|
31 | void accept(IVisualizationWidget *visitor); | |
|
32 | void close(); | |
|
33 | QString name(); | |
|
31 | void accept(IVisualizationWidget *visitor) override; | |
|
32 | void close() override; | |
|
33 | QString name() const override; | |
|
34 | 34 | |
|
35 | 35 | private: |
|
36 | 36 | Ui::VisualizationZoneWidget *ui; |
@@ -41,7 +41,7 void VisualizationGraphWidget::close() | |||
|
41 | 41 | return; |
|
42 | 42 | } |
|
43 | 43 | |
|
44 | QString VisualizationGraphWidget::name() | |
|
44 | QString VisualizationGraphWidget::name() const | |
|
45 | 45 | { |
|
46 | 46 | return QStringLiteral("MainView"); |
|
47 | 47 | } |
@@ -8,7 +8,6 VisualizationTabWidget::VisualizationTabWidget(QWidget *parent) | |||
|
8 | 8 | : QWidget{parent}, ui{new Ui::VisualizationTabWidget} |
|
9 | 9 | { |
|
10 | 10 | ui->setupUi(this); |
|
11 | ||
|
12 | 11 | } |
|
13 | 12 | |
|
14 | 13 | VisualizationTabWidget::~VisualizationTabWidget() |
@@ -44,7 +43,7 void VisualizationTabWidget::close() | |||
|
44 | 43 | return; |
|
45 | 44 | } |
|
46 | 45 | |
|
47 | QString VisualizationTabWidget::name() | |
|
46 | QString VisualizationTabWidget::name() const | |
|
48 | 47 | { |
|
49 | 48 | return QStringLiteral("MainView"); |
|
50 | 49 | } |
General Comments 0
You need to be logged in to leave comments.
Login now